22import { useTranslations } from "next-intl" ;
33import { FocusCards } from "./focus-cards" ;
44import { useCodeforcesData } from "@/hooks/use-codeforces-data" ;
5+ import AnimatedTooltip from "../shared/ui/tooltip" ;
56
67const CP_MEMBERS : string [ ] = [
78 "adrianrrruiz" ,
@@ -12,25 +13,88 @@ const CP_MEMBERS: string[] = [
1213 "Lorenzo_lrc" ,
1314 "harry3008" ,
1415 "sandoval95" ,
16+ "Pyotr_" ,
17+ "johan-smc" ,
18+ "a_santamaria" ,
19+ "Julianasolanx"
20+ ] ;
21+
22+ const CONTESTS : { title : string ; src : string ; icon : string } [ ] = [
23+ {
24+ title : "ICPC (2025)" ,
25+ src : "https://drive.google.com/uc?export=view&id=1a8dbWnSSFwPnR77IJPEJoYB0U4cJxuJN" ,
26+ icon : "/icpc.svg" ,
27+ } ,
28+ {
29+ title : "BUHOS INTERNA (2025)" ,
30+ src : "https://drive.google.com/uc?export=view&id=1MptlEaenvDrRRdAKYHWfxxT4ImQNkv8v" ,
31+ icon : "/buhos.svg" ,
32+ } ,
33+ {
34+ title : "ECICIENCIA (2025)" ,
35+ src : "https://drive.google.com/uc?export=view&id=19b_jK2XTfC7YxuzbGukJRg_E9WEtCPzR" ,
36+ icon : "/eciciencia.svg" ,
37+ } ,
38+ {
39+ title : "ICPC (2024)" ,
40+ src : "https://drive.google.com/uc?export=view&id=1EQ9XTZtkO-JMewDzqfBqUl3UUe3GpauS" ,
41+ icon : "/icpc.svg" ,
42+ } ,
43+ {
44+ title : "ECICIENCIA (2024)" ,
45+ src : "https://drive.google.com/uc?export=view&id=1URu88UvYTYdr_gnHZo9kFRErZMJZY-PA" ,
46+ icon : "/eciciencia.svg" ,
47+ } ,
48+ {
49+ title : "ICPC (2023)" ,
50+ src : "https://drive.google.com/uc?export=view&id=1_wmQo9AJYp60SpNc-XwZiz7uhSrtGBdd" ,
51+ icon : "/icpc.svg" ,
52+ } ,
53+ {
54+ title : "ECICIENCIA (2023)" ,
55+ src : "https://drive.google.com/uc?export=view&id=11v5zOU6sXeikOgXhf9YxYdvxsiTPzCZ_" ,
56+ icon : "/eciciencia.svg" ,
57+ } ,
58+ {
59+ title : "ICPC (2022)" ,
60+ src : "https://drive.google.com/uc?export=view&id=1mEeOwdGvE66pQjgf_6WP8IRlwNha2z8L" ,
61+ icon : "/icpc.svg" ,
62+ } ,
1563] ;
1664
1765export const CPMembersContent = ( ) => {
1866 const t = useTranslations ( "Activities.cpMembers" ) ;
19- const { members, coaches, loading } = useCodeforcesData ( CP_MEMBERS ) ;
67+ const { members, loading } = useCodeforcesData ( CP_MEMBERS ) ;
68+
69+ const membersItems = members . map ( ( member , index ) => ( {
70+ id : index ,
71+ name : member . title ,
72+ designation : "CP Member" ,
73+ image : member . src ,
74+ html_url : `https://codeforces.com/profile/${ member . handle } ` ,
75+ className : "border-gray-200 hover:border-blue-400" ,
76+ } ) ) ;
2077
2178 if ( loading ) return < p > { t ( "loading" ) } </ p > ;
2279
2380 return (
2481 < >
2582 < p className = "dark:text-(--azul-niebla)" >
26- Somos un grupo apasionado por competir y desctacarnos cada día más
83+ { t ( "description" ) }
2784 </ p >
2885 < br />
29- < FocusCards cards = { members } />
86+ < FocusCards cards = { CONTESTS } />
3087 < p className = "text-3xl text-center my-10 font-semibold dark:text-(--azul-niebla)" >
31- { t ( "coach " ) }
88+ { t ( "membersTitle " ) }
3289 </ p >
33- < FocusCards cards = { coaches } />
90+ { /* Contribuidores del proyecto en el centro*/ }
91+ < div className = "flex justify-center relative z-0" >
92+ < AnimatedTooltip
93+ items = { membersItems }
94+ className = "relative z-0"
95+ tooltipOffset = "-translate-x-3/4"
96+ />
97+ </ div >
3498 </ >
3599 ) ;
36100} ;
0 commit comments