Skip to content

Commit a97c07c

Browse files
committed
fix: navbar hierarchy - root/1-level/2-level indentation
1 parent eedea45 commit a97c07c

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

components/layout/header/index.tsx

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,34 @@ export function Header() {
2727
)
2828

2929
return (
30-
<nav className="fixed top-safe left-safe z-2 flex flex-col gap-3 font-mono dt:text-[11px] text-[10px] uppercase">
31-
{/* Logo + current path */}
32-
<div className="flex items-baseline gap-2">
33-
<h1 className="dt:text-[13px] text-[12px]">Satūs</h1>
34-
<span className="opacity-40">{pathname}</span>
35-
</div>
30+
<nav className="fixed top-safe left-safe z-2 flex flex-col font-mono dt:text-[11px] text-[10px] uppercase">
31+
{/* Root level: Logo */}
32+
<h1 className="dt:text-[13px] text-[12px]">Satūs</h1>
3633

37-
{/* Main navigation */}
38-
<ul className="flex flex-col gap-0.5 pl-4">
34+
{/* Level 1: Main navigation */}
35+
<ul className="mt-1 flex flex-col pl-4">
3936
{LINKS.map((link) => (
4037
<li key={link.href} className="flex">
41-
<span className="-ml-4 w-4 opacity-50">
38+
<span className="-ml-3 w-3 opacity-50">
4239
{pathname === link.href ? '›' : ''}
4340
</span>
4441
<Link href={link.href} className="link">
4542
{link.label}
4643
</Link>
4744
</li>
4845
))}
49-
50-
{/* Examples submenu */}
5146
<li className="flex">
52-
<span className="-ml-4 w-4 opacity-50">
47+
<span className="-ml-3 w-3 opacity-50">
5348
{isExamplePage ? '›' : ''}
5449
</span>
5550
<span>examples</span>
5651
</li>
57-
</ul>
5852

59-
{/* Examples sub-navigation */}
60-
<ul className="flex flex-col gap-0.5 pl-8">
53+
{/* Level 2: Examples sub-navigation */}
6154
{EXAMPLES.map((link) => (
62-
<li key={link.href} className="flex">
63-
<span className="-ml-4 w-4 opacity-50">
64-
{pathname === link.href ? '·' : ''}
55+
<li key={link.href} className="flex pl-4">
56+
<span className="-ml-3 w-3 opacity-50">
57+
{pathname === link.href ? '' : ''}
6558
</span>
6659
<Link
6760
href={link.href}

0 commit comments

Comments
 (0)