Update app.py
Browse files
app.py
CHANGED
@@ -258,24 +258,35 @@ if not st.session_state.authenticated:
|
|
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"),
|
262 |
-
("تاریخچه ماموریتها", "https://cdn-icons-png.flaticon.com/512/709/709496.png"),
|
263 |
-
("تحلیل دادههای
|
264 |
-
("مدیریت منابع", "https://cdn-icons-png.flaticon.com/512/681/681494.png"),
|
265 |
-
("دستیار فرماندهی", "https://cdn-icons-png.flaticon.com/512/3601/3601646.png"),
|
266 |
-
("تنظیمات امنیتی", "https://cdn-icons-png.flaticon.com/512/2099/2099058.png"),
|
267 |
-
("پشتیبانی فنی", "https://cdn-icons-png.flaticon.com/512/597/597177.png"),
|
268 |
]
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
{text
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
if idx in [1, 3, 5]:
|
277 |
st.markdown("<hr/>", unsafe_allow_html=True)
|
278 |
-
|
279 |
st.markdown("""
|
280 |
<style>
|
281 |
/* استایل برای متن هدر */
|
|
|
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/test.hf.space"),
|
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 |
+
st.markdown(f"""
|
273 |
+
<a href="{link}" target="_blank" style="text-decoration: none;">
|
274 |
+
<div class="menu-item" style="display: flex; align-items: center; margin-bottom: 10px;">
|
275 |
+
<img src="{icon}" width="20" height="20" style="margin-left: 10px;" />
|
276 |
+
<span style="color: #333;">{text}</span>
|
277 |
+
</div>
|
278 |
+
</a>
|
279 |
+
""", unsafe_allow_html=True)
|
280 |
+
else:
|
281 |
+
st.markdown(f"""
|
282 |
+
<div class="menu-item" style="display: flex; align-items: center; margin-bottom: 10px;">
|
283 |
+
<img src="{icon}" width="20" height="20" style="margin-left: 10px;" />
|
284 |
+
<span style="color: #333;">{text}</span>
|
285 |
+
</div>
|
286 |
+
""", unsafe_allow_html=True)
|
287 |
+
|
288 |
if idx in [1, 3, 5]:
|
289 |
st.markdown("<hr/>", unsafe_allow_html=True)
|
|
|
290 |
st.markdown("""
|
291 |
<style>
|
292 |
/* استایل برای متن هدر */
|