Skip to content

Commit 63c55a6

Browse files
committed
changed words
1 parent 5d68af9 commit 63c55a6

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

resources/js/components/venue-card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ export default function VenueCard({ venue }: VenueCardProps) {
117117
</Badge>
118118
</div>
119119
<div className="flex items-baseline gap-1">
120+
<span className="text-sm">from</span>
120121
<span className="text-lg font-bold text-primary">{venue.price}</span>
121-
<span className="text-sm">/ slot</span>
122+
<span className="text-sm">per slot</span>
122123
</div>
123124
</CardFooter>
124125
</Card>

resources/js/pages/venue/components/court-card.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)