From 4c09ad718d88db440459a9af8e665b7aa8143a84 Mon Sep 17 00:00:00 2001 From: thomcleary Date: Sat, 22 Jun 2024 23:58:49 +0800 Subject: [PATCH] web: 404 page for github pages --- README.md | 6 ++++- web/TODO.md | 7 ----- web/src/404.html | 50 ++++++++++++++++++++++++++++++++++++ web/src/routes/+error.svelte | 10 -------- 4 files changed, 55 insertions(+), 18 deletions(-) create mode 100644 web/src/404.html delete mode 100644 web/src/routes/+error.svelte diff --git a/README.md b/README.md index 1148e45..83d1f2a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # 🔌 🧱 nand2tetris - +## Web + +- ## Part 1: Hardware @@ -23,3 +25,5 @@ | 10 | Compiler I: Syntax Analysis | Jack Compiler (Syntax Analyzer) | ✅ | | 11 | Compiler II: Code Generation | Jack Compiler (Code Generator) | ✅ | | 12 | Operating System | Jack OS | | + + diff --git a/web/TODO.md b/web/TODO.md index 0f43ca3..ddd896a 100644 --- a/web/TODO.md +++ b/web/TODO.md @@ -1,12 +1,5 @@ # TODO -## deploy - -- deploy to github pages -- test what happens when going to route that doesnt exist - - 404 page or does the `goto` in `+error.svelte` work? - - does a fallback need to be set in adapter config? (read docs?) - ## cleanup - organise colors into css variables diff --git a/web/src/404.html b/web/src/404.html new file mode 100644 index 0000000..93b4a2e --- /dev/null +++ b/web/src/404.html @@ -0,0 +1,50 @@ + + + + + Single Page Apps for GitHub Pages + + + + diff --git a/web/src/routes/+error.svelte b/web/src/routes/+error.svelte deleted file mode 100644 index 7a0b31b..0000000 --- a/web/src/routes/+error.svelte +++ /dev/null @@ -1,10 +0,0 @@ -