File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,23 @@ const DetailsCard = ({
6868 { type === 'project' && healthMetricsData . length > 0 && (
6969 < Link href = "#issues-trend" >
7070 < div
71- className = { `flex flex-col items-center justify-center rounded-full px-4 py-2 text-sm font-bold ${ scoreStyle } ` }
71+ className = { `group relative flex h-20 w-20 flex-col items-center justify-center rounded-full border-2 shadow-lg transition-all duration-300 hover:scale-105 hover:shadow-xl ${ scoreStyle } ` }
7272 >
73- < span > Health</ span >
74- < span > { healthMetricsData [ 0 ] . score } </ span >
75- < span > Score</ span >
73+ < div className = "absolute inset-0 rounded-full bg-gradient-to-br from-white/20 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100" > </ div >
74+ < div className = "relative z-10 flex flex-col items-center text-center" >
75+ < span className = "text-xs font-semibold uppercase tracking-wide opacity-90" >
76+ Health
77+ </ span >
78+ < span className = "text-xl font-black leading-none" >
79+ { healthMetricsData [ 0 ] . score }
80+ </ span >
81+ < span className = "text-xs font-semibold uppercase tracking-wide opacity-90" >
82+ Score
83+ </ span >
84+ </ div >
85+ { healthMetricsData [ 0 ] . score < 30 && (
86+ < div className = "animate-pulse absolute inset-0 rounded-full bg-red-400/20" > </ div >
87+ ) }
7688 </ div >
7789 </ Link >
7890 ) }
You can’t perform that action at this time.
0 commit comments