add:planned feats

This commit is contained in:
kokopi
2026-03-09 00:51:07 +09:00
parent 16bc00632d
commit fc611806a3
30 changed files with 950 additions and 129 deletions

View File

@@ -1,14 +1,27 @@
import type { User } from '../../lib/types.ts'
import { Navbar } from './Navbar.tsx'
interface LayoutProps {
children: React.ReactNode
subHeader?: React.ReactNode
user?: User | null
}
export function Layout({ children }: LayoutProps) {
export function Layout({ children, subHeader }: LayoutProps) {
return (
<div className="min-h-screen bg-bg-100">
<Navbar />
<main className="mx-auto max-w-4xl px-6 py-10">
{/* Tab sub-header */}
{subHeader && (
<div className="w-full bg-bg-100">
<div className="mx-auto">
{subHeader}
</div>
</div>
)}
<main className="mx-auto max-w-4xl px-6 py-4">
{children}
</main>
</div>