From fb303a25187a725e7b18d41cd56b3cacd9845605 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 8 Mar 2026 23:43:31 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f7f5b77..50fb24e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,6 +10,20 @@ import ContactCTA from '@/components/sections/contact/ContactCTA'; import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal'; export default function LandingPage() { + const handleReserveTableClick = () => { + const element = document.getElementById('contact'); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); + } + }; + + const handleMenuClick = () => { + const element = document.getElementById('menu'); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); + } + }; + return ( @@ -145,7 +159,7 @@ export default function LandingPage() { title="Localização e Horário" description="Alameda do Fujacal 99, Braga\n\n📞 253 260 020\n\n🕒 Seg-Sáb: 11:30-14:30 / 19:00-21:30\n🕒 Domingo: Fechado\n\nReserve a sua mesa para garantir lugar." buttons={[ - { text: "Reservar Mesa", href: "tel:253260020" }, + { text: "Reservar Mesa", onClick: handleReserveTableClick }, { text: "Google Maps", href: "https://maps.google.com/?q=Alameda+do+Fujacal+99+Braga" }, ]} background={{ variant: "plain" }} -- 2.49.1