feat(Navbar): logo click smooth-scrolls to top
This commit is contained in:
@@ -52,8 +52,16 @@ export function Navbar() {
|
||||
>
|
||||
<div className="w-full flex items-center justify-between">
|
||||
|
||||
{/* Logo — exported directly from Figma */}
|
||||
<Link href="/" className="shrink-0">
|
||||
{/* Logo — smooth scroll to top */}
|
||||
<a
|
||||
href="/"
|
||||
className="shrink-0"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
smoothScrollTo(0);
|
||||
history.replaceState(null, "", "/");
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/logo.png"
|
||||
alt="einfach produktiv"
|
||||
@@ -61,7 +69,7 @@ export function Navbar() {
|
||||
height={61}
|
||||
priority
|
||||
/>
|
||||
</Link>
|
||||
</a>
|
||||
|
||||
{/* Nav links */}
|
||||
<nav className="flex items-center gap-[3rem]">
|
||||
|
||||
Reference in New Issue
Block a user