Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -270,6 +270,57 @@ st.markdown("""
|
|
| 270 |
padding: 12px 20px !important;
|
| 271 |
font-size: 14px !important;
|
| 272 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
}
|
| 274 |
</style>
|
| 275 |
""", unsafe_allow_html=True)
|
|
@@ -452,6 +503,17 @@ def user_contact():
|
|
| 452 |
|
| 453 |
def demographic_form():
|
| 454 |
"""فرم اطلاعات دموگرافیک"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 455 |
with st.form("demographic"):
|
| 456 |
st.header("📝 اطلاعات دموگرافیک")
|
| 457 |
age = st.number_input("سن", min_value=18, max_value=100)
|
|
@@ -677,7 +739,16 @@ def thank_you_page():
|
|
| 677 |
st.success("✅ پاسخهای شما با موفقیت ثبت شد. با تشکر از مشارکت شما در این تحقیق!")
|
| 678 |
st.balloons()
|
| 679 |
|
| 680 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 681 |
st.session_state.clear()
|
| 682 |
st.rerun()
|
| 683 |
|
|
|
|
| 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)
|
|
|
|
| 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 |
st.success("✅ پاسخهای شما با موفقیت ثبت شد. با تشکر از مشارکت شما در این تحقیق!")
|
| 740 |
st.balloons()
|
| 741 |
|
| 742 |
+
st.markdown("""
|
| 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 |
|