From 824bce8638731744b55441bbc5583ca6f3f14652 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 30 Jun 2026 22:16:18 +0000 Subject: [PATCH] feat(Navbar): logo click smooth-scrolls to top --- app/components/Navbar.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/components/Navbar.tsx b/app/components/Navbar.tsx index 4236403..63615a0 100644 --- a/app/components/Navbar.tsx +++ b/app/components/Navbar.tsx @@ -52,8 +52,16 @@ export function Navbar() { >
- {/* Logo — exported directly from Figma */} - + {/* Logo — smooth scroll to top */} + { + e.preventDefault(); + smoothScrollTo(0); + history.replaceState(null, "", "/"); + }} + > einfach produktiv - + {/* Nav links */}