checkpoint

This commit is contained in:
2026-02-04 12:10:30 -05:00
parent b8549777ba
commit cdabf2c3e0
22 changed files with 1176 additions and 18 deletions

View File

@@ -1,14 +1,21 @@
import type { JSX } from "solid-js"
import type { ThemeColors } from "../types/settings"
type LayoutProps = {
header?: JSX.Element
footer?: JSX.Element
children?: JSX.Element
theme?: ThemeColors
}
export function Layout(props: LayoutProps) {
return (
<box style={{ flexDirection: "column", width: "100%", height: "100%" }}>
<box
flexDirection="column"
width="100%"
height="100%"
backgroundColor={props.theme?.background}
>
{props.header ? <box style={{ height: 3 }}>{props.header}</box> : <text></text>}
<box style={{ flexGrow: 1 }}>{props.children}</box>
{props.footer ? <box style={{ height: 1 }}>{props.footer}</box> : <text></text>}