From b7e0286cc7e299508fe0baec3e89287c11c6de00 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 May 2023 00:23:11 +0200 Subject: [PATCH] feat: add custom error page + link to status page --- frontend/src/error.html | 73 ++++++++++++++++++++++++++++++ frontend/src/routes/+layout.svelte | 1 + frontend/static/logo.svg | 34 ++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 frontend/src/error.html create mode 100644 frontend/static/logo.svg diff --git a/frontend/src/error.html b/frontend/src/error.html new file mode 100644 index 0000000..40fc538 --- /dev/null +++ b/frontend/src/error.html @@ -0,0 +1,73 @@ + + + + + + + Internal error occurred + + + +
+ +

Internal error occurred

+

An internal error has occurred. Don't worry, it's (probably) not your fault.

+

+ If this is the first time this is happening, try reloading the page. Otherwise, check the + status page for updates. +

+
+

+ Status: %sveltekit.status%
+ Error message: %sveltekit.error.message% +

+ + diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index beecfc0..8ff5bd5 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -53,6 +53,7 @@ >{data.git_commit}) {/if} · + Status · About & contact · Changelog · diff --git a/frontend/static/logo.svg b/frontend/static/logo.svg new file mode 100644 index 0000000..9371e6c --- /dev/null +++ b/frontend/static/logo.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + +