init
This commit is contained in:
commit
2737aadc7f
13 changed files with 391 additions and 0 deletions
22
pages/components/base.tsx
Normal file
22
pages/components/base.tsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue