@@ -37,10 +37,9 @@ type ExcoCardProps = {
3737
3838export function ExcoCard ( { member, className } : ExcoCardProps ) {
3939 const hasPhoto = ! ! member . photoSrc ;
40- const containerHeightClass = hasPhoto ? "h-56" : "h-32" ;
41- const innerBase = "relative w-full transition-transform duration-500 [transform-style:preserve-3d]" ;
42- const innerHover = "group-hover:[transform:rotateY(180deg)]" ;
4340 const [ isFlipped , setIsFlipped ] = useState ( false ) ;
41+
42+ const containerHeightClass = hasPhoto ? "h-56" : "h-32" ;
4443 const flipActiveClass = isFlipped ? "[transform:rotateY(180deg)]" : "" ;
4544 return (
4645 < div
@@ -55,7 +54,14 @@ export function ExcoCard({ member, className }: ExcoCardProps) {
5554 }
5655 } }
5756 >
58- < div className = { cn ( innerBase , innerHover , flipActiveClass , containerHeightClass ) } >
57+ < div
58+ className = { cn (
59+ "relative w-full transition-transform duration-500 [transform-style:preserve-3d]" , // innerBase
60+ "group-hover:[transform:rotateY(180deg)]" , // innerHover
61+ flipActiveClass ,
62+ containerHeightClass
63+ ) }
64+ >
5965 < FrontFace member = { member } />
6066 < BackFace member = { member } />
6167 </ div >
@@ -97,15 +103,14 @@ function BackFace({ member }: { member: ExcoMember }) {
97103 ) : (
98104 < >
99105 { hasBio ? (
100- < div className = "w-full" >
101- < CardHeader className = "p-0" >
102- < CardTitle > About</ CardTitle >
106+ < div className = "w-full pt-2" >
107+ < CardHeader >
103108 < CardDescription > { member . bio } </ CardDescription >
104109 </ CardHeader >
105110 </ div >
106111 ) : null }
107112 { hasLinks ? (
108- < div className = "flex items-center justify-center gap-3 pt-3 " >
113+ < div className = "flex items-center justify-center gap-3" >
109114 { member . links ! . map ( ( link ) => (
110115 < a
111116 key = { `${ member . name } -${ link . type } -${ link . url } ` }
0 commit comments