From 0490aabd0f5f9b2de38d9d7895e421b769e202a2 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 17 Mar 2026 18:42:35 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 558390f..2ae058e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,6 +12,10 @@ import FooterBase from '@/components/sections/footer/FooterBase'; import { Cake, Coffee, Leaf, Sparkles, Star } from 'lucide-react'; export default function LandingPage() { + const handlePhoneCall = () => { + window.location.href = 'tel:+40123456789'; + }; + return ( @@ -44,7 +48,7 @@ export default function LandingPage() { description="Unde cafeaua devine seducție. Un spațiu sofisticat unde fiecare detaliu te atrage — de la aroma intensă a cafelei până la atmosfera care te face să rămâi." buttons={[ { text: "Descoperă Sufra", href: "#features" }, - { text: "Rezervă o masă", href: "#contact" } + { text: "Rezervă o masă", onClick: handlePhoneCall } ]} background={{ variant: "plain" }} imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AzNj4WP27ifyceNzVV09XKCG3K/uploaded-1773772494044-rw8ack8i.png" @@ -144,7 +148,7 @@ export default function LandingPage() { background={{ variant: "radial-gradient" }} useInvertedBackground={false} buttons={[ - { text: "Contactează-ne", href: "tel:+40123456789" }, + { text: "Contactează-ne", onClick: handlePhoneCall }, { text: "Urmărește-ne pe Instagram", href: "https://instagram.com" } ]} animationType="entrance-slide" @@ -177,7 +181,7 @@ export default function LandingPage() { { label: "Instagram", href: "https://instagram.com" }, { label: "Facebook", href: "https://facebook.com" }, { label: "Email", href: "mailto:info@sufracoffee.ro" }, - { label: "Phone", href: "tel:+40123456789" } + { label: "Phone", onClick: handlePhoneCall } ] } ]}