aboutsummaryrefslogtreecommitdiffstats
path: root/web/command/html/skeleton.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/command/html/skeleton.go')
-rw-r--r--web/command/html/skeleton.go57
1 files changed, 0 insertions, 57 deletions
diff --git a/web/command/html/skeleton.go b/web/command/html/skeleton.go
deleted file mode 100644
index 9e17475..0000000
--- a/web/command/html/skeleton.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package html
-
-import (
- _ "embed"
-
- . "maragu.dev/gomponents"
- . "maragu.dev/gomponents/components"
- . "maragu.dev/gomponents/html"
-)
-
-//go:embed style.css
-var styles string
-
-func page(title string, children ...Node) Node {
- return HTML5(HTML5Props{
- Title: title,
- Language: "en",
- Head: []Node{
- StyleEl(Raw(styles)),
- },
- Body: []Node{
- Div(Class("container"),
- Group(children),
- footer(),
- ),
- },
- })
-}
-
-func footer() Node {
- return Footer(
- Hr(),
- Text("scrapbook"),
- )
-}
-
-func navButton(label string, dest string) Node {
- return A(
- Href(dest),
- Text(label),
- )
-}
-
-func alert(label string, class string) Node {
- return Div(
- Class("alert "+class),
- Text(label),
- )
-}
-
-func alertError(label string) Node {
- return alert(label, "error")
-}
-
-func alertSuccess(label string) Node {
- return alert(label, "success")
-}