aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-10-02 17:26:41 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-10-02 17:27:46 -0400
commit50df0f7b61462a6bfad9e74f7c7917c6b19d4b92 (patch)
tree50f478d0cacfcb57acdc8edd0f357db304b249ae /templates
parente8d9040688925304edad469d92518da84e1b8d96 (diff)
Add first pass at dashboard
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html12
-rw-r--r--templates/dashboard/dashboard.html7
-rw-r--r--templates/dashboard/server_logs.html0
-rw-r--r--templates/dashboard/server_status.html15
4 files changed, 34 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..768d7eb
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang=en>
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ block "head" . }}<title>Nonsense Time Dashboard</title>{{ end }}
+ <link rel="stylesheet" href="/static/styles.css">
+</head>
+<body>
+ {{ block "body" . }}{{ end }}
+</body>
+</html>
diff --git a/templates/dashboard/dashboard.html b/templates/dashboard/dashboard.html
new file mode 100644
index 0000000..29a852e
--- /dev/null
+++ b/templates/dashboard/dashboard.html
@@ -0,0 +1,7 @@
+{{ define "body" }}
+<h1>Dashboard Home</h1>
+<p>Welcome to the Dashboard! It is still under construction so please be patient :) </p>
+<main>
+ {{template "server_status" . }}
+</main>
+{{ end }}
diff --git a/templates/dashboard/server_logs.html b/templates/dashboard/server_logs.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/templates/dashboard/server_logs.html
diff --git a/templates/dashboard/server_status.html b/templates/dashboard/server_status.html
new file mode 100644
index 0000000..8019659
--- /dev/null
+++ b/templates/dashboard/server_status.html
@@ -0,0 +1,15 @@
+{{define "server_status"}}
+<section class="server-status">
+ <h2>Server Status</h2>
+ <div id=uptime>
+ <dl>
+ <dt>Url</dt>
+ <dd>{{ .ServerStatus.Site }}</dd>
+ <dt>Online</dt>
+ <dd>{{ .ServerStatus.Online }}</dd>
+ <dt>Timestamp</dt>
+ <dd>{{ .ServerStatus.Timestamp }}</dd>
+ </dl>
+ </div>
+</section>
+{{end}}