diff options
| author | Nathan Lee <me@nwlee.tech> | 2026-09-26 16:22:04 -0500 |
|---|---|---|
| committer | Nathan Lee <me@nwlee.tech> | 2026-09-26 16:22:04 -0500 |
| commit | 9660366219c28fc827c24ce7b428ad7e2534ead0 (patch) | |
| tree | b4ca2c6d46bc4f0ba46961bc903c130b09b03934 /website-src | |
| parent | 548905a86473101325540446f35ffda8acd0c3bb (diff) | |
scaffold rest of website
Diffstat (limited to 'website-src')
| -rw-r--r-- | website-src/index.html | 30 | ||||
| -rw-r--r-- | website-src/style.css | 51 |
2 files changed, 81 insertions, 0 deletions
diff --git a/website-src/index.html b/website-src/index.html new file mode 100644 index 0000000..7fa24ee --- /dev/null +++ b/website-src/index.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Website</title> + <link rel="stylesheet" href="style.css" /> + <script type="module" src="../website-emu/src/dev.js"></script> + <script type="module" defer> + import init, { boot } from './website_emu.js'; + async function run() { + await init(); + const response = await fetch('/vmwebkrnl.bin'); + if (!response.ok) { + console.log("OS image not present, not booting."); + return; + } + + const vmwebkrnl = new Uint8Array(await response.arrayBuffer()); + const initrd = new Uint8Array(8); + const dram = new Uint8Array(1024 * 1024); + + boot(vmwebkrnl, initrd, dram); + } + run(); + </script> +</head> +<body> + +</body> +</html>
\ No newline at end of file diff --git a/website-src/style.css b/website-src/style.css new file mode 100644 index 0000000..cc43cde --- /dev/null +++ b/website-src/style.css @@ -0,0 +1,51 @@ +/* Monitor container styling */ +body { + margin: 0; + padding: 0; + background: #1a1a1a; + min-height: 100vh; + font-family: 'Courier New', Courier, monospace; +} + +/* The individual text lines */ +.uart_line { + display: block; + color: white; + font-family: 'Courier New', Courier, monospace; + font-size: 16px; + line-height: 1.4; + white-space: pre-wrap; + word-break: break-word; + margin: 0; + padding: 0 4px; +} + +.uart_line:last-child::after { + content: "▊"; + margin-left: 4px; + animation: blink 1s step-end infinite; + color: white; +} + +@keyframes blink { + 0%, 50% { opacity: 1; } + 50.01%, 100% { opacity: 0; } +} + +/* Scrollbar styling */ +.screen::-webkit-scrollbar { + width: 8px; +} + +.screen::-webkit-scrollbar-track { + background: #0a0a0a; +} + +.screen::-webkit-scrollbar-thumb { + background: #1f4d2b; + border-radius: 4px; +} + +.screen::-webkit-scrollbar-thumb:hover { + background: #2a6b3a; +}
\ No newline at end of file |
