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