Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,119 +22,119 @@ st.markdown("""
|
|
| 22 |
font-family: 'Vazir';
|
| 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 |
-
--
|
| 29 |
-
--
|
| 30 |
-
--
|
| 31 |
-
--rahyar-white: #ffffff;
|
| 32 |
-
|
| 33 |
-
/* غیرفعال کردن تم تاریک */
|
| 34 |
-
color-scheme: light only;
|
| 35 |
}
|
| 36 |
-
|
| 37 |
* {
|
| 38 |
font-family: 'Vazir', sans-serif !important;
|
| 39 |
text-align: right !important;
|
| 40 |
direction: rtl !important;
|
| 41 |
-
color: var(--text-color) !important;
|
| 42 |
}
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
.rahyar-header {
|
| 50 |
-
background-color: var(--primary
|
|
|
|
| 51 |
padding: 15px !important;
|
| 52 |
border-radius: 10px !important;
|
| 53 |
-
color: white !important;
|
| 54 |
margin-bottom: 20px !important;
|
| 55 |
text-align: center !important;
|
| 56 |
}
|
| 57 |
-
|
| 58 |
.price-container {
|
| 59 |
background-color: #f8f9fa !important;
|
| 60 |
border-radius: 10px !important;
|
| 61 |
padding: 15px !important;
|
| 62 |
-
margin: 15px 0;
|
| 63 |
-
border-right: 5px solid var(--primary
|
| 64 |
}
|
| 65 |
-
|
| 66 |
.rahyar-price {
|
| 67 |
-
color: var(--primary
|
| 68 |
font-size: 28px !important;
|
| 69 |
font-weight: bold !important;
|
| 70 |
-
text-align: center !important;
|
| 71 |
-
margin: 10px 0;
|
| 72 |
}
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 76 |
color: white !important;
|
| 77 |
-
|
| 78 |
-
padding: 10px 20px !important;
|
| 79 |
-
border-radius: 8px !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 |
-
|
| 106 |
-
.reject-btn
|
| 107 |
-
background-color: #f8f0ff !important;
|
| 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 |
-
|
| 122 |
-
border
|
| 123 |
-
padding:
|
| 124 |
}
|
| 125 |
-
|
| 126 |
-
/* تنظیمات
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
-
|
| 137 |
-
|
|
|
|
| 138 |
.folium-map {
|
| 139 |
height: 300px !important;
|
| 140 |
}
|
|
@@ -142,11 +142,18 @@ st.markdown("""
|
|
| 142 |
.price-container {
|
| 143 |
width: 95% !important;
|
| 144 |
}
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
}
|
| 151 |
</style>
|
| 152 |
""", unsafe_allow_html=True)
|
|
|
|
| 22 |
font-family: 'Vazir';
|
| 23 |
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff');
|
| 24 |
}
|
| 25 |
+
|
| 26 |
:root {
|
| 27 |
+
--primary: #6a0dad;
|
| 28 |
+
--text: #333333;
|
| 29 |
+
--background: #ffffff;
|
| 30 |
+
--border: #dddddd;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
+
|
| 33 |
* {
|
| 34 |
font-family: 'Vazir', sans-serif !important;
|
| 35 |
text-align: right !important;
|
| 36 |
direction: rtl !important;
|
|
|
|
| 37 |
}
|
| 38 |
+
|
| 39 |
+
/* تنظیمات اصلی استریملیت */
|
| 40 |
+
body, .stApp {
|
| 41 |
+
background-color: var(--background) !important;
|
| 42 |
+
color: var(--text) !important;
|
| 43 |
}
|
| 44 |
+
|
| 45 |
+
[data-testid="stAppViewContainer"] {
|
| 46 |
+
background-color: var(--background) !important;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* باکسهای ورودی */
|
| 50 |
+
.stTextInput input,
|
| 51 |
+
.stNumberInput input,
|
| 52 |
+
.stSelectbox select,
|
| 53 |
+
.stTextArea textarea,
|
| 54 |
+
.stDateInput input,
|
| 55 |
+
.stTimeInput input {
|
| 56 |
+
color: var(--text) !important;
|
| 57 |
+
background-color: var(--background) !important;
|
| 58 |
+
border: 1px solid var(--border) !important;
|
| 59 |
+
border-radius: 8px !important;
|
| 60 |
+
padding: 8px 12px !important;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/* دکمههای اصلی */
|
| 64 |
+
.stButton>button,
|
| 65 |
+
[data-testid="baseButton-primary"] {
|
| 66 |
+
background-color: var(--primary) !important;
|
| 67 |
+
color: white !important;
|
| 68 |
+
border: none !important;
|
| 69 |
+
border-radius: 8px !important;
|
| 70 |
+
padding: 10px 20px !important;
|
| 71 |
+
font-weight: bold !important;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* دکمههای ثانویه */
|
| 75 |
+
.stFormSubmitButton>button,
|
| 76 |
+
[data-testid="baseButton-secondary"] {
|
| 77 |
+
background-color: white !important;
|
| 78 |
+
color: var(--primary) !important;
|
| 79 |
+
border: 1px solid var(--primary) !important;
|
| 80 |
+
border-radius: 8px !important;
|
| 81 |
+
padding: 10px 20px !important;
|
| 82 |
+
font-weight: bold !important;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/* کامپوننتهای سفارشی شما */
|
| 86 |
.rahyar-header {
|
| 87 |
+
background-color: var(--primary) !important;
|
| 88 |
+
color: white !important;
|
| 89 |
padding: 15px !important;
|
| 90 |
border-radius: 10px !important;
|
|
|
|
| 91 |
margin-bottom: 20px !important;
|
| 92 |
text-align: center !important;
|
| 93 |
}
|
| 94 |
+
|
| 95 |
.price-container {
|
| 96 |
background-color: #f8f9fa !important;
|
| 97 |
border-radius: 10px !important;
|
| 98 |
padding: 15px !important;
|
| 99 |
+
margin: 15px 0 !important;
|
| 100 |
+
border-right: 5px solid var(--primary) !important;
|
| 101 |
}
|
| 102 |
+
|
| 103 |
.rahyar-price {
|
| 104 |
+
color: var(--primary) !important;
|
| 105 |
font-size: 28px !important;
|
| 106 |
font-weight: bold !important;
|
|
|
|
|
|
|
| 107 |
}
|
| 108 |
+
|
| 109 |
+
/* دکمههای پذیرش/رد */
|
| 110 |
+
.accept-btn {
|
| 111 |
+
background-color: var(--primary) !important;
|
| 112 |
color: white !important;
|
| 113 |
+
padding: 14px 28px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
+
|
| 116 |
+
.reject-btn {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
background-color: white !important;
|
| 118 |
+
color: var(--primary) !important;
|
| 119 |
+
border: 2px solid var(--primary) !important;
|
| 120 |
+
padding: 14px 28px !important;
|
| 121 |
}
|
| 122 |
+
|
| 123 |
+
/* تنظیمات مخصوص دسکتاپ */
|
| 124 |
+
@media (min-width: 769px) {
|
| 125 |
+
.folium-map {
|
| 126 |
+
height: 500px !important;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
.stTextInput input,
|
| 130 |
+
.stNumberInput input {
|
| 131 |
+
color: black !important;
|
| 132 |
+
background-color: white !important;
|
| 133 |
+
}
|
| 134 |
}
|
| 135 |
+
|
| 136 |
+
/* تنظیمات مخصوص موبایل */
|
| 137 |
+
@media (max-width: 768px) {
|
| 138 |
.folium-map {
|
| 139 |
height: 300px !important;
|
| 140 |
}
|
|
|
|
| 142 |
.price-container {
|
| 143 |
width: 95% !important;
|
| 144 |
}
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
/* غیرفعال کردن کامل تم تاریک */
|
| 148 |
+
[data-testid="stAppViewContainer"] > .main > div {
|
| 149 |
+
background-color: white !important;
|
| 150 |
+
color: #333333 !important;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
/* تضمین خوانایی متن در همه حال */
|
| 154 |
+
.st-bb, .st-at, .st-ae, .st-af, .st-ag, .st-ah, .st-ai, .st-aj,
|
| 155 |
+
.st-ak, .st-al, .st-cm, .st-cn, .st-co, .st-cp, .st-cq, .st-cr {
|
| 156 |
+
color: var(--text) !important;
|
| 157 |
}
|
| 158 |
</style>
|
| 159 |
""", unsafe_allow_html=True)
|