diff --git a/src/components/Hero.vue b/src/components/Hero.vue index 75d5eb1..ac5c450 100644 --- a/src/components/Hero.vue +++ b/src/components/Hero.vue @@ -5,10 +5,17 @@ const contentStore = useContentStore(); const { getConstant } = contentStore; const trailer_embed = 'https://www.youtube.com/embed/Bxi-4XEANbE?autoplay=1&mute=1&loop=1&controls=0&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=Bxi-4XEANbE&end=36'; + +const scrollPastHero = () => { + window.scrollTo({ + top: (document.getElementById('main_page')?.offsetTop || 0) - (document.getElementById('navigation')?.offsetHeight || 0), + behavior: 'smooth', + }); +};