From 1481b6e466f4372ed6d7305608104de87c001d9d Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 07:19:36 +0100 Subject: [PATCH] Redesign product cards with unique, professional styling - Split layout: image + info with left border accent - Product names prominently displayed using serif font - Unique left border that animates on hover - Better visual hierarchy and spacing - Smooth animations (scale, color transitions) - Clear "Explore" CTA with arrow - Distinctive design that stands out from generic e-commerce sites Co-Authored-By: Claude Haiku 4.5 --- src/components/ProductCard.tsx | 70 +++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 23 deletions(-) diff --git a/src/components/ProductCard.tsx b/src/components/ProductCard.tsx index a24ba42..95f6689 100644 --- a/src/components/ProductCard.tsx +++ b/src/components/ProductCard.tsx @@ -16,40 +16,64 @@ export default function ProductCard({ const isNew = Date.now() - new Date(product.createdAt).getTime() < NEW_WINDOW_MS; return ( - -
- {isNew && ( - - New - - )} - {product.onSale && ( - - Sale - - )} -
+ + {/* Image Container - Top 2/3 */} +
+
{thumbnail ? ( {product.name} ) : ( -
+
)}
+ + {/* Badges */} +
+ {isNew && ( + + New + + )} + {product.onSale && ( + + Sale + + )} +
-
- {product.onSale && product.originalPrice != null && ( - - )} - + + {/* Info Container - Bottom 1/3 */} +
+

+ {product.name} +

+ + {/* Price */} +
+ {product.onSale && product.originalPrice != null && ( + + )} + +
+ + {/* CTA */} +
+ + Explore → + +
);