2025-01-06 19:01:19 +01:00
|
|
|
import { PageProps } from "$fresh/server.ts";
|
2025-01-20 23:37:03 +01:00
|
|
|
import { Partial } from "$fresh/runtime.ts";
|
|
|
|
import { useEffect } from "preact/hooks";
|
2023-07-26 13:47:01 +02:00
|
|
|
|
2025-01-06 19:01:19 +01:00
|
|
|
export default function App({ Component }: PageProps) {
|
2025-01-17 16:54:53 +01:00
|
|
|
const globalCss = Deno
|
|
|
|
.readTextFileSync("./static/global.css")
|
|
|
|
.replaceAll("\n", "");
|
2025-01-19 16:43:00 +01:00
|
|
|
|
2023-07-26 13:47:01 +02:00
|
|
|
return (
|
2025-01-20 23:37:03 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
2025-01-19 16:43:00 +01:00
|
|
|
<link rel="stylesheet" href="/prism-material-dark.css" />
|
2025-01-17 16:54:53 +01:00
|
|
|
<link rel="stylesheet" href="/styles.css" />
|
2023-08-09 16:02:28 +02:00
|
|
|
<link
|
|
|
|
rel="icon"
|
|
|
|
type="image/png"
|
2025-01-18 01:09:01 +01:00
|
|
|
href="/favicon.png"
|
2023-08-09 16:02:28 +02:00
|
|
|
/>
|
|
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
|
|
<meta name="msapplication-TileColor" content="#da532c" />
|
2025-01-25 00:45:22 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2023-08-09 16:02:28 +02:00
|
|
|
<meta name="theme-color" content="#141218" />
|
2025-01-17 16:54:53 +01:00
|
|
|
<style>{globalCss}</style>
|
2025-01-18 01:09:01 +01:00
|
|
|
<title>Memorium</title>
|
2025-01-20 23:37:03 +01:00
|
|
|
</head>
|
|
|
|
<body f-client-nav>
|
|
|
|
<Partial name="body">
|
|
|
|
<Component />
|
|
|
|
</Partial>
|
|
|
|
</body>
|
2025-01-17 16:54:53 +01:00
|
|
|
<script src="/thumbnails.js" type="module" async defer />
|
2025-01-20 23:37:03 +01:00
|
|
|
</html>
|
2023-07-26 13:47:01 +02:00
|
|
|
);
|
|
|
|
}
|