summaryrefslogtreecommitdiff
path: root/template/templates
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:23:43 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:23:57 -0800
commitb19321bab542de35564127dc77781af44252bcb9 (patch)
tree37d12f7867124e8440ee46ae9f903b242e8d62af /template/templates
parent321cd40fba0956e3aa697f9e7c7006159a032f58 (diff)
downloadoldinfra-b19321bab542de35564127dc77781af44252bcb9.tar.gz
oldinfra-b19321bab542de35564127dc77781af44252bcb9.zip
create a base template :) and use it for a new service
Diffstat (limited to 'template/templates')
-rw-r--r--template/templates/404.html7
-rw-r--r--template/templates/base.html16
-rw-r--r--template/templates/base_empty.html3
-rw-r--r--template/templates/hello.html3
4 files changed, 29 insertions, 0 deletions
diff --git a/template/templates/404.html b/template/templates/404.html
new file mode 100644
index 0000000..5210bfb
--- /dev/null
+++ b/template/templates/404.html
@@ -0,0 +1,7 @@
+{{ define "content" }}
+<h1>page not found</h1>
+<p><em>but hey, at least you found our witty 404 page. that's something, right?</em></p>
+
+<p><a href="/">go back home</a></p>
+
+{{ end }}
diff --git a/template/templates/base.html b/template/templates/base.html
new file mode 100644
index 0000000..30a9c53
--- /dev/null
+++ b/template/templates/base.html
@@ -0,0 +1,16 @@
+{{ define "base" }}
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{{ service_title }}</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <link rel="stylesheet" type="text/css" href="/static/css/styles.css">
+ </head>
+ <body data-theme="DARK">
+ <div id="content" class="container">
+ {{ template "content" . }}
+ </div>
+ </body>
+</html>
+{{ end }}
diff --git a/template/templates/base_empty.html b/template/templates/base_empty.html
new file mode 100644
index 0000000..6191ab9
--- /dev/null
+++ b/template/templates/base_empty.html
@@ -0,0 +1,3 @@
+{{ define "base" }}
+ {{ template "content" . }}
+{{ end }} \ No newline at end of file
diff --git a/template/templates/hello.html b/template/templates/hello.html
new file mode 100644
index 0000000..d2311f5
--- /dev/null
+++ b/template/templates/hello.html
@@ -0,0 +1,3 @@
+{{ define "content" }}
+hello from {{ .Service }}!
+{{ end }}