Skip to content

Commit aef30e6

Browse files
committed
Remove section followers from website
1 parent 0adc33c commit aef30e6

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

index.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,6 @@ <h1 class="text-3xl font-bold inline">
198198
<section id="description" class="my-4"></section>
199199

200200
<hr class="border-gray-800 border-2 my-2 w-full" />
201-
202-
<!-- Followers Carousel -->
203-
<section id="followers" class="w-full flex flex-col items-center mx-auto mt-2">
204-
<h2 class="block font-bold mb-5">Followers</h2>
205-
<div class="w-full flex justify-center">
206-
<div class="flex items-center justify-center max-w-full w-auto">
207-
<!-- Carousel container: Only profile pictures -->
208-
<div id="followers-container" class="flex overflow-x-auto gap-2 snap-x snap-mandatory py-1 px-1 no-scrollbar w-auto">
209-
<!-- Followers will be injected here -->
210-
</div>
211-
</div>
212-
</div>
213-
</section>
214201
</main>
215202

216203
<!-- Footer -->

src/assets/js/main.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import PhotoSwipeLightbox from 'https://unpkg.com/photoswipe/dist/photoswipe-lig
33
document.addEventListener('DOMContentLoaded', () => {
44
loadDescription();
55
loadRepos();
6-
loadFollowers();
76
});
87

98
async function loadDescription() {
@@ -55,25 +54,6 @@ async function loadRepos() {
5554
}
5655
}
5756

58-
/**
59-
* Load followers from GitHub API and display them as a horizontal avatar carousel.
60-
* Only the profile pictures are shown, as per the new design.
61-
*/
62-
async function loadFollowers() {
63-
const req = await fetch('https://api.github.com/users/Dev2Forge/followers');
64-
const response = await req.json();
65-
const container = document.querySelector('#followers-container');
66-
response.forEach((follower) => {
67-
const img = document.createElement('img');
68-
img.src = follower.avatar_url;
69-
img.alt = follower.login;
70-
img.title = follower.login;
71-
img.className = 'w-20 h-20 rounded-full object-cover snap-center border-2 border-gray-300 dark:border-gray-700 cursor-pointer transition hover:scale-110';
72-
img.onclick = () => window.open(follower.html_url, '_blank');
73-
container.appendChild(img);
74-
});
75-
}
76-
7757
async function loadConfigs() {
7858
const req = await fetch('src/assets/json/configs.json');
7959
const data = await req.json();

0 commit comments

Comments
 (0)