feat: style

This commit is contained in:
2026-04-03 22:10:26 +02:00
parent 234081db09
commit b878068ab3
10 changed files with 191 additions and 74 deletions

View File

@@ -5,6 +5,7 @@ import menuSvg from "@/assets/menu.min.svg";
const NAV_ITEMS = [
{ label: "Browse", path: "/browse" },
{ label: "Compose", path: "/" },
{ label: "Settings", path: "/settings" },
] as const;
/**
@@ -47,7 +48,12 @@ function useSmoothScroll(scrollSelector: string, ease = 0.08) {
return offset;
}
export default function NavMenu() {
interface NavMenuProps {
theme: "terra" | "azure";
onToggleTheme: () => void;
}
export default function NavMenu({ theme, onToggleTheme }: NavMenuProps) {
const navigate = useNavigate();
const location = useLocation();
const scrollY = useSmoothScroll("[data-scroll-root]", 0.07);
@@ -82,6 +88,15 @@ export default function NavMenu() {
);
})}
</nav>
{/* Theme toggle — bottom container */}
<button
onClick={onToggleTheme}
className="nav-menu-theme-toggle"
title={`Switch to ${theme === "terra" ? "Azure" : "Terracotta"} theme`}
>
{theme === "terra" ? "◐ AZURE" : "◑ TERRA"}
</button>
</div>
);
}