diff --git a/src/App.tsx b/src/App.tsx index e2d6172..c7045d7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -21,8 +21,8 @@ export default function App() { } /> } /> -
- +
+
{ const [menuOpen, setMenuOpen] = useState(false); useEffect(() => { - const handleScroll = () => setIsScrolled(window.scrollY > 50); + const handleScroll = () => setIsScrolled(window.scrollY > 20); window.addEventListener("scroll", handleScroll, { passive: true }); return () => window.removeEventListener("scroll", handleScroll); }, []); @@ -59,37 +59,39 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => { <>