mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 09:31:13 -05:00
Refactor ride card park display
This commit is contained in:
@@ -93,13 +93,14 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid
|
||||
</h3>
|
||||
|
||||
{showParkName && ride.park?.name && (
|
||||
<div className="flex items-center gap-1 text-sm text-muted-foreground">
|
||||
<MapPin className="w-3 h-3" />
|
||||
<span className="truncate">
|
||||
{ride.park.name}
|
||||
{ride.park.location?.city && `, ${ride.park.location.city}`}
|
||||
</span>
|
||||
<Badge className="inline-flex items-center gap-1.5 px-3 py-1.5 bg-background/80 backdrop-blur-md border-border/50 text-foreground shadow-lg shadow-primary/10 hover:shadow-xl hover:shadow-primary/20 hover:border-primary/50 transition-all duration-300 group/badge max-w-[200px]">
|
||||
<div className="w-5 h-5 rounded-full bg-gradient-to-br from-primary to-primary/50 flex items-center justify-center shadow-sm group-hover/badge:scale-110 transition-transform">
|
||||
<MapPin className="w-3 h-3 text-primary-foreground" />
|
||||
</div>
|
||||
<span className="font-medium truncate">
|
||||
{ride.park.name}
|
||||
</span>
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user