This commit is contained in:
JOLIMAITRE Matthieu 2024-05-24 02:04:48 +02:00
commit 2737aadc7f
13 changed files with 391 additions and 0 deletions

22
pages/components/base.tsx Normal file
View file

@ -0,0 +1,22 @@
/** @jsx jsx */
import { PropsWithChildren, jsx } from "https://deno.land/x/hono@v4.3.10/middleware.ts"
import { _css } from "../../lib/utils.ts";
export function BasePage({ name, children }: PropsWithChildren<{ name: string }>) {
return (
<html lang="en">
<head>
<meta charSet="UTF-8"/>
<title>{name} - Twifeur</title>
<link rel="stylesheet" href="/static/style.css" />
</head>
<body style={_css({
width: "100%",
minHeight: "100%",
})}>
{children}
</body>
</html>
)
}