From 2d5ee7b69cbe27e7e1abef7bf3451cb6455c4387 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 15 May 2024 12:44:03 +0200 Subject: feat: render HTML error pages --- frontend/static/style.css | 5 +++++ frontend/templates/blocks/error.gotmpl | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 frontend/templates/blocks/error.gotmpl (limited to 'frontend') diff --git a/frontend/static/style.css b/frontend/static/style.css index 8f93079..9dbe198 100644 --- a/frontend/static/style.css +++ b/frontend/static/style.css @@ -2,6 +2,7 @@ --standard-border-radius: 0; --preformatted: var(--code); --min-width: 60rem; + --accent-error: #ffe0e0; } @media (prefers-color-scheme: light) { @@ -109,3 +110,7 @@ section { text-align: center; } } + +.error { + background: var(--accent-error); +} diff --git a/frontend/templates/blocks/error.gotmpl b/frontend/templates/blocks/error.gotmpl new file mode 100644 index 0000000..1352b2e --- /dev/null +++ b/frontend/templates/blocks/error.gotmpl @@ -0,0 +1,6 @@ +{{- define "main" }} +
+ {{ .Code }} + {{ .Message }} +
+{{- end }} -- cgit 1.4.1