v3: search engine, responsive header with compact user menu

This commit is contained in:
khannurien
2026-03-29 11:56:31 +00:00
parent f0f6472db6
commit cbb3505139
31 changed files with 1206 additions and 178 deletions

View File

@@ -1,15 +1,17 @@
import { type ReactNode } from "react";
import { AppHeader } from "./AppHeader.tsx";
import { SearchBar } from "./SearchBar.tsx";
interface PageShellProps {
children: ReactNode;
centered?: boolean;
centerSlot?: ReactNode;
}
export function PageShell({ children, centered = false }: PageShellProps) {
export function PageShell({ children, centered = false, centerSlot }: PageShellProps) {
return (
<div className="page-shell">
<AppHeader />
<AppHeader centerSlot={centerSlot ?? <SearchBar />} />
<main
className={`page-content${centered ? " page-content--centered" : ""}`}
>