Phaneendrabayi commited on
Commit
4eea0a9
·
verified ·
1 Parent(s): bf0ca98

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +10 -10
Home.py CHANGED
@@ -40,20 +40,20 @@ social_links = {
40
  }
41
  }
42
 
43
- # Title for the section
44
- st.markdown("### Connect with me:")
 
 
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" style="border-radius: 8px;">
52
  </a>
53
  '''
54
 
55
- # Display the icons in one line
56
- st.markdown(
57
- f'<div style="display: flex; justify-content: center; align-items: center;">{icons_html}</div>',
58
- unsafe_allow_html=True
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)