@@ -19,10 +19,18 @@ const INITIAL_TEAM: Contributor[] = [
1919 {
2020 id : 1 ,
2121 login : "Benevanio" ,
22- avatar_url : "https://avatars.githubusercontent. com/u/ Benevanio" ,
22+ avatar_url : "https://github. com/Benevanio.png " ,
2323 html_url : "https://github.com/Benevanio" ,
2424 contributions : 188 ,
2525 type : "User"
26+ } ,
27+ {
28+ id : 104951475 ,
29+ login : "PedroLucas1337" ,
30+ avatar_url : "https://github.com/PedroLucas1337.png" ,
31+ html_url : "https://github.com/PedroLucas1337" ,
32+ contributions : 0 ,
33+ type : "User"
2634 }
2735] ;
2836
@@ -43,8 +51,30 @@ export default function TeamSection() {
4351 return res . json ( ) ;
4452 } )
4553 . then ( ( data : unknown ) => {
46- if ( Array . isArray ( data ) && data . length > 0 ) {
47- const realUsers = ( data as Contributor [ ] ) . filter ( user => user . type === 'User' ) ;
54+ if ( Array . isArray ( data ) ) {
55+ let realUsers = ( data as Contributor [ ] )
56+ . filter ( user => user . type === 'User' )
57+ . map ( user => {
58+ if ( user . login . toLowerCase ( ) === "pedrolucas1337" ) {
59+ return { ...user , avatar_url : "https://github.com/PedroLucas1337.png" } ;
60+ }
61+ return user ;
62+ } ) ;
63+
64+ const hasPedro = realUsers . some ( user => user . login . toLowerCase ( ) === "pedrolucas1337" ) ;
65+
66+ if ( ! hasPedro ) {
67+ const pedroObj : Contributor = {
68+ id : 104951475 ,
69+ login : "PedroLucas1337" ,
70+ avatar_url : "https://github.com/PedroLucas1337.png" ,
71+ html_url : "https://github.com/PedroLucas1337" ,
72+ contributions : 0 ,
73+ type : "User"
74+ } ;
75+ realUsers = [ ...realUsers , pedroObj ] ;
76+ }
77+
4878 if ( realUsers . length > 0 ) setContributors ( realUsers ) ;
4979 }
5080 } )
@@ -59,18 +89,22 @@ export default function TeamSection() {
5989 < h2 className = "text-3xl font-bold mb-2 text-gray-800 dark:text-white" >
6090 Nosso < span className = "bg-gradient-to-r from-blue-600 to-violet-500 bg-clip-text text-transparent" > Time</ span > de Contribuidores
6191 </ h2 >
62- < p className = "text-gray-500 dark:text-gray-400 mb-10 text-sm sm:text-base " >
63- Conheça as mentes brilhantes por trás do < p className = 'font-bold text-white' > < span className = "text-blue-500 font-bold" > <</ span >
64- Cand< span className = "text-amber-500 font-bold" > !</ span > Date< span className = "text-purple-500 font-bold" > !</ span >
65- < span className = "text-blue-500 font-bold" > ></ span > </ p >
66- </ p >
92+
93+ < div className = "text-gray-500 dark:text-gray-400 mb-10 text-sm sm:text-base" >
94+ Conheça as mentes brilhantes por trás do{ " " }
95+ < span className = 'font-bold text-gray-800 dark:text-white inline-block block sm:inline' >
96+ < span className = "text-blue-500 font-bold" > <</ span >
97+ Cand< span className = "text-amber-500 font-bold" > !</ span > Date< span className = "text-purple-500 font-bold" > !</ span >
98+ < span className = "text-blue-500 font-bold" > ></ span >
99+ </ span >
100+ </ div >
67101
68102 < div className = "w-full block min-h-[300px] slider-container" >
69103 < Swiper
70104 modules = { [ Pagination , Autoplay ] }
71105 spaceBetween = { 24 }
72106 slidesPerView = { 1 }
73- loop = { true }
107+ loop = { contributors . length > 1 }
74108 speed = { 5000 }
75109 pagination = { { clickable : true } }
76110 autoplay = { {
@@ -97,8 +131,11 @@ export default function TeamSection() {
97131 < h4 className = "font-semibold text-lg text-gray-900 dark:text-zinc-100 mb-1 truncate w-full" >
98132 { user . login }
99133 </ h4 >
100- < p className = "text-xs text-gray-400 dark:text-zinc-500 mb-4" >
101- { user . contributions } { user . contributions === 1 ? 'commit' : 'commits' }
134+
135+ < p className = "text-xs font-medium text-gray-400 dark:text-zinc-500 mb-4" >
136+ { user . login . toLowerCase ( ) === "pedrolucas1337"
137+ ? "QA"
138+ : `${ user . contributions } ${ user . contributions === 1 ? 'commit' : 'commits' } ` }
102139 </ p >
103140 </ div >
104141 < a
@@ -121,7 +158,6 @@ export default function TeamSection() {
121158 .slider-container .swiper-wrapper {
122159 transition-timing-function: linear !important;
123160 }
124- /* Cor interna da bolinha ativa da paginação combinando com o roxo/azul do sistema */
125161 .slider-container .swiper-pagination-bullet-active {
126162 background: #4f46e5 !important;
127163 }
0 commit comments