Maryam Ilka commited on
Commit
769a133
·
verified ·
1 Parent(s): 581959a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -65
app.py CHANGED
@@ -474,78 +474,15 @@ def user_contact():
474
 
475
  def demographic_form():
476
  """فرم اطلاعات دموگرافیک"""
477
- st.markdown("""
478
- <style>
479
- /* استایل کلی تمام عناصر فرم */
480
- .stNumberInput input,
481
- .stSelectbox select,
482
- .stTextInput input,
483
- .stTextArea textarea {
484
- color: #333333 !important;
485
- background-color: white !important;
486
- border: 1px solid #6a0dad !important;
487
- border-radius: 8px !important;
488
- padding: 8px 12px !important;
489
- font-family: 'Vazir' !important;
490
- }
491
-
492
- /* استایل پس‌زمینه اصلی فرم */
493
- .stForm {
494
- background-color: white !important;
495
- padding: 20px;
496
- border-radius: 10px;
497
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
498
- }
499
-
500
- /* استایل placeholder */
501
- .stNumberInput input::placeholder,
502
- .stTextInput input::placeholder {
503
- color: #666666 !important;
504
- opacity: 1 !important;
505
- }
506
-
507
- /* استایل دکمه submit */
508
- .stFormSubmitButton button {
509
- background-color: white !important;
510
- color: #6a0dad !important;
511
- border: 1px solid #6a0dad !important;
512
- border-radius: 8px !important;
513
- padding: 10px 24px !important;
514
- font-family: 'Vazir' !important;
515
- font-weight: bold !important;
516
- transition: all 0.3s ease !important;
517
- width: 100% !important;
518
- }
519
-
520
- .stFormSubmitButton button:hover {
521
- background-color: #f0e6ff !important;
522
- }
523
-
524
- /* استایل لیبل‌ها */
525
- .st-emotion-cache-1v0mbdj p,
526
- .st-emotion-cache-1v0mbdj div {
527
- color: #333333 !important;
528
- font-family: 'Vazir' !important;
529
- }
530
- </style>
531
- """, unsafe_allow_html=True)
532
-
533
  with st.form("demographic"):
534
  st.header("📝 اطلاعات دموگرافیک")
535
-
536
- age = st.number_input("سن", min_value=18, max_value=100,
537
- placeholder="سن خود را وارد کنید")
538
-
539
  gender = st.selectbox("جنسیت", ["مرد", "زن", "سایر"])
540
-
541
  education = st.selectbox("تحصیلات", ["دیپلم", "لیسانس", "فوق لیسانس", "دکترا"])
542
-
543
  ride_frequency = st.selectbox("دفعات استفاده از سرویس‌های اشتراک سفر در ماه",
544
  ["کمتر از 5 بار", "5-10 بار", "بیش از 10 بار"])
545
 
546
- submit_button = st.button("ادامه", key="continue_btn", type="primary")
547
-
548
- if submit_button:
549
  st.session_state.demographic_data = {
550
  "age": age,
551
  "gender": gender,
 
474
 
475
  def demographic_form():
476
  """فرم اطلاعات دموگرافیک"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
  with st.form("demographic"):
478
  st.header("📝 اطلاعات دموگرافیک")
479
+ age = st.number_input("سن", min_value=18, max_value=100)
 
 
 
480
  gender = st.selectbox("جنسیت", ["مرد", "زن", "سایر"])
 
481
  education = st.selectbox("تحصیلات", ["دیپلم", "لیسانس", "فوق لیسانس", "دکترا"])
 
482
  ride_frequency = st.selectbox("دفعات استفاده از سرویس‌های اشتراک سفر در ماه",
483
  ["کمتر از 5 بار", "5-10 بار", "بیش از 10 بار"])
484
 
485
+ if st.button("ادامه", key="continue_btn", type="primary"):
 
 
486
  st.session_state.demographic_data = {
487
  "age": age,
488
  "gender": gender,