From 3f4ef776acaa8f7079e8bc7d5d101ae3c6148c8a Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 8 Mar 2026 20:35:05 +0000 Subject: [PATCH] Update src/app/product/[id]/page.tsx --- src/app/product/[id]/page.tsx | 220 +++++----------------------------- 1 file changed, 31 insertions(+), 189 deletions(-) diff --git a/src/app/product/[id]/page.tsx b/src/app/product/[id]/page.tsx index 2269dda..b43813b 100644 --- a/src/app/product/[id]/page.tsx +++ b/src/app/product/[id]/page.tsx @@ -1,57 +1,19 @@ "use client"; +import Link from "next/link"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; import HeroSplitKpi from "@/components/sections/hero/HeroSplitKpi"; -import MetricCardOne from "@/components/sections/metrics/MetricCardOne"; -import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive"; import FooterCard from "@/components/sections/footer/FooterCard"; -import Link from "next/link"; -import { CheckCircle, Users, Star, TrendingDown, Zap, Heart, Facebook, Twitter, Instagram, Linkedin } from "lucide-react"; -import { useParams } from "next/navigation"; +import { CheckCircle, Shield, Facebook, Twitter, Instagram, Linkedin } from "lucide-react"; export default function ProductPage() { - const params = useParams(); - const productId = params?.id as string; - - // Mock product data - would be fetched from API in real app - const productMap: Record< - string, - { - title: string; - description: string; - imageSrc: string; - imageAlt: string; - } - > = { - iphone14pro: { - title: "Premium iPhone 14 Pro - Certified Refurbished", - description: - "Experience flagship performance with the iPhone 14 Pro. Certified refurbished, tested, and warranty-backed. Save 40% compared to retail prices.", - imageSrc: - "http://img.b2bpic.net/free-photo/man-shirt-using-smartphone_23-2147711134.jpg?_wi=2", - imageAlt: "iPhone 14 Pro refurbished", - }, - samsunggalaxy: { - title: "Samsung Galaxy S23 Ultra - Excellent Condition", - description: - "Premium Android experience with the Galaxy S23 Ultra. 100% functional, expertly refurbished, and backed by our 2-year warranty.", - imageSrc: - "http://img.b2bpic.net/free-photo/top-view-photo-camera-indoors-still-life_23-2150630615.jpg?_wi=2", - imageAlt: "Samsung Galaxy S23 Ultra refurbished", - }, - googlepixel: { - title: "Google Pixel 8 Pro - Like New Condition", - description: - "Advanced computational photography meets flagship performance. Certified refurbished Google Pixel with comprehensive warranty protection.", - imageSrc: - "http://img.b2bpic.net/free-photo/young-friends-traveling-through-japan_23-2149287972.jpg?_wi=2", - imageAlt: "Google Pixel 8 Pro refurbished", - }, - }; - - const product = - productMap[productId] || productMap["iphone14pro"]; + const navItems = [ + { name: "Home", id: "/" }, + { name: "Shop", id: "/shop" }, + { name: "About", id: "/about" }, + { name: "Contact", id: "/contact" }, + ]; return ( + {/* Navbar */} -
+ {/* Product Hero Section */} +
-
- -
- -
- -
- + {/* Footer */}