Phaneendrabayi commited on
Commit
65629bc
·
verified ·
1 Parent(s): d65570c

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +3 -12
Home.py CHANGED
@@ -40,19 +40,10 @@ social_links = {
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:")
 
40
  }
41
  }
42
 
43
+ icons_html = ""
 
 
 
44
  for platform, details in social_links.items():
45
+ icons_html += f'[{platform}]({details["url"]}) <br> <img src="{details["icon"]}" alt="{platform}" width="50" height="50"> <br>'
46
+
 
 
 
 
 
 
47
 
48
  # Display the "Connect with me" section and the icons
49
  st.markdown("### Connect with me:")