From af1b18d866212379437ecbf2fe74836f35b253b8 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 14 Jul 2026 16:41:19 +0200 Subject: [PATCH] Fix mobile nav: hamburger left, brand right, polished menu panel --- src/components/mobile-nav.tsx | 61 ++++++++++++++++++++++++++++------- src/components/navigation.tsx | 25 +++++++++++++- 2 files changed, 73 insertions(+), 13 deletions(-) diff --git a/src/components/mobile-nav.tsx b/src/components/mobile-nav.tsx index c3f3f46c..425c8433 100644 --- a/src/components/mobile-nav.tsx +++ b/src/components/mobile-nav.tsx @@ -1,26 +1,33 @@ "use client"; import { type ReactNode } from "react"; +import Image from "next/image"; +import Link from "next/link"; interface MobileNavProps { children: ReactNode; menuLabel?: string; closeLabel?: string; + brandLabel?: string; } export function MobileNav({ children, menuLabel = "Open menu", closeLabel = "Close menu", + brandLabel = "Atom", }: MobileNavProps) { return ( -
+
- - - + + +
+
+ + + {brandLabel} + + + {closeLabel} + +
+ {children}
diff --git a/src/components/navigation.tsx b/src/components/navigation.tsx index 34e14096..bdfe2674 100644 --- a/src/components/navigation.tsx +++ b/src/components/navigation.tsx @@ -18,7 +18,7 @@ export async function Navigation() { className="sticky top-0 z-40" style={{ backgroundColor: "var(--color-navbar)" }} > -
+
+ {/* Mobile: brand (right) */} + + + + Atom + + + {/* Desktop: controls */}