Update app.py
Browse files
app.py
CHANGED
@@ -257,26 +257,38 @@ if not st.session_state.authenticated:
|
|
257 |
# ---------- سایدبار ----------
|
258 |
with st.sidebar:
|
259 |
st.image("log.png", use_container_width=True)
|
|
|
260 |
menu_items = [
|
261 |
("گزارش عملیاتی", "https://cdn-icons-png.flaticon.com/512/3596/3596165.png", None),
|
262 |
("تاریخچه ماموریتها", "https://cdn-icons-png.flaticon.com/512/709/709496.png", None),
|
263 |
-
("تحلیل دادههای اجتماعی", "https://cdn-icons-png.flaticon.com/512/1828/1828932.png", "https://m17idd
|
264 |
("مدیریت منابع", "https://cdn-icons-png.flaticon.com/512/681/681494.png", None),
|
265 |
("دستیار فرماندهی", "https://cdn-icons-png.flaticon.com/512/3601/3601646.png", None),
|
266 |
("تنظیمات امنیتی", "https://cdn-icons-png.flaticon.com/512/2099/2099058.png", None),
|
267 |
("پشتیبانی فنی", "https://cdn-icons-png.flaticon.com/512/597/597177.png", None),
|
268 |
]
|
269 |
|
|
|
|
|
|
|
|
|
|
|
270 |
for idx, (text, icon, link) in enumerate(menu_items):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
if link:
|
272 |
-
|
273 |
-
<a href="{link}" target="_blank" style="text-decoration: none;">
|
274 |
-
</a>
|
275 |
-
""", unsafe_allow_html=True)
|
276 |
|
|
|
277 |
|
278 |
if idx in [1, 3, 5]:
|
279 |
-
st.markdown("<hr/>", unsafe_allow_html=True)
|
|
|
280 |
st.markdown("""
|
281 |
<style>
|
282 |
/* استایل برای متن هدر */
|
|
|
257 |
# ---------- سایدبار ----------
|
258 |
with st.sidebar:
|
259 |
st.image("log.png", use_container_width=True)
|
260 |
+
|
261 |
menu_items = [
|
262 |
("گزارش عملیاتی", "https://cdn-icons-png.flaticon.com/512/3596/3596165.png", None),
|
263 |
("تاریخچه ماموریتها", "https://cdn-icons-png.flaticon.com/512/709/709496.png", None),
|
264 |
+
("تحلیل دادههای اجتماعی", "https://cdn-icons-png.flaticon.com/512/1828/1828932.png", "https://m17idd/test.hf.space"),
|
265 |
("مدیریت منابع", "https://cdn-icons-png.flaticon.com/512/681/681494.png", None),
|
266 |
("دستیار فرماندهی", "https://cdn-icons-png.flaticon.com/512/3601/3601646.png", None),
|
267 |
("تنظیمات امنیتی", "https://cdn-icons-png.flaticon.com/512/2099/2099058.png", None),
|
268 |
("پشتیبانی فنی", "https://cdn-icons-png.flaticon.com/512/597/597177.png", None),
|
269 |
]
|
270 |
|
271 |
+
# لود فونت Vazir از CDN
|
272 |
+
st.markdown("""
|
273 |
+
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css" rel="stylesheet" type="text/css" />
|
274 |
+
""", unsafe_allow_html=True)
|
275 |
+
|
276 |
for idx, (text, icon, link) in enumerate(menu_items):
|
277 |
+
content = f"""
|
278 |
+
<div class="menu-item" style="display: flex; align-items: center; margin-bottom: 10px;">
|
279 |
+
<img src="{icon}" width="20" height="20" style="margin-left: 10px;" />
|
280 |
+
<span style="color: white; font-family: 'Vazir', sans-serif; font-weight: bold;">{text}</span>
|
281 |
+
</div>
|
282 |
+
"""
|
283 |
+
|
284 |
if link:
|
285 |
+
content = f'<a href="{link}" target="_blank" style="text-decoration: none;">{content}</a>'
|
|
|
|
|
|
|
286 |
|
287 |
+
st.markdown(content, unsafe_allow_html=True)
|
288 |
|
289 |
if idx in [1, 3, 5]:
|
290 |
+
st.markdown("<hr style='border-top: 1px solid #555;'/>", unsafe_allow_html=True)
|
291 |
+
|
292 |
st.markdown("""
|
293 |
<style>
|
294 |
/* استایل برای متن هدر */
|