aboutsummaryrefslogtreecommitdiffstats
path: root/web/command/html/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/command/html/error.go')
-rw-r--r--web/command/html/error.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/command/html/error.go b/web/command/html/error.go
new file mode 100644
index 0000000..b39cc19
--- /dev/null
+++ b/web/command/html/error.go
@@ -0,0 +1,13 @@
+package html
+
+import (
+ . "maragu.dev/gomponents"
+)
+
+func ErrorPage(err string) Node {
+ return page("Error",
+ alertError(err),
+
+ navButton("Home", "/"),
+ )
+}