From 5e3b37288d96277a6eacb7d6464760b63f72874a Mon Sep 17 00:00:00 2001 From: Biswa Kalyan Bhuyan Date: Wed, 28 May 2025 19:44:26 +0530 Subject: feat: improved UI and added dynamic theme toggle - improved the nav bar components - added the theme toggle button to toggle theme - fixed the button background for the nav bar - fixed the theme color issue to the ThemeToggle funtion - added more vibrant colors - fixed the theme logo render --- frontend/src/components/product-card.tsx | 52 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'frontend/src/components/product-card.tsx') diff --git a/frontend/src/components/product-card.tsx b/frontend/src/components/product-card.tsx index f790c98..25717f4 100644 --- a/frontend/src/components/product-card.tsx +++ b/frontend/src/components/product-card.tsx @@ -71,16 +71,16 @@ export function ProductCard({ return ( setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} >
{/* Product Image */} -
+
{/* Placeholder for actual images */} -
-
- +
+
+

{name}

@@ -99,12 +99,12 @@ export function ProductCard({ {/* Badges */}
{isNew && ( - + New )} {isSale && ( - + -{discountPercentage}% )} @@ -114,11 +114,11 @@ export function ProductCard({ @@ -129,7 +129,7 @@ export function ProductCard({
{/* Product Info */} - + {/* Category */} -

+

{category}

{/* Product Name */} -

+

{name}

@@ -187,13 +187,13 @@ export function ProductCard({ key={star} className={`h-3 w-3 ${ star <= rating - ? 'fill-yellow-400 text-yellow-400' - : 'text-gray-300' + ? 'fill-yellow-400 text-yellow-400 dark:fill-yellow-500 dark:text-yellow-500' + : 'text-gray-300 dark:text-neutral-600' }`} /> ))}
- + ({reviewCount})
@@ -204,12 +204,12 @@ export function ProductCard({ {colors.slice(0, 4).map((color, index) => (
))} {colors.length > 4 && ( - + +{colors.length - 4} )} @@ -218,11 +218,11 @@ export function ProductCard({ {/* Price */}
- + ${price.toFixed(2)} {originalPrice && ( - + ${originalPrice.toFixed(2)} )} @@ -232,12 +232,12 @@ export function ProductCard({ {sizes.length > 0 && (
{sizes.slice(0, 4).map((size) => ( - + {size} ))} {sizes.length > 4 && ( - + +{sizes.length - 4} )} -- cgit v1.2.3-59-g8ed1b