From 25a691201d4f6ad1dbf3e10c1376afdd2f0aee9a Mon Sep 17 00:00:00 2001 From: Martti Soininen Date: Mon, 24 Jun 2024 15:34:33 +0300 Subject: [PATCH] Use custom svg for hamburger --- src/components/Nav.tsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx index d0d4dbd..56fd22a 100644 --- a/src/components/Nav.tsx +++ b/src/components/Nav.tsx @@ -28,7 +28,7 @@ export default function Nav() { window.removeEventListener("scroll", handleScroll); }); }); - + const active = (path: string) => { const pathname = normalizePath(location.pathname); return path === pathname ? "bg-amber-800" : ""; @@ -45,7 +45,7 @@ export default function Nav() { function toggleNavigation() { setShowSideNavi(!showSideNavi()); } - + return ( <>
toggleNavigation()}> - + onClick={() => toggleNavigation()}> + + + + + + + + + + +
- +