mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 08:31:13 -05:00
Refactor: Apply consistent card styling
This commit is contained in:
@@ -85,14 +85,16 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<CardContent className="p-3 space-y-2">
|
||||
<CardContent className="p-2.5 space-y-1.5 border-t border-border/30">
|
||||
{/* Company Name */}
|
||||
<h3 className="text-base font-semibold group-hover:text-primary transition-colors line-clamp-2">
|
||||
{company.name}
|
||||
</h3>
|
||||
<div className="space-y-0.5 min-w-0">
|
||||
<h3 className="text-base font-semibold group-hover:text-primary transition-colors line-clamp-2 break-words">
|
||||
{company.name}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
{/* Company Info */}
|
||||
<div className="flex flex-wrap gap-x-3 md:gap-x-4 gap-y-1 text-xs md:text-sm">
|
||||
<div className="flex flex-wrap gap-x-3 gap-y-1 text-sm">
|
||||
{company.founded_year && (
|
||||
<div className="flex items-center gap-1">
|
||||
<span className="text-muted-foreground">Founded:</span>
|
||||
@@ -111,11 +113,11 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
||||
</div>
|
||||
|
||||
{/* Stats Display */}
|
||||
<div className="flex items-center justify-between text-xs md:text-sm">
|
||||
<div className="flex flex-wrap gap-x-3 md:gap-x-4 gap-y-1">
|
||||
<div className="flex items-center justify-between text-sm">
|
||||
<div className="flex flex-wrap gap-3 gap-y-1">
|
||||
{company.ride_count && company.ride_count > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<FerrisWheel className="w-3 h-3 text-muted-foreground" />
|
||||
<FerrisWheel className="w-4 h-4 text-primary/70 flex-shrink-0" />
|
||||
<span className="font-medium">{company.ride_count}</span>
|
||||
<span className="text-muted-foreground">rides</span>
|
||||
</div>
|
||||
@@ -123,7 +125,6 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
||||
|
||||
{company.coaster_count && company.coaster_count > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<span className="text-muted-foreground">•</span>
|
||||
<span className="font-medium">{company.coaster_count}</span>
|
||||
<span className="text-muted-foreground">coasters</span>
|
||||
</div>
|
||||
@@ -131,7 +132,6 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
||||
|
||||
{company.model_count && company.model_count > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<span className="text-muted-foreground">•</span>
|
||||
<span className="font-medium">{company.model_count}</span>
|
||||
<span className="text-muted-foreground">models</span>
|
||||
</div>
|
||||
@@ -139,11 +139,11 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
||||
</div>
|
||||
|
||||
{company.average_rating > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Star className="w-3 h-3 fill-yellow-400 text-yellow-400" />
|
||||
<span className="text-sm font-medium">{company.average_rating.toFixed(1)}</span>
|
||||
<div className="inline-flex items-center gap-1">
|
||||
<Star className="w-4 h-4 fill-yellow-500 text-yellow-500" />
|
||||
<span className="font-semibold">{company.average_rating.toFixed(1)}</span>
|
||||
{company.review_count > 0 && (
|
||||
<span className="text-xs text-muted-foreground">({company.review_count})</span>
|
||||
<span className="text-muted-foreground">({company.review_count})</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user