phase 1 complete

This commit is contained in:
Oliver Bryan
2026-01-07 23:17:23 +00:00
parent 84c2087ecb
commit bce2623727
5 changed files with 60 additions and 43 deletions

View File

@@ -1,27 +1,19 @@
import ThemeToggle from "@/components/theme-toggle";
import { Link, useLocation } from "react-router-dom";
import { Home, Settings } from "lucide-react";
export default function Layout({ children }: { children: React.ReactNode }) {
const router = useLocation();
return (
<div className="flex flex-col h-[100vh] items-center">
<header className="w-full flex items-center justify-between border-b h-12 p-4">
<ThemeToggle />
<h1 className="text-3xl font-bold">The Shape of Sound</h1>
{router.pathname !== "/settings" && (
<Link to="/settings" className="">
<Settings className="size-6" />
</Link>
)}
{router.pathname !== "/" && (
<Link to="/" className="">
<Home className="size-6" />
</Link>
)}
</header>
<main className="w-full flex-1 p-4 flex items-center justify-center">{children}</main>
<div className="flex h-screen w-full">
{/* sidebar - fixed width */}
<aside className="w-80 border-r bg-card p-6 flex flex-col gap-4">
<div className="flex items-center justify-between">
<h1 className="text-2xl font-semibold">The Shape of Sound</h1>
<ThemeToggle />
</div>
<div className="flex-1">{/* controls will go here in later phases */}</div>
</aside>
{/* canvas area - flex-1 */}
<main className="flex-1 flex items-center justify-center bg-background">{children}</main>
</div>
);
}