From 34ed211fa3121afdce9e74304674d0ec5354f87d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:55:29 +0000 Subject: [PATCH] Refactor ManufacturerCard to match Park/RideCard --- .../manufacturers/ManufacturerCard.tsx | 65 +++++++++++-------- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/src/components/manufacturers/ManufacturerCard.tsx b/src/components/manufacturers/ManufacturerCard.tsx index 6da9253a..23435cab 100644 --- a/src/components/manufacturers/ManufacturerCard.tsx +++ b/src/components/manufacturers/ManufacturerCard.tsx @@ -38,69 +38,82 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) { className="group overflow-hidden border-border/50 bg-gradient-to-br from-card via-card to-card/80 hover:shadow-2xl hover:shadow-primary/20 transition-all duration-300 cursor-pointer hover:scale-[1.02]" onClick={handleClick} > - -
-
-
- - {formatCompanyType(company.company_type)} - -
- - {company.name} - -
- {company.logo_url && ( -
+ {/* Logo/Image Section */} +
+
+ + {/* Company Type Badge */} +
+ + {formatCompanyType(company.company_type)} + +
+ + {/* Logo Display */} +
+ {company.logo_url ? ( +
{`${company.name}
+ ) : ( +
+ {getCompanyIcon(company.company_type)} +
)}
- +
- + + {/* Company Name */} +

+ {company.name} +

+ + {/* Description */} {company.description && ( -

+

{company.description}

)} -
+ {/* Company Info */} +
{company.founded_year && ( -
+
Founded: {company.founded_year}
)} {company.headquarters_location && ( -
+
- + {company.headquarters_location}
)}
- {/* Ratings Display */} + {/* Rating */} {company.average_rating > 0 && (
- + {company.average_rating.toFixed(1)} - ({company.review_count}) + ({company.review_count} reviews)
)} + {/* Action Button */} {company.website_url && (