From 128f460b2b44ebe3f3e3b32e26eda5921eaf3e33 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 9 Mar 2026 18:24:47 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 110 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 85 insertions(+), 25 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index aa02639..1188ce9 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,9 +10,39 @@ import SocialProofOne from "@/components/sections/socialProof/SocialProofOne"; import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen"; import ContactSplit from "@/components/sections/contact/ContactSplit"; import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; -import { Award, Activity, CheckCircle, Mail, RefreshCw, Shield, Sparkles, Star, Truck, Zap } from "lucide-react"; +import { Award, Activity, CheckCircle, Mail, RefreshCw, Shield, Sparkles, Star, Truck, Zap, Filter } from "lucide-react"; +import { useState } from "react"; export default function LandingPage() { + const [selectedBrand, setSelectedBrand] = useState(null); + + const allProducts = [ + { + id: "1", name: "Nike Air Max Pro", price: "$189.99", imageSrc: "http://img.b2bpic.net/free-photo/mans-shoe-used-formal-events_1194-638978.jpg", imageAlt: "Nike Air Max shoe product photography", brand: "Nike" + }, + { + id: "2", name: "Jogger Essential Hoodie", price: "$79.99", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-posing-with-sunglasses_23-2149409747.jpg", imageAlt: "Jogger brand hoodie sweatshirt mockup", brand: "Jogger" + }, + { + id: "3", name: "Ralph Lauren Classic Polo", price: "$98.99", imageSrc: "http://img.b2bpic.net/free-photo/fashion-polo-shirt-men_74190-4858.jpg", imageAlt: "Ralph Lauren classic polo shirt product", brand: "Ralph Lauren" + }, + { + id: "4", name: "Nike Running Shorts", price: "$54.99", imageSrc: "http://img.b2bpic.net/free-photo/fit-tennis-players-stretching-full-shot_23-2148439886.jpg", imageAlt: "Nike athletic shorts running product", brand: "Nike" + }, + { + id: "5", name: "Jogger Track Jacket", price: "$129.99", imageSrc: "http://img.b2bpic.net/free-photo/blonde-lady-tracksuit-mask-posing-while-stretching-arms-looking-relaxed-front-view_176474-60154.jpg", imageAlt: "Jogger track jacket athletic wear", brand: "Jogger" + }, + { + id: "6", name: "Ralph Lauren Training Tee", price: "$64.99", imageSrc: "http://img.b2bpic.net/free-photo/handsome-hipster-model-man-stylish-summer-clothes-posing-sunglasses_158538-14650.jpg", imageAlt: "Ralph Lauren t-shirt athletic wear", brand: "Ralph Lauren" + } + ]; + + const filteredProducts = selectedBrand + ? allProducts.filter((product: any) => product.brand === selectedBrand) + : allProducts; + + const brands = ["Nike", "Jogger", "Ralph Lauren"]; + return (
+
+
+ {/* Brand Filter */} +
+
+ +

Filter by Brand

+
+
+ + {brands.map((brand) => ( + + ))} +
+
+
+
+ ({ + id: product.id, + name: product.name, + price: product.price, + imageSrc: product.imageSrc, + imageAlt: product.imageAlt + }))} buttons={[{ text: "Shop All", href: "#products" }]} buttonAnimation="slide-up" /> @@ -192,8 +252,8 @@ export default function LandingPage() {