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={[ {