@@ -20,7 +20,7 @@ const Container = (props: {
2020 style = { {
2121 height : `${ ( ( 0.8 / steps_count ) * ( steps_count - step . order ) + 0.2 ) * 100 } %` ,
2222 } }
23- className = "flex-grow"
23+ className = "flex-grow flex-1 "
2424 key = { step . order }
2525 >
2626 { step . children }
@@ -53,21 +53,45 @@ const Step = (props: {
5353 showCrown = false ,
5454 } = props ;
5555
56- const val = 1 - student . order * 0.045 ;
56+ const val = 1 - student . order * 0.25 ;
57+
58+ const roundedDirection =
59+ student . order == 0 ? "rounded-tl-[8rem]" : "rounded-tr-[8rem]" ;
5760
5861 return (
5962 < div className = "flex flex-col gap-2 w-full h-full relative transition hover:scale-105 cursor-pointer" >
60- < div
61- style = { {
62- backdropFilter : `brightness(${ val } )` ,
63- } }
64- className = { `flex flex-col items-center justify-center rounded-3xl flex-grow ${ bg_color } ${ className } shadow-md` }
65- >
66- < div className = "h-[1.5rem] w-full" > </ div >
63+ < div className = "relative flex flex-col items-center justify-center flex-grow overflow-hidden" >
64+ { /* Fondo */ }
65+ < div
66+ className = { `absolute inset-0 shadow-md flex flex-col items-center justify-end ${ bg_color } ${ roundedDirection } ${ className } ` }
67+ style = { {
68+ filter : `brightness(${ val } )` ,
69+ } }
70+ > </ div >
6771
68- { showNumber && (
69- < b className = "text-6xl text-white" > { student . order + 1 } °</ b >
70- ) }
72+ < div className = "absolute h-full flex flex-col gap-2 items-center justify-end z-10" >
73+ { showNumber && (
74+ < b className = "relative z-10 text-6xl text-white text-bold font-[var(--font-primary)]" >
75+ #{ student . order + 1 }
76+ </ b >
77+ ) }
78+ { showUserInfo && (
79+ < div className = " text-white flex flex-col items-center justify-center p-2 text-center text-xs lg:text-base shadow font-[var(--font-secondary)]" >
80+ < p
81+ className = "m-0"
82+ title = { `${ student . student . name } ${ student . student . surname } ` }
83+ >
84+ { student . student . name }
85+ </ p >
86+ < p className = "m-0 flex gap-1 items-center" >
87+ { " " }
88+ < IconCrown className = "text-yellow-500" size = { 15 } />
89+ { student . student . victory_count } { " " }
90+ < span className = "hidden lg:flex" > Victorias</ span >
91+ </ p >
92+ </ div >
93+ ) }
94+ </ div >
7195 </ div >
7296
7397 { showAvatar &&
@@ -99,23 +123,6 @@ const Step = (props: {
99123 < IconCrown className = "flex lg:hidden" size = { 45 } />
100124 </ div >
101125 ) }
102-
103- { showUserInfo && (
104- < div className = "glassmorphic dark:glassmorphic-dark dark:text-white flex flex-col items-center justify-center p-2 text-center text-xs lg:text-base h-16 shadow" >
105- < p
106- className = "m-0"
107- title = { `${ student . student . name } ${ student . student . surname } ` }
108- >
109- < b > { student . student . name } </ b >
110- </ p >
111- < p className = "m-0 flex gap-1 items-center" >
112- { " " }
113- < IconCrown className = "text-yellow-500" size = { 15 } />
114- { student . student . victory_count } { " " }
115- < span className = "hidden lg:flex" > Victorias</ span >
116- </ p >
117- </ div >
118- ) }
119126 </ div >
120127 ) ;
121128} ;
0 commit comments