Update Home.py
Browse files
Home.py
CHANGED
|
@@ -40,20 +40,20 @@ social_links = {
|
|
| 40 |
}
|
| 41 |
}
|
| 42 |
|
| 43 |
-
#
|
| 44 |
-
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
# Generate the HTML for all icons
|
| 47 |
-
icons_html = ""
|
| 48 |
for platform, details in social_links.items():
|
| 49 |
icons_html += f'''
|
| 50 |
<a href="{details["url"]}" target="_blank" style="margin-right: 20px;">
|
| 51 |
-
<img src="{details["icon"]}" alt="{platform}" width="50"
|
| 52 |
</a>
|
| 53 |
'''
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
)
|
|
|
|
| 40 |
}
|
| 41 |
}
|
| 42 |
|
| 43 |
+
# Generate HTML for displaying icons in a single row
|
| 44 |
+
icons_html = """
|
| 45 |
+
<div style="display: flex; align-items: center;">
|
| 46 |
+
"""
|
| 47 |
|
|
|
|
|
|
|
| 48 |
for platform, details in social_links.items():
|
| 49 |
icons_html += f'''
|
| 50 |
<a href="{details["url"]}" target="_blank" style="margin-right: 20px;">
|
| 51 |
+
<img src="{details["icon"]}" alt="{platform}" width="50" height="50">
|
| 52 |
</a>
|
| 53 |
'''
|
| 54 |
|
| 55 |
+
icons_html += "</div>"
|
| 56 |
+
|
| 57 |
+
# Display the icons
|
| 58 |
+
st.markdown("### Connect with me:")
|
| 59 |
+
st.markdown(icons_html, unsafe_allow_html=True)
|