stuff
This commit is contained in:
@@ -2,10 +2,12 @@ import { html } from "@mastrojs/mastro";
|
||||
|
||||
export const Footer = () => html`
|
||||
<footer>
|
||||
<div>
|
||||
<div class="bg-stone-950 rounded p-2 mb-4">
|
||||
Made with
|
||||
<a href="https://github.com/mastrojs/mastro">Mastro</a> ©
|
||||
${new Date().getFullYear()}
|
||||
<a href="https://github.com/mastrojs/mastro" class="font-bold font-mono"
|
||||
>Mastro</a
|
||||
>
|
||||
© ${new Date().getFullYear()}
|
||||
</div>
|
||||
</footer>
|
||||
`;
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
import { html } from "@mastrojs/mastro";
|
||||
|
||||
export const Header = () => html`
|
||||
<header>
|
||||
<div><a href="/">jens.pub</a></div>
|
||||
<header class="py-8">
|
||||
<a
|
||||
class="text-5xl font-bold font-fancy rounded bg-stone-950 px-4 py-1"
|
||||
href="/"
|
||||
>jens.pub</a
|
||||
>
|
||||
</header>
|
||||
`;
|
||||
|
||||
@@ -9,23 +9,25 @@ interface Props {
|
||||
children: Html;
|
||||
}
|
||||
|
||||
export const Layout = (props: Props) =>
|
||||
html`
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>${props.title}</title>
|
||||
<link rel="stylesheet" href=${basePath + "/styles.css"}>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
</head>
|
||||
<body>
|
||||
${Header()}
|
||||
export const Layout = (props: Props) => html`
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>${props.title}</title>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href=${basePath + "/styles.css"} />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
</head>
|
||||
<body
|
||||
class="bg-stone-900 text-stone-200 max-w-2xl flex flex-col mx-auto h-screen border-l-8 border-dashed pl-4"
|
||||
>
|
||||
${Header()}
|
||||
|
||||
<main>
|
||||
${props.children}
|
||||
</main>
|
||||
<main class="flex-1 prose prose-stone prose-invert">
|
||||
${props.children}
|
||||
</main>
|
||||
|
||||
${Footer()}
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
${Footer()}
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user