feat(app): add layout shell with bottom nav and Toaster

This commit is contained in:
2026-04-08 03:42:13 +02:00
parent 1936ced395
commit 65dd30df46
3 changed files with 47 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
import { NavLink } from "react-router";
import { Music } from "lucide-react";
import { cn } from "~/lib/utils";
export function BottomNav() {
return (
<nav className="border-t bg-background shrink-0">
<div className="max-w-lg mx-auto flex">
<NavLink
to="/"
end
className={({ isActive }) =>
cn(
"flex flex-col items-center gap-0.5 flex-1 py-2 text-xs transition-colors",
isActive
? "text-primary"
: "text-muted-foreground hover:text-foreground"
)
}
>
<Music className="w-5 h-5" />
<span>Library</span>
</NavLink>
</div>
</nav>
);
}