diff --git a/app/product/[id]/page.tsx b/app/product/[id]/page.tsx new file mode 100644 index 0000000..c1113dd --- /dev/null +++ b/app/product/[id]/page.tsx @@ -0,0 +1,117 @@ +import { products } from "@/lib/products"; +import { Container } from "@/components/container"; +import { Button } from "@/components/ui/button"; +import { Star, ArrowLeft, ShieldCheck, Truck, RefreshCcw } from "lucide-react"; +import Link from "next/link"; +import Image from "next/image"; +import { notFound } from "next/navigation"; +import { Footer } from "@/components/footer"; + +export default function ProductPage({ params }: { params: { id: string } }) { + const product = products.find((p) => p.id === params.id); + + if (!product) { + notFound(); + } + + return ( +
+
+ + + + Back to Shopping + + +
+ +
+ +
+ {/* Image Gallery */} +
+
+ {product.name} +
+
+ + {/* Product Info */} +
+
+ + {product.category} + +

+ {product.name} +

+
+
+ {Array.from({ length: 5 }).map((_, i) => ( + + ))} +
+ + {product.rating} Rating + +
+

+ {product.price} +

+
+ +
+

Description

+

+ {product.description} +

+
+ +
+ + +
+
+ + Secure Checkout on Partner Site +
+
+ + Global Shipping Available +
+
+ + Easy Returns via Retailer +
+
+
+
+
+ + {/* Affiliate Disclaimer */} +
+

+ Affiliate Disclosure: WORLDWIDE SHOPPERS is an affiliate marketing website. When you click "Shop Now", you will be redirected to a third-party retailer's website to complete your purchase. We may earn a commission from qualifying purchases at no extra cost to you. +

+
+
+
+
+ ); +}