feat: global shell — header, footer, sidebars, and layout integration

This commit is contained in:
zetaloop
2026-02-20 13:27:33 +08:00
parent 02cd8a23df
commit f7c76db00f
9 changed files with 520 additions and 36 deletions
+5 -13
View File
@@ -1,20 +1,12 @@
import { Footer } from "@/components/footer"
import { Header } from "@/components/header"
export default function MainLayout({ children }: { children: React.ReactNode }) {
return (
<div className="flex min-h-screen flex-col">
<header className="border-b">
<nav className="container mx-auto flex h-16 items-center justify-between px-4">
<span className="text-xl font-bold"></span>
<div className="flex items-center gap-4">
<span className="text-sm text-muted-foreground"></span>
</div>
</nav>
</header>
<Header />
<main className="flex-1">{children}</main>
<footer className="border-t py-6">
<div className="container mx-auto px-4 text-center text-sm text-muted-foreground">
© -
</div>
</footer>
<Footer />
</div>
)
}