diff --git a/src/app/products/page.tsx b/src/app/products/page.tsx new file mode 100644 index 0000000..bc02487 --- /dev/null +++ b/src/app/products/page.tsx @@ -0,0 +1,208 @@ +"use client" + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; +import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo'; +import ProductCardFour from '@/components/sections/product/ProductCardFour'; +import ContactCTA from '@/components/sections/contact/ContactCTA'; +import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis'; +import { Phone, Sparkles } from 'lucide-react'; +import { useState, useMemo } from 'react'; + +interface TireProduct { + id: string; + name: string; + price: string; + variant: string; + imageSrc: string; + imageAlt?: string; + category: string; + brand?: string; +} + +const TIRE_CATEGORIES = [ + "All", "Summer", "Winter", "All-Season", "Performance", "Off-Road" +]; + +const TIRE_PRODUCTS: TireProduct[] = [ + { + id: "1", name: "Summer Performance Pro", price: "$85", variant: "17 Inch • High Performance", imageSrc: "http://img.b2bpic.net/free-photo/car-wheel-close-up_23-2149262938.jpg", imageAlt: "Summer Performance tire", category: "Summer", brand: "Velocity" + }, + { + id: "2", name: "Winter Grip Elite", price: "$95", variant: "18 Inch • Winter Rated", imageSrc: "http://img.b2bpic.net/free-photo/car-wheel-tire_23-2149262938.jpg", imageAlt: "Winter tire with grip", category: "Winter", brand: "FrostGuard" + }, + { + id: "3", name: "All-Season Comfort Plus", price: "$75", variant: "16 Inch • All-Season", imageSrc: "http://img.b2bpic.net/free-photo/wheel-tire-automotive_23-2149262938.jpg", imageAlt: "All-season tire", category: "All-Season", brand: "RoadMax" + }, + { + id: "4", name: "Track Beast Sport", price: "$120", variant: "19 Inch • Racing", imageSrc: "http://img.b2bpic.net/free-photo/sports-car-wheel_23-2149262938.jpg", imageAlt: "Performance racing tire", category: "Performance", brand: "Apex Racing" + }, + { + id: "5", name: "Terrain Conqueror X", price: "$110", variant: "20 Inch • Off-Road", imageSrc: "http://img.b2bpic.net/free-photo/jeep-wheel-mud_23-2149262938.jpg", imageAlt: "Off-road terrain tire", category: "Off-Road", brand: "TerraGrip" + }, + { + id: "6", name: "Summer Eco Drive", price: "$65", variant: "15 Inch • Fuel Efficient", imageSrc: "http://img.b2bpic.net/free-photo/green-eco-tire_23-2149262938.jpg", imageAlt: "Eco-friendly summer tire", category: "Summer", brand: "EcoWheel" + }, + { + id: "7", name: "Winter Guardian Max", price: "$105", variant: "17 Inch • Studded Available", imageSrc: "http://img.b2bpic.net/free-photo/snowy-winter-tire_23-2149262938.jpg", imageAlt: "Winter studded tire", category: "Winter", brand: "FrostGuard" + }, + { + id: "8", name: "All-Season Durable Plus", price: "$72", variant: "16 Inch • Extended Life", imageSrc: "http://img.b2bpic.net/free-photo/durable-tire_23-2149262938.jpg", imageAlt: "Extended life tire", category: "All-Season", brand: "RoadMax" + } +]; + +export default function ProductCatalogPage() { + const [selectedCategory, setSelectedCategory] = useState("All"); + + const filteredProducts = useMemo(() => { + if (selectedCategory === "All") { + return TIRE_PRODUCTS; + } + return TIRE_PRODUCTS.filter(product => product.category === selectedCategory); + }, [selectedCategory]); + + const productCards = filteredProducts.map(product => ({ + id: product.id, + name: product.name, + price: product.price, + variant: product.variant, + imageSrc: product.imageSrc, + imageAlt: product.imageAlt + })); + + return ( + + + +
+ +
+ +
+
+
+
+

Shop Our Tire Catalog

+

Filter by category to find the perfect tire for your needs

+ +
+ {TIRE_CATEGORIES.map(category => ( + + ))} +
+ +
+ Showing {filteredProducts.length} tire{filteredProducts.length !== 1 ? 's' : ''} +
+
+ + +
+
+
+ +
+ +
+ + +
+ ); +} \ No newline at end of file