hornwitser.no/content/bases.tsx
Hornwitser d003ea01d0 Use absolute refs transformed to relative
Write all links as absolute refs from the virtual root of the website's
path namespace and then transform these into relative links with the
resolveRefs utility function.
2025-01-22 09:03:37 +01:00

23 lines
522 B
TypeScript

import type { Node } from "antihtml";
interface BaseProps {
title: string;
children: Node | Node[],
}
export function BasePage(props: BaseProps) {
return <html lang="en">
<head>
<meta charset="utf-8" />
<title>{props.title}</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<header class="header">
<nav>
<a href="/index.html">Home</a> <a href="/updates.html">Updates</a> <a href="/projects.html">Projects</a>
</nav>
</header>
{props.children}
</body>
</html>
}