Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -270,57 +270,6 @@ st.markdown("""
|
|
| 270 |
padding: 12px 20px !important;
|
| 271 |
font-size: 14px !important;
|
| 272 |
}
|
| 273 |
-
/* بازنویسی کامل رنگهای استریملیت برای دسکتاپ */
|
| 274 |
-
@media only screen and (min-width: 769px) {
|
| 275 |
-
/* تنظیمات عمومی متن */
|
| 276 |
-
body, div, p, span, h1, h2, h3, h4, h5, h6 {
|
| 277 |
-
color: #333333 !important;
|
| 278 |
-
}
|
| 279 |
-
|
| 280 |
-
/* تنظیمات inputها و selectها */
|
| 281 |
-
.stTextInput input,
|
| 282 |
-
.stNumberInput input,
|
| 283 |
-
.stSelectbox select,
|
| 284 |
-
.stTextArea textarea {
|
| 285 |
-
color: #333333 !important;
|
| 286 |
-
background-color: white !important;
|
| 287 |
-
border-color: #6a0dad !important;
|
| 288 |
-
}
|
| 289 |
-
|
| 290 |
-
/* تنظیمات دکمهها */
|
| 291 |
-
.stButton button,
|
| 292 |
-
.stButton button:focus,
|
| 293 |
-
.stButton button:hover {
|
| 294 |
-
color: white !important;
|
| 295 |
-
background-color: #6a0dad !important;
|
| 296 |
-
border-color: #6a0dad !important;
|
| 297 |
-
}
|
| 298 |
-
|
| 299 |
-
/* دکمه رد قیمت */
|
| 300 |
-
[data-testid="baseButton-secondary"] {
|
| 301 |
-
color: #6a0dad !important;
|
| 302 |
-
background-color: white !important;
|
| 303 |
-
border-color: #6a0dad !important;
|
| 304 |
-
}
|
| 305 |
-
|
| 306 |
-
/* دکمه بازگشت به ابتدا */
|
| 307 |
-
[data-testid="baseButton-primary"] {
|
| 308 |
-
color: white !important;
|
| 309 |
-
background-color: #6a0dad !important;
|
| 310 |
-
}
|
| 311 |
-
}
|
| 312 |
-
|
| 313 |
-
/* تضمین رنگ متن در تمام عناصر */
|
| 314 |
-
* {
|
| 315 |
-
color: #333333 !important;
|
| 316 |
-
}
|
| 317 |
-
|
| 318 |
-
/* استثنا برای عناصر خاص */
|
| 319 |
-
.rahyar-price,
|
| 320 |
-
.rahyar-header,
|
| 321 |
-
.explanation-title,
|
| 322 |
-
.rahyar-badge {
|
| 323 |
-
color: #6a0dad !important;
|
| 324 |
}
|
| 325 |
</style>
|
| 326 |
""", unsafe_allow_html=True)
|
|
@@ -484,6 +433,15 @@ def welcome_page():
|
|
| 484 |
def user_contact():
|
| 485 |
"""راه ارتباطی ساده"""
|
| 486 |
st.markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 487 |
<div style="text-align: center; margin-bottom: 30px;">
|
| 488 |
<h3>📩 راه ارتباطی شما (اختیاری)</h3>
|
| 489 |
<p>در صورت تمایل به شرکت در قرعهکشی میتوانید آیدی تلگرام، شماره تماس یا ایمیل خود را وارد کنید:</p>
|
|
@@ -503,17 +461,6 @@ def user_contact():
|
|
| 503 |
|
| 504 |
def demographic_form():
|
| 505 |
"""فرم اطلاعات دموگرافیک"""
|
| 506 |
-
st.markdown("""
|
| 507 |
-
<style>
|
| 508 |
-
.stTextInput input,
|
| 509 |
-
.stNumberInput input,
|
| 510 |
-
.stSelectbox select {
|
| 511 |
-
color: #333333 !important;
|
| 512 |
-
background-color: white !important;
|
| 513 |
-
}
|
| 514 |
-
</style>
|
| 515 |
-
""", unsafe_allow_html=True)
|
| 516 |
-
|
| 517 |
with st.form("demographic"):
|
| 518 |
st.header("📝 اطلاعات دموگرافیک")
|
| 519 |
age = st.number_input("سن", min_value=18, max_value=100)
|
|
@@ -739,16 +686,7 @@ def thank_you_page():
|
|
| 739 |
st.success("✅ پاسخهای شما با موفقیت ثبت شد. با تشکر از مشارکت شما در این تحقیق!")
|
| 740 |
st.balloons()
|
| 741 |
|
| 742 |
-
st.
|
| 743 |
-
<style>
|
| 744 |
-
.stButton>button {
|
| 745 |
-
color: white !important;
|
| 746 |
-
background-color: #6a0dad !important;
|
| 747 |
-
}
|
| 748 |
-
</style>
|
| 749 |
-
""", unsafe_allow_html=True)
|
| 750 |
-
|
| 751 |
-
if st.button("بازگشت به ابتدا", key="return_btn"):
|
| 752 |
st.session_state.clear()
|
| 753 |
st.rerun()
|
| 754 |
|
|
|
|
| 270 |
padding: 12px 20px !important;
|
| 271 |
font-size: 14px !important;
|
| 272 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
}
|
| 274 |
</style>
|
| 275 |
""", unsafe_allow_html=True)
|
|
|
|
| 433 |
def user_contact():
|
| 434 |
"""راه ارتباطی ساده"""
|
| 435 |
st.markdown("""
|
| 436 |
+
<style>
|
| 437 |
+
.stTextInput input,
|
| 438 |
+
.stNumberInput input,
|
| 439 |
+
.stSelectbox select {
|
| 440 |
+
color: #333333 !important;
|
| 441 |
+
background-color: white !important;
|
| 442 |
+
}
|
| 443 |
+
</style>
|
| 444 |
+
|
| 445 |
<div style="text-align: center; margin-bottom: 30px;">
|
| 446 |
<h3>📩 راه ارتباطی شما (اختیاری)</h3>
|
| 447 |
<p>در صورت تمایل به شرکت در قرعهکشی میتوانید آیدی تلگرام، شماره تماس یا ایمیل خود را وارد کنید:</p>
|
|
|
|
| 461 |
|
| 462 |
def demographic_form():
|
| 463 |
"""فرم اطلاعات دموگرافیک"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 464 |
with st.form("demographic"):
|
| 465 |
st.header("📝 اطلاعات دموگرافیک")
|
| 466 |
age = st.number_input("سن", min_value=18, max_value=100)
|
|
|
|
| 686 |
st.success("✅ پاسخهای شما با موفقیت ثبت شد. با تشکر از مشارکت شما در این تحقیق!")
|
| 687 |
st.balloons()
|
| 688 |
|
| 689 |
+
if st.button("بازگشت به ابتدا"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 690 |
st.session_state.clear()
|
| 691 |
st.rerun()
|
| 692 |
|