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

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +7 -14
Home.py CHANGED
@@ -40,19 +40,12 @@ social_links = {
40
  }
41
  }
42
 
43
- # Generate HTML for displaying icons in a single row
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
- st.markdown(icons_html, unsafe_allow_html=True)
 
 
 
 
 
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