diff --git a/Web_app/pages/GitContributors.py b/Web_app/pages/GitContributors.py new file mode 100644 index 0000000..81e7125 --- /dev/null +++ b/Web_app/pages/GitContributors.py @@ -0,0 +1,98 @@ +import streamlit as st +import requests + +st.title("🤝 GitHub Contributors") +st.markdown( + "
", + unsafe_allow_html=True, +) + +# Instructions +st.write( + "Thanks to our amazing contributors who help build and improve this project! 🎉" +) + +# Load contributors data +contributors_url = "https://api.github.com/repos/Recode-Hive/Scrape-ML/contributors" +contributors_data = requests.get(contributors_url).json() + +# Custom CSS styling +st.markdown( + """ + + """, + unsafe_allow_html=True, +) + +# Display each contributor in a compact, styled row +for contributor in contributors_data: + avatar_url = contributor["avatar_url"] + username = contributor["login"] + contributions = contributor["contributions"] + profile_url = contributor["html_url"] + + # HTML structure for each contributor row + st.markdown( + f""" +
+ + {username} + {contributions} contributions +
+ """, + unsafe_allow_html=True, + ) + +# GitHub repository text and icon in white +st.markdown("---") +st.markdown( + "
Explore more on our GitHub repository:
", + unsafe_allow_html=True, +) +st.markdown( + """ +
+ + GitHub + +
+ """, + unsafe_allow_html=True, +)