Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,95 +23,15 @@ st.markdown("""
|
|
| 23 |
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff');
|
| 24 |
}
|
| 25 |
|
| 26 |
-
* {
|
| 27 |
-
font-family: 'Vazir', sans-serif !important;
|
| 28 |
-
text-align: right !important;
|
| 29 |
-
direction: rtl !important;
|
| 30 |
-
}
|
| 31 |
:root {
|
| 32 |
-
|
| 33 |
--primary-color: #6a0dad;
|
| 34 |
--text-color: #333333;
|
| 35 |
--background-color: #ffffff;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
@media (prefers-color-scheme: dark) {
|
| 39 |
-
:root {
|
| 40 |
-
--text-color: #333333;
|
| 41 |
-
--background-color: #121212;
|
| 42 |
-
}
|
| 43 |
-
}
|
| 44 |
-
/* تنظیمات پایه برای تمام دستگاهها */
|
| 45 |
-
:root {
|
| 46 |
-
color-scheme: light only;
|
| 47 |
-
--rahyar-primary: #6a0dad;
|
| 48 |
-
--rahyar-text: #333333;
|
| 49 |
-
--rahyar-bg: #ffffff;
|
| 50 |
--rahyar-white: #ffffff;
|
| 51 |
-
}
|
| 52 |
-
/* اجبار به استفاده از رنگ متن تعریف شده */
|
| 53 |
-
html, body, [class*="css"] {
|
| 54 |
-
color: var(--text-color) !important;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
/* غیرفعال کردن تم تاریک به صورت کامل */
|
| 58 |
-
[data-testid="stAppViewContainer"] {
|
| 59 |
-
background-color: white !important;
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
/* تنظیمات مخصوص دسکتاپ */
|
| 63 |
-
@media only screen and (min-width: 769px) {
|
| 64 |
-
:root {
|
| 65 |
-
--text-color: #333333 !important; /* تضمین رنگ مشکی در دسکتاپ */
|
| 66 |
-
}
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
/* تنظیمات مخصوص موبایل */
|
| 70 |
-
@media only screen and (max-width: 768px) {
|
| 71 |
-
:root {
|
| 72 |
-
--text-color: #333333 !important; /* یکسان نگه داشتن رنگ در موبایل */
|
| 73 |
-
}
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
/* بازنویسی کامل بخش تنظیمات دسکتاپ */
|
| 77 |
-
@media only screen and (min-width: 769px) {
|
| 78 |
-
html, body, [class*="css"] {
|
| 79 |
-
color: var(--rahyar-text) !important;
|
| 80 |
-
background-color: var(--rahyar-bg) !important;
|
| 81 |
-
}
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
/* تنظیمات مخصوص دسکتاپ */
|
| 88 |
-
.folium-map {
|
| 89 |
-
height: 500px !important;
|
| 90 |
-
width: 100% !important;
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
.price-container {
|
| 94 |
-
width: 80% !important;
|
| 95 |
-
margin: 20px auto !important;
|
| 96 |
-
}
|
| 97 |
-
|
| 98 |
-
/* دکمههای دسکتاپ */
|
| 99 |
-
.accept-btn, .reject-btn {
|
| 100 |
-
padding: 16px 32px !important;
|
| 101 |
-
font-size: 18px !important;
|
| 102 |
-
max-width: 300px !important;
|
| 103 |
-
}
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
/* تنظیمات موبایل */
|
| 107 |
-
@media only screen and (max-width: 768px) {
|
| 108 |
-
.folium-map {
|
| 109 |
-
height: 300px !important;
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
.price-container {
|
| 113 |
-
width: 95% !important;
|
| 114 |
-
}
|
| 115 |
}
|
| 116 |
|
| 117 |
* {
|
|
@@ -121,16 +41,13 @@ st.markdown("""
|
|
| 121 |
color: var(--text-color) !important;
|
| 122 |
}
|
| 123 |
|
| 124 |
-
body {
|
| 125 |
-
background-color: var(--background-color) !important;
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
.stApp {
|
| 129 |
background-color: var(--background-color) !important;
|
| 130 |
}
|
| 131 |
|
|
|
|
| 132 |
.rahyar-header {
|
| 133 |
-
background-color:
|
| 134 |
padding: 15px !important;
|
| 135 |
border-radius: 10px !important;
|
| 136 |
color: white !important;
|
|
@@ -143,19 +60,19 @@ st.markdown("""
|
|
| 143 |
border-radius: 10px !important;
|
| 144 |
padding: 15px !important;
|
| 145 |
margin: 15px 0;
|
| 146 |
-
border-right: 5px solid
|
| 147 |
}
|
| 148 |
|
| 149 |
.rahyar-price {
|
| 150 |
-
color:
|
| 151 |
font-size: 28px !important;
|
| 152 |
font-weight: bold !important;
|
| 153 |
text-align: center !important;
|
| 154 |
margin: 10px 0;
|
| 155 |
}
|
| 156 |
|
| 157 |
-
.rahyar-btn {
|
| 158 |
-
background-color:
|
| 159 |
color: white !important;
|
| 160 |
border: none !important;
|
| 161 |
padding: 10px 20px !important;
|
|
@@ -163,83 +80,26 @@ st.markdown("""
|
|
| 163 |
font-weight: bold !important;
|
| 164 |
margin: 5px 0 !important;
|
| 165 |
width: 100% !important;
|
| 166 |
-
}
|
| 167 |
-
|
| 168 |
-
.likert-btn {
|
| 169 |
-
margin: 5px;
|
| 170 |
-
padding: 10px 15px;
|
| 171 |
-
border-radius: 8px;
|
| 172 |
-
border: 1px solid #ddd;
|
| 173 |
-
background-color: white;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
.likert-btn-selected {
|
| 177 |
-
border: 2px solid #6a0dad !important;
|
| 178 |
-
background-color: #f0e6ff !important;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
.survey-section {
|
| 182 |
-
background-color: #f0f2f6;
|
| 183 |
-
border-radius: 10px;
|
| 184 |
-
padding: 20px;
|
| 185 |
-
margin-top: 30px;
|
| 186 |
-
}
|
| 187 |
-
|
| 188 |
-
.rahyar-badge {
|
| 189 |
-
background-color: #e6e6fa !important;
|
| 190 |
-
color: #6a0dad !important;
|
| 191 |
-
padding: 5px 10px !important;
|
| 192 |
-
border-radius: 15px !important;
|
| 193 |
-
font-size: 14px !important;
|
| 194 |
-
display: inline-block !important;
|
| 195 |
-
margin-left: 10px !important;
|
| 196 |
-
}
|
| 197 |
-
|
| 198 |
-
.explanation-title {
|
| 199 |
-
color: #6a0dad !important;
|
| 200 |
-
font-weight: bold !important;
|
| 201 |
-
margin-top: 20px !important;
|
| 202 |
-
}
|
| 203 |
-
|
| 204 |
-
.explanation-item {
|
| 205 |
-
margin: 10px 0;
|
| 206 |
-
padding-right: 15px !important;
|
| 207 |
-
border-right: 3px solid #6a0dad !important;
|
| 208 |
-
}
|
| 209 |
-
|
| 210 |
-
.accept-btn {
|
| 211 |
-
background-color: #6a0dad !important;
|
| 212 |
-
color: white !important;
|
| 213 |
-
border: none !important;
|
| 214 |
-
padding: 14px 28px !important;
|
| 215 |
-
border-radius: 12px !important;
|
| 216 |
-
font-weight: bold !important;
|
| 217 |
-
font-size: 16px !important;
|
| 218 |
-
cursor: pointer;
|
| 219 |
transition: all 0.3s ease;
|
| 220 |
-
margin: 10px auto;
|
| 221 |
-
width: 100%;
|
| 222 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 223 |
}
|
| 224 |
|
| 225 |
-
.accept-btn:hover {
|
| 226 |
background-color: #7b1fa2 !important;
|
| 227 |
transform: translateY(-2px);
|
| 228 |
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
| 229 |
}
|
| 230 |
|
| 231 |
-
.reject-btn {
|
| 232 |
background-color: white !important;
|
| 233 |
-
color:
|
| 234 |
-
border: 2px solid
|
| 235 |
-
padding:
|
| 236 |
-
border-radius:
|
| 237 |
font-weight: bold !important;
|
| 238 |
-
|
| 239 |
-
|
| 240 |
transition: all 0.3s ease;
|
| 241 |
-
margin: 10px auto;
|
| 242 |
-
width: 100%;
|
| 243 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 244 |
}
|
| 245 |
|
|
@@ -248,91 +108,42 @@ st.markdown("""
|
|
| 248 |
transform: translateY(-2px);
|
| 249 |
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
| 250 |
}
|
| 251 |
-
|
|
|
|
| 252 |
.stTextInput input,
|
| 253 |
.stNumberInput input,
|
| 254 |
.stSelectbox select,
|
| 255 |
.stTextArea textarea,
|
| 256 |
.stDateInput input,
|
| 257 |
.stTimeInput input {
|
| 258 |
-
color:
|
| 259 |
background-color: white !important;
|
| 260 |
-
border: 1px solid
|
| 261 |
border-radius: 8px !important;
|
| 262 |
padding: 8px 12px !important;
|
| 263 |
-
font-family: 'Vazir' !important;
|
| 264 |
-
}
|
| 265 |
-
|
| 266 |
-
/* استایل دکمههای + و - در number input */
|
| 267 |
-
.stNumberInput button {
|
| 268 |
-
background-color: white !important;
|
| 269 |
-
border: 1px solid #333333 !important;
|
| 270 |
-
color: #333333 !important;
|
| 271 |
}
|
| 272 |
-
|
| 273 |
-
/*
|
| 274 |
-
.
|
| 275 |
-
|
| 276 |
-
background-color: white !important;
|
| 277 |
-
color: #333333 !important;
|
| 278 |
-
border: 1px solid #333333 !important;
|
| 279 |
-
border-radius: 8px !important;
|
| 280 |
-
padding: 10px 24px !important;
|
| 281 |
-
font-family: 'Vazir' !important;
|
| 282 |
-
font-weight: normal !important;
|
| 283 |
-
transition: all 0.3s ease !important;
|
| 284 |
width: 100% !important;
|
| 285 |
-
box-shadow: none !important;
|
| 286 |
}
|
| 287 |
-
|
| 288 |
-
.
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
}
|
| 292 |
-
|
| 293 |
-
/* استایل دکمههای رد و درخواست رهیار (بنفش) */
|
| 294 |
-
.rahyar-primary-btn {
|
| 295 |
-
background-color: #6a0dad !important;
|
| 296 |
-
color: white !important;
|
| 297 |
-
border: none !important;
|
| 298 |
-
}
|
| 299 |
-
|
| 300 |
-
/* استایل دکمههای لیکرت */
|
| 301 |
-
.likert-btn {
|
| 302 |
-
background-color: white !important;
|
| 303 |
-
color: #333333 !important;
|
| 304 |
-
border: 1px solid #333333 !important;
|
| 305 |
-
}
|
| 306 |
-
|
| 307 |
-
/* استایل متنهای بنفش (رهیار) */
|
| 308 |
-
.rahyar-text {
|
| 309 |
-
color: #6a0dad !important;
|
| 310 |
-
}
|
| 311 |
-
|
| 312 |
-
/* استایل placeholder */
|
| 313 |
-
::placeholder {
|
| 314 |
-
color: #999999 !important;
|
| 315 |
-
opacity: 1 !important;
|
| 316 |
}
|
| 317 |
|
| 318 |
-
|
| 319 |
-
@media only screen and (min-width: 769px) {
|
| 320 |
.folium-map {
|
| 321 |
-
height:
|
| 322 |
}
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
.stApp {
|
| 330 |
-
background-color: white !important;
|
| 331 |
-
}
|
| 332 |
-
/* تنظیمات ریسپانسیو */
|
| 333 |
-
@media only screen and (max-width: 768px) {
|
| 334 |
-
/* استایلهای مخصوص موبایل */
|
| 335 |
-
.rahyar-request-btn, .rahyar-reject-btn {
|
| 336 |
padding: 12px 20px !important;
|
| 337 |
font-size: 14px !important;
|
| 338 |
}
|
|
|
|
| 23 |
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff');
|
| 24 |
}
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
:root {
|
| 27 |
+
/* تنظیمات رنگ */
|
| 28 |
--primary-color: #6a0dad;
|
| 29 |
--text-color: #333333;
|
| 30 |
--background-color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
--rahyar-white: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
/* غیرفعال کردن تم تاریک */
|
| 34 |
+
color-scheme: light only;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
* {
|
|
|
|
| 41 |
color: var(--text-color) !important;
|
| 42 |
}
|
| 43 |
|
| 44 |
+
body, [data-testid="stAppViewContainer"], .stApp {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
background-color: var(--background-color) !important;
|
| 46 |
}
|
| 47 |
|
| 48 |
+
/* کامپوننتهای سفارشی */
|
| 49 |
.rahyar-header {
|
| 50 |
+
background-color: var(--primary-color) !important;
|
| 51 |
padding: 15px !important;
|
| 52 |
border-radius: 10px !important;
|
| 53 |
color: white !important;
|
|
|
|
| 60 |
border-radius: 10px !important;
|
| 61 |
padding: 15px !important;
|
| 62 |
margin: 15px 0;
|
| 63 |
+
border-right: 5px solid var(--primary-color);
|
| 64 |
}
|
| 65 |
|
| 66 |
.rahyar-price {
|
| 67 |
+
color: var(--primary-color) !important;
|
| 68 |
font-size: 28px !important;
|
| 69 |
font-weight: bold !important;
|
| 70 |
text-align: center !important;
|
| 71 |
margin: 10px 0;
|
| 72 |
}
|
| 73 |
|
| 74 |
+
.rahyar-btn, .accept-btn, [data-testid="baseButton-primary"] {
|
| 75 |
+
background-color: var(--primary-color) !important;
|
| 76 |
color: white !important;
|
| 77 |
border: none !important;
|
| 78 |
padding: 10px 20px !important;
|
|
|
|
| 80 |
font-weight: bold !important;
|
| 81 |
margin: 5px 0 !important;
|
| 82 |
width: 100% !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
| 84 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 85 |
}
|
| 86 |
|
| 87 |
+
.rahyar-btn:hover, .accept-btn:hover {
|
| 88 |
background-color: #7b1fa2 !important;
|
| 89 |
transform: translateY(-2px);
|
| 90 |
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
| 91 |
}
|
| 92 |
|
| 93 |
+
.reject-btn, .stFormSubmitButton>button, [data-testid="baseButton-secondary"] {
|
| 94 |
background-color: white !important;
|
| 95 |
+
color: var(--primary-color) !important;
|
| 96 |
+
border: 2px solid var(--primary-color) !important;
|
| 97 |
+
padding: 10px 20px !important;
|
| 98 |
+
border-radius: 8px !important;
|
| 99 |
font-weight: bold !important;
|
| 100 |
+
margin: 5px 0 !important;
|
| 101 |
+
width: 100% !important;
|
| 102 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
| 103 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 104 |
}
|
| 105 |
|
|
|
|
| 108 |
transform: translateY(-2px);
|
| 109 |
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
| 110 |
}
|
| 111 |
+
|
| 112 |
+
/* استایلهای فرمها */
|
| 113 |
.stTextInput input,
|
| 114 |
.stNumberInput input,
|
| 115 |
.stSelectbox select,
|
| 116 |
.stTextArea textarea,
|
| 117 |
.stDateInput input,
|
| 118 |
.stTimeInput input {
|
| 119 |
+
color: var(--text-color) !important;
|
| 120 |
background-color: white !important;
|
| 121 |
+
border: 1px solid var(--text-color) !important;
|
| 122 |
border-radius: 8px !important;
|
| 123 |
padding: 8px 12px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
}
|
| 125 |
+
|
| 126 |
+
/* تنظیمات رسپانسیو */
|
| 127 |
+
.folium-map {
|
| 128 |
+
height: 400px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
width: 100% !important;
|
|
|
|
| 130 |
}
|
| 131 |
+
|
| 132 |
+
.price-container {
|
| 133 |
+
width: 80% !important;
|
| 134 |
+
margin: 20px auto !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
+
@media only screen and (max-width: 768px) {
|
|
|
|
| 138 |
.folium-map {
|
| 139 |
+
height: 300px !important;
|
| 140 |
}
|
| 141 |
+
|
| 142 |
+
.price-container {
|
| 143 |
+
width: 95% !important;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.rahyar-btn, .accept-btn, .reject-btn {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
padding: 12px 20px !important;
|
| 148 |
font-size: 14px !important;
|
| 149 |
}
|