mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:31:12 -05:00
Refactor: Remove descriptions from cards
This commit is contained in:
@@ -56,18 +56,9 @@ export function DesignerCard({ company }: DesignerCardProps) {
|
|||||||
|
|
||||||
<CardContent className="p-6 space-y-4">
|
<CardContent className="p-6 space-y-4">
|
||||||
{/* Company Name */}
|
{/* Company Name */}
|
||||||
<div>
|
<h3 className="font-semibold text-lg mb-2 group-hover:text-primary transition-colors line-clamp-1">
|
||||||
<h3 className="font-semibold text-lg mb-2 group-hover:text-primary transition-colors line-clamp-1">
|
{company.name}
|
||||||
{company.name}
|
</h3>
|
||||||
</h3>
|
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{company.description && (
|
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2 mb-3">
|
|
||||||
{company.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Company Details */}
|
{/* Company Details */}
|
||||||
<div className="space-y-2 text-sm">
|
<div className="space-y-2 text-sm">
|
||||||
|
|||||||
@@ -91,13 +91,6 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
|
|||||||
{company.name}
|
{company.name}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{company.description && (
|
|
||||||
<p className="text-xs md:text-sm text-muted-foreground line-clamp-2">
|
|
||||||
{company.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Company Info */}
|
{/* 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 md:gap-x-4 gap-y-1 text-xs md:text-sm">
|
||||||
{company.founded_year && (
|
{company.founded_year && (
|
||||||
|
|||||||
@@ -78,13 +78,6 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
|
|||||||
{company.name}
|
{company.name}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{company.description && (
|
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2">
|
|
||||||
{company.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Company Info */}
|
{/* Company Info */}
|
||||||
<div className="flex flex-wrap gap-x-4 gap-y-1 text-sm">
|
<div className="flex flex-wrap gap-x-4 gap-y-1 text-sm">
|
||||||
{company.founded_year && (
|
{company.founded_year && (
|
||||||
|
|||||||
@@ -78,13 +78,6 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => {
|
|||||||
{company.name}
|
{company.name}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{company.description && (
|
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2">
|
|
||||||
{company.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Company Info */}
|
{/* Company Info */}
|
||||||
<div className="flex flex-wrap gap-x-4 gap-y-1 text-sm">
|
<div className="flex flex-wrap gap-x-4 gap-y-1 text-sm">
|
||||||
{company.founded_year && (
|
{company.founded_year && (
|
||||||
|
|||||||
@@ -81,17 +81,12 @@ export function ParkCard({ park }: ParkCardProps) {
|
|||||||
{park.name}
|
{park.name}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{park.location && <div className="flex items-center text-sm text-muted-foreground">
|
{park.location && <div className="flex items-center text-sm text-muted-foreground">
|
||||||
<MapPin className="w-3 h-3 mr-1" />
|
<MapPin className="w-3 h-3 mr-1" />
|
||||||
{park.location.city && `${park.location.city}, `}{park.location.country}
|
{park.location.city && `${park.location.city}, `}{park.location.country}
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{park.description && <p className="text-sm text-muted-foreground line-clamp-2">
|
|
||||||
{park.description}
|
|
||||||
</p>}
|
|
||||||
|
|
||||||
{/* Park Type */}
|
{/* Park Type */}
|
||||||
<Badge variant="outline" className="text-xs">
|
<Badge variant="outline" className="text-xs">
|
||||||
{formatParkType(park.park_type)}
|
{formatParkType(park.park_type)}
|
||||||
|
|||||||
@@ -101,13 +101,6 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Description */}
|
|
||||||
{ride.description && (
|
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2">
|
|
||||||
{ride.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Category Badge */}
|
{/* Category Badge */}
|
||||||
<Badge variant="outline" className="text-xs">
|
<Badge variant="outline" className="text-xs">
|
||||||
{formatCategory(ride.category)}
|
{formatCategory(ride.category)}
|
||||||
|
|||||||
@@ -64,16 +64,9 @@ export function RideModelCard({ model, manufacturerSlug }: RideModelCardProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CardContent className="p-4 space-y-3">
|
<CardContent className="p-4 space-y-3">
|
||||||
<div>
|
<h3 className="font-semibold text-lg line-clamp-1 group-hover:text-primary transition-colors">
|
||||||
<h3 className="font-semibold text-lg line-clamp-1 group-hover:text-primary transition-colors">
|
{model.name}
|
||||||
{model.name}
|
</h3>
|
||||||
</h3>
|
|
||||||
{model.description && (
|
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2 mt-1">
|
|
||||||
{model.description}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
<Badge variant="secondary" className="text-xs">
|
<Badge variant="secondary" className="text-xs">
|
||||||
|
|||||||
Reference in New Issue
Block a user