summaryrefslogtreecommitdiff
path: root/old_stuff/src/pages/404.astro
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-10-06 20:46:31 +0300
committerKyren223 <contact@kyren.codes>2026-10-06 20:46:31 +0300
commitba1be9573ef20d6424ae987257a1c727c47d4b53 (patch)
treee59ef56f19142215070d0516a9b3a110d15557b6 /old_stuff/src/pages/404.astro
parentea056b6e080669ba4b6f16c2757b4e2e88ea0553 (diff)
Initial setup for website rewrite
Diffstat (limited to 'old_stuff/src/pages/404.astro')
-rw-r--r--old_stuff/src/pages/404.astro25
1 files changed, 25 insertions, 0 deletions
diff --git a/old_stuff/src/pages/404.astro b/old_stuff/src/pages/404.astro
new file mode 100644
index 0000000..9d3910e
--- /dev/null
+++ b/old_stuff/src/pages/404.astro
@@ -0,0 +1,25 @@
+---
+import TerminalBorder from "@components/TerminalBorder.astro";
+import Terminal from "@layouts/Terminal.astro";
+
+const url = new URL(Astro.request.url).pathname.substring(1);
+---
+
+<Terminal path="404">
+ <TerminalBorder header="Shell" extra="my-[0.625vw]">
+ <span>
+ <p id="cd">$ cd ~/{url}</p>
+ <p id="err" class="pt-[1vw]">
+ "{url}": No such file or directory (os error 2)
+ </p>
+ </span>
+ </TerminalBorder>
+</Terminal>
+<script>
+ document.addEventListener("DOMContentLoaded", () => {
+ const url = window.location.pathname.substring(1);
+ document.getElementById("cd")!.textContent = `$ cd ~/${url}`;
+ document.getElementById("err")!.textContent =
+ `"${url}": No such file or directory (os error 2)`;
+ });
+</script>