File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff 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 -->
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PhotoSwipeLightbox from 'https://unpkg.com/photoswipe/dist/photoswipe-lig
33document . addEventListener ( 'DOMContentLoaded' , ( ) => {
44 loadDescription ( ) ;
55 loadRepos ( ) ;
6- loadFollowers ( ) ;
76} ) ;
87
98async 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-
7757async function loadConfigs ( ) {
7858 const req = await fetch ( 'src/assets/json/configs.json' ) ;
7959 const data = await req . json ( ) ;
You can’t perform that action at this time.
0 commit comments