server-landing-pages/src/_includes/layouts/main.tsx
Sam Therapy dfc20dd715
Make another thing a component :)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-09-25 19:34:44 +02:00

23 lines
791 B
TypeScript

import { PageData } from "https://deno.land/x/lume@v1.11.4/core.ts";
import Favicon from "../../_components/favicon.tsx";
import Image from "../../_components/image.tsx";
import Footer from "../../_components/footer.tsx";
export const layout = "layouts/_main.njk";
export default (data: PageData) => (
<html lang="en">
<head>
<title>{data.site.endpoint} Nameserver</title>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width" />
<Favicon char={data.body as string} />
{/* @ts-ignore */}
<link rel="stylesheet" href="../styles.css" inline />
</head>
<body>
<Image char={data.body as string} />
<Footer source={data.site.source} name={data.site.name} contact={data.site.contact} />
</body>
</html>
);