Maryam Ilka commited on
Commit
5b2a67d
·
verified ·
1 Parent(s): b0eb4d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -7
app.py CHANGED
@@ -105,6 +105,20 @@ st.markdown("""
105
  margin: 10px 0;
106
  padding-right: 15px;
107
  border-right: 3px solid #6a0dad;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
109
  </style>
110
  """, unsafe_allow_html=True)
@@ -287,7 +301,7 @@ def scenario_explanation():
287
  with col2:
288
  st.markdown("""
289
  <h2 style="color: #6a0dad; margin: 0;">رهیار 🚖</h2>
290
- <p style="color: #6a0dad; margin: 0;">سفرهای درون شهری سریع و مطمئن</p>
291
  """, unsafe_allow_html=True)
292
 
293
  st.markdown("### سناریوی تحقیق")
@@ -302,9 +316,9 @@ def scenario_explanation():
302
  else:
303
  st.markdown("""
304
  <div style="background-color: #f8f9fa; padding: 15px; border-radius: 10px;">
305
- <p>شما قصد دارید سفری را از مبدأ میدان ونک به مقصد میدان تجریش درخواست کنید.</p>
306
- <p>قیمت پیشنهادی این سفر 200,000 تومان است.</p>
307
- <p>پلتفرم توضیحاتی درباره علت این قیمت ارائه میدهد.</p>
308
  </div>
309
  """, unsafe_allow_html=True)
310
 
@@ -322,8 +336,8 @@ def map_view():
322
  st.image("https://via.placeholder.com/80/6a0dad/FFFFFF?text=LOGO", width=80)
323
  with col2:
324
  st.markdown("""
325
- <h2 style="color: #6a0dad; margin: 0;">راهیار 🚖</h2>
326
- <p style="color: #6a0dad; margin: 0;">سفرهای درون شهری سریع و مطمئن</p>
327
  """, unsafe_allow_html=True)
328
 
329
  st.markdown("### مسیر سفر شما")
@@ -339,8 +353,15 @@ def map_view():
339
  """, unsafe_allow_html=True)
340
 
341
  show_explanation(st.session_state.scenario_type)
 
 
 
 
 
 
 
342
 
343
- if st.button("درخواست راهیار", key="request_btn", type="primary"):
344
  st.session_state.current_page = "transparency_questions"
345
  st.rerun()
346
 
 
105
  margin: 10px 0;
106
  padding-right: 15px;
107
  border-right: 3px solid #6a0dad;
108
+
109
+ .fake-btn {
110
+ background-color: #6a0dad !important;
111
+ color: white !important;
112
+ border: none !important;
113
+ padding: 12px 24px !important;
114
+ border-radius: 8px !important;
115
+ font-weight: bold !important;
116
+ cursor: pointer;
117
+ transition: transform 0.2s;
118
+ }
119
+ .fake-btn:active {
120
+ transform: scale(0.95);
121
+ }
122
  }
123
  </style>
124
  """, unsafe_allow_html=True)
 
301
  with col2:
302
  st.markdown("""
303
  <h2 style="color: #6a0dad; margin: 0;">رهیار 🚖</h2>
304
+ <p style="color: #6a0dad; margin: 0;">همراه سفرهای درونشهری شما، راهی مطمئن، راهی روشن، رهیار</p>
305
  """, unsafe_allow_html=True)
306
 
307
  st.markdown("### سناریوی تحقیق")
 
316
  else:
317
  st.markdown("""
318
  <div style="background-color: #f8f9fa; padding: 15px; border-radius: 10px;">
319
+ <p>فرض کنید یک اپلیکیشن حمل‌ونقل آنلاین ایرانی به اسم رهیار طراحی شده، چیزی شبیه اسنپ یا تپسی، اما جدیدتر و با شعار مراه سفرهای شما، راهی مطمئن، راهی روشن، رهیار"</p>
320
+ <p>در یک روز عادی، شما قصد دارید برای سفری از طریق این پلتفرم اقدام کنید..</p>
321
+ <p>با کلیک بر دکمه ادامه، اطلاعات سفر را مشاهده کنید.</p>
322
  </div>
323
  """, unsafe_allow_html=True)
324
 
 
336
  st.image("https://via.placeholder.com/80/6a0dad/FFFFFF?text=LOGO", width=80)
337
  with col2:
338
  st.markdown("""
339
+ <h2 style="color: #6a0dad; margin: 0;">رهیار 🚖</h2>
340
+ <p style="color: #6a0dad; margin: 0;">همراه سفرهای درونشهری شما، راهی مطمئن، راهی روشن، رهیار</p>
341
  """, unsafe_allow_html=True)
342
 
343
  st.markdown("### مسیر سفر شما")
 
353
  """, unsafe_allow_html=True)
354
 
355
  show_explanation(st.session_state.scenario_type)
356
+
357
+
358
+ st.markdown("""
359
+ <div style="text-align: center;">
360
+ <button class="fake-btn">درخواست راهیار</button>
361
+ </div>
362
+ """, unsafe_allow_html=True)
363
 
364
+ if st.button("ادامه", key="request_btn", type="primary"):
365
  st.session_state.current_page = "transparency_questions"
366
  st.rerun()
367