Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files475 unmodified lines4764774784794804814824794804814824834844853 unmodified lines4894904914924934924934944954964974994984995005015025035055045055065072 unmodified lines5105115125135145155165165175185195205215225235245235245255265275285295305315325335345355365375385395407 unmodified lines5485495505445455465515525535542 unmodified lines557558559555560561562563475 unmodified lines """فرم اطلاعات دموگرافیک""" st.markdown(""" <style> /* استایل کلی تمام inputها */ .stNumberInput input, .stSelectbox select, .stTextInput input { /* استایل کلی تمام inputها و selectها */ div[data-baseweb="input"] input, div[data-baseweb="select"] select, div[data-baseweb="textarea"] textarea { color: #333333 !important; background-color: white !important; border: 1px solid #6a0dad !important;3 unmodified lines } /* استایل placeholder */ .stNumberInput input::placeholder, .stTextInput input::placeholder { div[data-baseweb="input"] input::placeholder { color: #333333 !important; opacity: 1 !important; } /* استایل dropdown options */ .stSelectbox select option { div[data-baseweb="select"] option { color: #333333 !important; background-color: white !important; } /* استایل دکمه submit */ .stFormSubmitButton button { div[data-testid="stFormSubmitButton"] button { background-color: #6a0dad !important; color: white !important; border: none !important;2 unmodified lines font-family: 'Vazir' !important; font-weight: bold !important; transition: all 0.3s ease !important; width: 100% !important; } .stFormSubmitButton button:hover { div[data-testid="stFormSubmitButton"] button:hover { background-color: #7b1fa2 !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } /* استایل hover برای inputها */ .stNumberInput input:focus, .stSelectbox select:focus { div[data-baseweb="input"] input:focus, div[data-baseweb="select"] select:focus { border-color: #8e44ad !important; box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important; outline: none !important; } /* استایل لیبلها */ .st-emotion-cache-1v0mbdj p { color: #333333 !important; font-family: 'Vazir' !important; } </style> """, unsafe_allow_html=True)
with st.form("demographic"): st.header("📝 اطلاعات دموگرافیک") 7 unmodified lines ride_frequency = st.selectbox("دفعات استفاده از سرویسهای اشتراک سفر در ماه", ["کمتر از 5 بار", "5-10 بار", "بیش از 10 بار"]) submit_button = st.form_submit_button("ادامه") if submit_button: if st.button("ادامه", key="continue_btn", type="primary"): st.session_state.demographic_data = { "age": age, "gender": gender,2 unmodified lines } st.session_state.current_page = "scenario_explanation" st.rerun()
def scenario_explanation(): """توضیح سناریو""" col1, col2 = st.columns([1, 4])app.py+20-15