Maryam Ilka commited on
Commit
3a36655
·
verified ·
1 Parent(s): 496742e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -30
app.py CHANGED
@@ -471,15 +471,16 @@ def user_contact():
471
  st.session_state.user_contact = contact_info
472
  st.session_state.current_page = "demographic"
473
  st.rerun()
474
-
475
  def demographic_form():
476
  """فرم اطلاعات دموگرافیک"""
477
  st.markdown("""
478
  <style>
479
- /* استایل کلی تمام inputها */
480
- .stTextInput input,
481
  .stNumberInput input,
482
- .stSelectbox select {
 
 
483
  color: #333333 !important;
484
  background-color: white !important;
485
  border: 1px solid #6a0dad !important;
@@ -487,21 +488,23 @@ def demographic_form():
487
  padding: 8px 12px !important;
488
  font-family: 'Vazir' !important;
489
  }
490
-
 
 
 
 
 
 
 
 
491
  /* استایل placeholder */
492
- .stTextInput input::placeholder,
493
- .stNumberInput input::placeholder {
494
- color: #333333 !important;
495
  opacity: 1 !important;
496
  }
497
-
498
- /* استایل dropdown options */
499
- .stSelectbox select option {
500
- color: #333333 !important;
501
- background-color: white !important;
502
- }
503
-
504
- /* استایل دکمه submit ساده */
505
  .stFormSubmitButton button {
506
  background-color: white !important;
507
  color: #6a0dad !important;
@@ -513,23 +516,14 @@ def demographic_form():
513
  transition: all 0.3s ease !important;
514
  width: 100% !important;
515
  }
516
-
517
  .stFormSubmitButton button:hover {
518
  background-color: #f0e6ff !important;
519
- color: #6a0dad !important;
520
- }
521
-
522
- /* استایل hover برای inputها */
523
- .stTextInput input:focus,
524
- .stNumberInput input:focus,
525
- .stSelectbox select:focus {
526
- border-color: #8e44ad !important;
527
- box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
528
- outline: none !important;
529
  }
530
-
531
  /* استایل لیبل‌ها */
532
- .st-emotion-cache-1v0mbdj p {
 
533
  color: #333333 !important;
534
  font-family: 'Vazir' !important;
535
  }
@@ -559,7 +553,7 @@ def demographic_form():
559
  "ride_frequency": ride_frequency
560
  }
561
  st.session_state.current_page = "scenario_explanation"
562
- st.rerun()
563
 
564
  def scenario_explanation():
565
  """توضیح سناریو"""
 
471
  st.session_state.user_contact = contact_info
472
  st.session_state.current_page = "demographic"
473
  st.rerun()
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;
 
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;
 
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
  }
 
553
  "ride_frequency": ride_frequency
554
  }
555
  st.session_state.current_page = "scenario_explanation"
556
+ st.rerun()
557
 
558
  def scenario_explanation():
559
  """توضیح سناریو"""