diff --git a/pages/contributor/script.js b/pages/contributor/script.js
index 38a6b10a..34ac7e24 100644
--- a/pages/contributor/script.js
+++ b/pages/contributor/script.js
@@ -5,29 +5,41 @@ document.addEventListener("DOMContentLoaded", function () {
const emailForm = document.getElementById('emailForm');
const emailInput = document.getElementById('email');
- // Fetch contributors and repo stats
async function fetchData() {
- loadingIndicator.style.display = 'flex';
+ loadingIndicator.style.display = 'flex';
+ let contributorsData = [];
+ let page = 1;
- try {
- const contributorsResponse = await axios.get('https://api.github.com/repos/aditya-bhaumik/Pathsphere/contributors');
- const contributorsData = contributorsResponse.data;
+ try {
+ while (true) {
+ const contributorsResponse = await axios.get(`https://api.github.com/repos/aditya-bhaumik/Pathsphere/contributors?per_page=100&page=${page}`);
+ const newContributors = contributorsResponse.data;
- const repoResponse = await axios.get('https://api.github.com/repos/aditya-bhaumik/Pathsphere');
- const repoData = repoResponse.data;
+ // If no new contributors are returned, break the loop
+ if (newContributors.length === 0) {
+ break;
+ }
+
+ contributorsData = contributorsData.concat(newContributors);
+ page++;
+ }
+
+ const repoResponse = await axios.get('https://api.github.com/repos/aditya-bhaumik/Pathsphere');
+ const repoData = repoResponse.data;
+
+ populateStats(repoData, contributorsData);
+ populateContributors(contributorsData);
+ } catch (error) {
+ console.error('Error fetching data:', error);
+ } finally {
+ loadingIndicator.style.display = 'none';
+ }
+}
- populateStats(repoData, contributorsData);
- populateContributors(contributorsData);
- } catch (error) {
- console.error('Error fetching data:', error);
- } finally {
- loadingIndicator.style.display = 'none';
- }
- }
function populateStats(repoData, contributors) {
const stats = [
- { label: "Contributors", value: contributors.length, icon: '' },
+ { label: "Contributors", value: contributors.length, icon: '' },
{ label: "Total Contributions", value: contributors.reduce((sum, contributor) => sum + contributor.contributions, 0), icon: '' },
{ label: "GitHub Stars", value: repoData.stargazers_count, icon: '' },
{ label: "Forks", value: repoData.forks_count, icon: '' },
diff --git a/styles/styles.css b/styles/styles.css
index ffaba281..629c2aff 100644
--- a/styles/styles.css
+++ b/styles/styles.css
@@ -524,15 +524,18 @@ main {
background-size: cover;
height: 100vh;
}
-
+
.hero h1 {
- font-size: 50px;
- margin: 0;
- padding: 5px;
- text-decoration: none; /* No underline by default */
- transition: all 0.3s ease; /* Smooth transition for hover effects */
-}
+ font-size: 50px;
+ margin: 0;
+ padding: 5px;
+ text-decoration: none;
+ transition: all 0.3s ease;
+ color: #ffffff;
+
+}
+
/* Hover state */
.hero h1:hover {
text-decoration: underline; /* Underline on hover */