From 6d50c67e74d85713ca12b9ad71698dc27cf6d0a6 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:48:57 +0000 Subject: [PATCH] Changes --- src/components/FeaturedProducts.tsx | 80 ++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 8 deletions(-) diff --git a/src/components/FeaturedProducts.tsx b/src/components/FeaturedProducts.tsx index f6831fb..90ed310 100644 --- a/src/components/FeaturedProducts.tsx +++ b/src/components/FeaturedProducts.tsx @@ -1,21 +1,85 @@ import { products } from '@/data/products'; -import { ProductCard } from '@/components/ProductCard'; import { Button } from '@/components/ui/button'; import { Link } from 'react-router-dom'; -import { ArrowRight } from 'lucide-react'; +import { ArrowRight, ChevronLeft, ChevronRight } from 'lucide-react'; +import { useCart } from '@/context/CartContext'; +import { + Carousel, + CarouselContent, + CarouselItem, + CarouselNext, + CarouselPrevious, +} from '@/components/ui/carousel'; -// Get featured products (those with badges or first 6) +// Get featured products (those with badges or first 8) const featuredProducts = products .filter(p => p.badge === 'hot' || p.badge === 'new') - .slice(0, 6); + .slice(0, 8); export function FeaturedProducts() { + const { addItem } = useCart(); + return (
+ {product.brand} +
+