diff --git a/app/src/views/LandingPage.vue b/app/src/views/LandingPage.vue index d14c1f2..d40d628 100644 --- a/app/src/views/LandingPage.vue +++ b/app/src/views/LandingPage.vue @@ -20,10 +20,13 @@ const handleSignIn = async () => { const scrollToSection = (sectionId) => { const section = document.getElementById(sectionId) if (section) { - console.log(sectionId) - window.scrollTo({ - top: section.offsetTop, - }) + const container = document.querySelector('.overflow-y-auto') // Replace '.overflow-y-auto' with the appropriate class or selector for your container + if (container) { + container.scrollTo({ + top: section.offsetTop - container.offsetTop, + behavior: 'smooth', // Add smooth scrolling behavior if desired + }) + } } } @@ -292,24 +295,27 @@ const scrollToSection = (sectionId) => {