From 7f7a467f9e24eceedff71a422f01817e18b3a2fc Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 7 Apr 2026 07:31:19 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index db9d56d..972bf33 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,6 +12,13 @@ import SplitAbout from '@/components/sections/about/SplitAbout'; import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix'; export default function LandingPage() { + const scrollToSection = (id: string) => { + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + return ( scrollToSection("menu") }]} /> @@ -140,6 +147,7 @@ export default function LandingPage() { description="Kom forbi og nyd en kop kaffe eller bestil bord direkte ved at ringe til os." imageSrc="http://img.b2bpic.net/free-photo/lights-night-city_23-2148139580.jpg" mediaAnimation="blur-reveal" + onSubmit={(email) => console.log("Signed up with:", email)} /> @@ -147,7 +155,7 @@ export default function LandingPage() { window.location.href = "tel:+4575820000" }] }, { title: "Social", items: [{ label: "Instagram", href: "#" }, { label: "Facebook", href: "#" }] }, ]} logoText="Onkel A"