From a989cf997c7775965cec39b27c67582b2758bff5 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Tue, 14 Nov 2023 02:35:43 -0800 Subject: [PATCH] sticky nav shows, but doesn't link --- .../app/components/NavBar/NavBar.tsx | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx b/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx index 76bd48b..d41b732 100644 --- a/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx +++ b/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx @@ -42,7 +42,7 @@ const NavBar = () => { const changeBackground = () => { // console.log(window.scrollY); - if (window.scrollY >= 20) { + if (window.scrollY >= 70) { setNavbar(true); } else { setNavbar(false); @@ -56,19 +56,30 @@ const NavBar = () => { return (