This commit is contained in:
2025-01-27 00:00:47 -08:00
commit 485e657296
21 changed files with 1548 additions and 0 deletions

54
site/templates/error.html Normal file
View File

@ -0,0 +1,54 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg" />
<title>{{code}} {{message}}</title>
<style>
:root {
--foreground: #ffffff;
--background: #000000;
--accent-50: #adadad;
}
@media (prefers-color-scheme: light) {
:root {
--foreground: #000000;
--background: #ffffff;
--accent-50: #525252;
}
}
body {
display: flex;
flex-direction: column;
margin: 0;
justify-content: center;
align-items: center;
min-height: 100vh;
}
body {
background: var(--background);
font-family: "Roboto", sans-serif;
color: var(--foreground);
h1 {
margin: 0;
}
h3 {
margin: 0;
color: var(--accent-50);
}
}
</style>
</head>
<body>
<h1>{{code}}</h1>
<h3>{{message}}</h3>
</body>
</html>

34
site/templates/main.html Normal file
View File

@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
<link rel="stylesheet" type="text/css" href="/styles/style.css" />
<title>bunbun.dev</title>
</head>
<body>
<header>
<a href="https://bunbun.dev">bunbun.dev</a>
<nav>
<a href="https://bunbun.dev/about">About</a>
</nav>
</header>
<div class="content">
<main>{{content}}</main>
</div>
<footer>
&copy; 2024 Winter Hille &mdash;
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en"
>BY-NC-SA 4.0</a
>
</footer>
</body>
<script type="module">
import init from "./wasm/cursor/pkg/wasm_cursor.js";
(async () => await init())();
</script>
</html>