Phaneendrabayi commited on
Commit
d65570c
·
verified ·
1 Parent(s): 147a3d8

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +16 -7
Home.py CHANGED
@@ -40,12 +40,21 @@ social_links = {
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
 
 
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