fix: make it work with new vite

This commit is contained in:
Max Richter
2026-01-10 19:28:09 +01:00
parent 694feb083d
commit 8d712322c0
66 changed files with 590 additions and 1544 deletions

View File

@@ -1,7 +1,6 @@
import { PageProps } from "fresh";
import { Partial } from "fresh/runtime";
import { define } from "../utils.ts";
export default function App({ Component }: PageProps) {
export default define.page(function ({ Component }) {
return (
<html>
<head>
@@ -12,9 +11,6 @@ export default function App({ Component }: PageProps) {
href="/favicon.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#141218" />
<link
rel="preload"
href="/fonts/work-sans-v18-latin-regular.woff2"
@@ -28,14 +24,24 @@ export default function App({ Component }: PageProps) {
type="font/woff2"
/>
<link rel="stylesheet" href="/global.css" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#141218" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style
dangerouslySetInnerHTML={{
__html: Deno.readTextFileSync("./static/global.css"),
}}
>
</style>
<title>Memorium</title>
</head>
<body f-client-nav>
<Partial name="body">
<Component />
</Partial>
<body>
<Component />
</body>
<script src="/thumbhash.js" type="module" async defer />
</html>
);
}
});