From 3903924fe80f0bf5d6012974f28b7a4d81f38e07 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 18 Apr 2026 22:13:01 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1139996..96cd01c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,8 +12,15 @@ import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarS import ProductCardThree from '@/components/sections/product/ProductCardThree'; import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive'; import { Award, Globe, Instagram, Linkedin, Sparkles, Twitter, Users } from "lucide-react"; +import { useRouter } from "next/navigation"; export default function LandingPage() { + const router = useRouter(); + + const handleProductClick = (id: string) => { + router.push(`/product/${id}`); + }; + return ( handleProductClick("p1"), priceButtonProps: { text: "Buy Now" } }, + { id: "p2", name: "Audio Prime", price: "$249", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-vr-glasses_23-2148847740.jpg?_wi=1", onProductClick: () => handleProductClick("p2"), priceButtonProps: { text: "Buy Now" } }, + { id: "p3", name: "Smart Dock", price: "$89", imageSrc: "http://img.b2bpic.net/free-photo/smartphone-laptop-amidst-stationery_23-2147768899.jpg?_wi=1", onProductClick: () => handleProductClick("p3"), priceButtonProps: { text: "Buy Now" } }, + { id: "p4", name: "Sonic Buds", price: "$159", imageSrc: "http://img.b2bpic.net/free-photo/headphones-laptop-home_23-2149551432.jpg?_wi=1", onProductClick: () => handleProductClick("p4"), priceButtonProps: { text: "Buy Now" } }, + { id: "p5", name: "T&B Watch", price: "$299", imageSrc: "http://img.b2bpic.net/free-photo/young-serious-man-wearing-white-t-shirt-light-blue-denim-shirt-rolling-up-his-right-sleeve-showing-tattooed-arm-isolated-white_346278-937.jpg", onProductClick: () => handleProductClick("p5"), priceButtonProps: { text: "Buy Now" } }, + { id: "p6", name: "Power Bank", price: "$69", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-hands-holding-notebook-pen_23-2149328239.jpg", onProductClick: () => handleProductClick("p6"), priceButtonProps: { text: "Buy Now" } }, ]} title="Essential Collection" description="Carefully curated products built for the modern lifestyle." @@ -241,4 +242,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +}