From a24ced1ccd1907bae0f2d3e808803158b5db1549 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 4 Mar 2026 23:07:00 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 24d04bf..e36fecb 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,6 +13,11 @@ import FooterMedia from "@/components/sections/footer/FooterMedia"; import { Coffee, Leaf, Flame, Users, Sparkles, Heart, MessageSquare, Mail, Globe, MapPin } from "lucide-react"; export default function LandingPage() { + const handleProductClick = (productId: string, productName: string) => { + console.log(`Product clicked: ${productName} (ID: ${productId})`); + window.location.href = `/products/${productId}`; + }; + return ( handleProductClick("1", "Classic Espresso") }, + { id: "2", name: "Iced Cold Brew", price: "$4.25", imageSrc: "http://img.b2bpic.net/free-photo/cold-summer-coffee-drink-with-ice-orange-juice_169016-21399.jpg", imageAlt: "Refreshing iced coffee", onProductClick: () => handleProductClick("2", "Iced Cold Brew") }, + { id: "3", name: "Silky Cappuccino", price: "$4.95", imageSrc: "http://img.b2bpic.net/free-photo/two-cappuccino-coffee-glasses-with-spoon-saucer-wooden-table_23-2147908377.jpg", imageAlt: "Creamy cappuccino", onProductClick: () => handleProductClick("3", "Silky Cappuccino") }, ]} gridVariant="three-columns-all-equal-width" animationType="slide-up" -- 2.49.1