@@ -40,19 +40,19 @@ export default function CourtCard({ court }: { court: Court }) {
4040
4141 const slides = court . gallery_images . length
4242 ? court . gallery_images . map ( ( img ) => ( {
43- src : img . url ,
44- alt : court . name ,
45- title : court . name ,
46- thumbnail : img . preview_url ?? img . url ,
47- } ) )
43+ src : img . url ,
44+ alt : court . name ,
45+ title : court . name ,
46+ thumbnail : img . preview_url ?? img . url ,
47+ } ) )
4848 : [
49- {
50- src : '/placeholder.jpg' ,
51- alt : court . name ,
52- title : court . name ,
53- thumbnail : '/placeholder.jpg' ,
54- } ,
55- ] ;
49+ {
50+ src : '/placeholder.jpg' ,
51+ alt : court . name ,
52+ title : court . name ,
53+ thumbnail : '/placeholder.jpg' ,
54+ } ,
55+ ] ;
5656
5757 return (
5858 < Card className = "group flex h-full w-full flex-col overflow-hidden rounded-2xl border bg-card shadow-sm transition-all duration-300 hover:translate-y-[-2px] hover:shadow-lg" >
@@ -133,10 +133,7 @@ export default function CourtCard({ court }: { court: Court }) {
133133 </ div >
134134 </ div >
135135 ) ) }
136- </ CardContent >
137136
138- { /* Footer */ }
139- < CardFooter className = "mt-auto flex items-center justify-between gap-2 border-t px-4 py-3 text-sm text-muted-foreground" >
140137 < div className = "flex flex-wrap gap-1" >
141138 { court . sport ?. name && (
142139 < Badge variant = "outline" className = "flex items-center gap-1" >
@@ -147,9 +144,13 @@ export default function CourtCard({ court }: { court: Court }) {
147144 { court . surface_type ?. name && < Badge variant = "outline" > { court . surface_type . name } </ Badge > }
148145 < Badge variant = "outline" > { court . is_indoor ? 'Indoor' : 'Outdoor' } </ Badge >
149146 </ div >
147+ </ CardContent >
148+
149+ { /* Footer */ }
150+ < CardFooter className = "mt-auto flex items-center justify-end gap-2 border-t px-4 py-3 text-sm text-muted-foreground" >
150151 < div className = "flex items-baseline gap-1" >
151152 < span className = "text-lg font-bold text-primary" > ₹{ court . price } </ span >
152- < span className = "text-sm" > / slot</ span >
153+ < span className = "text-sm" > per slot</ span >
153154 </ div >
154155 </ CardFooter >
155156 </ Link >
0 commit comments