From 03ae71d325033a771ef6a15e92796a804a6c0ddc Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 22 May 2026 12:08:29 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index fbe2f87..73372f1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -16,6 +16,17 @@ import TeamCardSix from '@/components/sections/team/TeamCardSix'; import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne'; export default function LandingPage() { + const handleScroll = (id: string) => { + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + const menu = document.querySelector('[data-fullscreen-menu]'); + if (menu) { + (menu as HTMLElement).style.display = 'none'; + } + }; + return ( handleScroll('about')}, ]} mediaItems={[ { -- 2.49.1