Maryam Ilka commited on
Commit
532da94
·
verified ·
1 Parent(s): 02bca9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -232,6 +232,22 @@ st.markdown("""
232
  padding: 10px 20px !important;
233
  font-weight: bold !important;
234
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
 
236
 
237
  /* ========== استایل تضمینی برای گزینه‌های رادیویی ========== */
@@ -603,14 +619,13 @@ def attention_check1():
603
  <style>
604
  div[data-testid="stButton"] > button[kind="primary"] {
605
  background-color: #28a745 !important;
606
- color: white !important;
607
  }
608
  </style>
609
  """, unsafe_allow_html=True)
610
 
611
- if st.button("ادامه", key="continue_green"):
612
  if answer:
613
- st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
614
  st.session_state.current_page = "random_likert_questions"
615
  st.rerun()
616
  else:
 
232
  padding: 10px 20px !important;
233
  font-weight: bold !important;
234
  }
235
+
236
+ /* استایل دکمه سبز سفارشی */
237
+ div[data-testid="stButton"] > button.green-btn {
238
+ background-color: #28a745 !important;
239
+ color: white !important;
240
+ border: none !important;
241
+ border-radius: 8px !important;
242
+ padding: 10px 20px !important;
243
+ font-weight: bold !important;
244
+ width: 100% !important;
245
+ }
246
+ div[data-testid="stButton"] > button.green-btn:hover {
247
+ background-color: #218838 !important;
248
+ transform: translateY(-1px);
249
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
250
+ }
251
 
252
 
253
  /* ========== استایل تضمینی برای گزینه‌های رادیویی ========== */
 
619
  <style>
620
  div[data-testid="stButton"] > button[kind="primary"] {
621
  background-color: #28a745 !important;
 
622
  }
623
  </style>
624
  """, unsafe_allow_html=True)
625
 
626
+ if st.button("ادامه", key="continue_green"):
627
  if answer:
628
+ st.session_state.attention_check1 = answer
629
  st.session_state.current_page = "random_likert_questions"
630
  st.rerun()
631
  else: