import { notFound } from "next/navigation" import Image from "next/image" import Link from "next/link" import { cards } from "@/data/cards" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { ChevronRight } from "lucide-react" export function generateStaticParams() { return cards.map((card) => ({ id: card.id, })) } export default function CardDetailPage({ params, }: { params: { id: string } }) { const card = cards.find((c) => c.id === params.id) if (!card) { notFound() } const categoryName = card.category.charAt(0).toUpperCase() + card.category.slice(1) return (
{/* Breadcrumb */}
{/* Product Image */}
{card.name}
${card.price.toFixed(2)}
{/* Product Details */}

{card.name}

${card.price.toFixed(2)}

{/* Product Information */}

Order Code: {card.orderCode}

{card.description && (

Details: {card.description}

)}

Dimensions: 12 cm × 12 cm

Weight: 25 grams

{/* Color Selection */}
{/* Quantity Selection */}
{/* Add to Cart Button */} {/* Additional Info */}

All cards are handcrafted 3D pop-up greeting cards made with premium materials.

Each card comes with a matching envelope.

Satisfaction Guaranteed - Quality you can trust.

) }