Update Home.py
Browse files
Home.py
CHANGED
|
@@ -40,19 +40,12 @@ social_links = {
|
|
| 40 |
}
|
| 41 |
}
|
| 42 |
|
| 43 |
-
#
|
| 44 |
-
icons_html = '<div style="display: flex; gap: 20px; justify-content: center;">'
|
| 45 |
-
|
| 46 |
-
for platform, details in social_links.items():
|
| 47 |
-
icons_html += f'''
|
| 48 |
-
<a href="{details["url"]}" target="_blank">
|
| 49 |
-
<img src="{details["icon"]}" alt="{platform}" width="50" height="50">
|
| 50 |
-
</a>
|
| 51 |
-
'''
|
| 52 |
-
|
| 53 |
-
icons_html += '</div>'
|
| 54 |
-
|
| 55 |
-
# Render the HTML with proper interpretation
|
| 56 |
st.markdown("### Connect with me:")
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
|
|
|
| 40 |
}
|
| 41 |
}
|
| 42 |
|
| 43 |
+
# Loop through the dictionary and display each as a clickable image link
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
st.markdown("### Connect with me:")
|
| 45 |
+
for platform, details in social_links.items():
|
| 46 |
+
st.markdown(
|
| 47 |
+
f'<a href="{details["url"]}" target="_blank">'
|
| 48 |
+
f'<img src="{details["icon"]}" alt="{platform}" width="50" style="margin-right: 10px;"></a>',
|
| 49 |
+
unsafe_allow_html=True
|
| 50 |
+
)
|
| 51 |
|