From ed94e349aa6fa19fb8b3304317ea75c109bec27c Mon Sep 17 00:00:00 2001 From: Melvin Teo <62491197+meleongg@users.noreply.github.com> Date: Sat, 2 Dec 2023 10:50:10 -0800 Subject: [PATCH] Fix Hero padding --- components/Hero.js | 1 - components/NavBar.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/Hero.js b/components/Hero.js index 0db95ee..937c43a 100644 --- a/components/Hero.js +++ b/components/Hero.js @@ -15,7 +15,6 @@ const HeroContainer = styled.div` background-repeat: no-repeat; background-position: top; background-size: contain; - padding-top: 134px; `; const HeroTextContainer = styled.div` diff --git a/components/NavBar.js b/components/NavBar.js index bc8092e..4ab8c9e 100644 --- a/components/NavBar.js +++ b/components/NavBar.js @@ -232,7 +232,7 @@ const NavBar = () => { }; const handleScroll = () => { - var lastScroll = 0; + let lastScroll = 0; return () => { const scroll = window.pageYOffset || document.documentElement.scrollTop; if (scroll <= 0) {