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 +} diff --git a/src/app/product/[id]/page.tsx b/src/app/product/[id]/page.tsx new file mode 100644 index 0000000..219ecab --- /dev/null +++ b/src/app/product/[id]/page.tsx @@ -0,0 +1,54 @@ +"use client"; + +import { useParams } from "next/navigation"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; +import FooterCard from '@/components/sections/footer/FooterCard'; +import { Twitter, Instagram, Linkedin } from "lucide-react"; + +export default function ProductDetailPage() { + const { id } = useParams(); + + const handleCheckout = () => { + window.location.href = "https://www.shopier.com/checkout"; + }; + + return ( + + + +
+

Product ID: {id}

+

Explore the refined details of our premium product collection. Built with precision for your lifestyle.

+ +
+ +
+
+ ); +} \ No newline at end of file