-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDashboard.py
More file actions
98 lines (90 loc) · 3.89 KB
/
Dashboard.py
File metadata and controls
98 lines (90 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import streamlit as st
# Custom CSS for visual enhancements
st.markdown("""
<style>
.title {
font-size: 2.5em;
color: red;
text-align: center;
margin-bottom: 10px;
}
.description {
font-size: 1.25em;
color: #666;
text-align: center;
margin-bottom: 20px;
}
.new-badge {
background-color: #FFC107;
color: white;
padding: 3px 8px;
border-radius: 5px;
font-size: 0.75em;
margin-left: 5px;
}
.button {
width: 100%;
padding: 15px;
font-size: 1.1em;
border-radius: 10px;
margin-bottom: 10px;
}
.profile-pic {
display: block;
margin-left: auto;
margin-right: auto;
border-radius: 50%;
width: 150px;
}
</style>
""", unsafe_allow_html=True)
# Title and description
st.markdown('<div class="title">تطبيقات بايثون لأسواق الأسهم</div>', unsafe_allow_html=True)
st.markdown('<div class="description">أدوات مالية متكاملة للمستثمرين في أسواق المال، تساعدك على اتخاذ قرارات استثمارية ذكية ومدروسة</div>', unsafe_allow_html=True)
# profile picture
profile_pic_url = "https://pbs.twimg.com/profile_images/1689517781669007360/oIga1frq_400x400.jpg"
st.markdown(f'<img src="{profile_pic_url}" alt="Profile Picture" class="profile-pic">', unsafe_allow_html=True)
st.markdown('برمجة يحيى التلمساني')
# Add a hyperlink to your Twitter account
st.markdown('[X تابعني في منصة](https://twitter.com/telmisany)')
# Button grid
app_links = [
("الأرباح المبقاة للشركات", "https://retainedincome.streamlit.app/"),
("حاسبة دعوم ومقاومات الأسهم", "https://support-resistance-levels.streamlit.app/"),
("توصيات المحللين", "https://tickerstargets.streamlit.app/#analyst-recommendations"),
("القيمة العادلة للأسهم بطريقة جراهام", "https://otherfinancials-z8jg3khd9ka2igdzqjvxbw.streamlit.app/"),
("القوائم المالية (غير معرب)", "https://tasi-financials.streamlit.app/"),
("النتائج المالية", "https://net-income.streamlit.app/"),
("التوزيعات النقدية", "https://tasi-dividents.streamlit.app/"),
("نسبة تغير أسعار الأسهم من قاع كورونا 2020", "https://corona-return.streamlit.app/"),
("تقييم توصيات المحللين", "https://analyst-metric.streamlit.app/"),
("النسب المالية", "https://financial-ratios.streamlit.app/"),
("المحلل الرقمي (قريبا)", ""),
]
# Indicate new apps (separated by ,)
new_apps = ["النسب المالية"]
# Create a 2x5 grid using Streamlit's columns
columns = st.columns(2)
for i, (app_name, link) in enumerate(app_links):
col = columns[i % 2] # Alternate between left and right columns
with col:
if app_name in new_apps:
st.markdown(
f'<a href="{link}" target="_blank">'
f'<button class="button">{app_name} <span class="new-badge">NEW</span></button>'
f'</a>',
unsafe_allow_html=True,
)
else:
st.markdown(
f'<a href="{link}" target="_blank">'
f'<button class="button">{app_name}</button>'
f'</a>',
unsafe_allow_html=True,
)
# Add three empty lines for spacing
st.write('\n\n\n')
# Buy me coffee AD:
image_url = 'https://i.ibb.co/WkHT8HP/buy-me-coffee_2.png'
link_url = 'https://www.buymeacoffee.com/y7iia'
st.markdown(f'<a href="{link_url}"><img src="{image_url}" alt="Image" width="200"/></a>', unsafe_allow_html=True)