This repository has been archived on 2025-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
Files
old.martials.no/src/components/layout.tsx

18 lines
573 B
TypeScript
Raw Normal View History

2022-12-21 13:56:42 +01:00
/* @refresh reload */
import { type Component } from "solid-js";
import type { TitleProps } from "../types/interfaces";
import Header from "./header";
export const Layout: Component<TitleProps> = ({ children, title, className }) => {
return (
<div class={ `bg-default-bg text-white min-h-screen font-mono ${ className }` }>
<div class="container mx-auto debug">
<Header className={"my-3"} title={ title } />
<main>
{ children }
</main>
</div>
</div>
);
};