From 4c877e71623bd506ae1b6dbc5d91bd3a09843279 Mon Sep 17 00:00:00 2001 From: Daniel Legt Date: Sun, 21 Jan 2024 19:12:40 +0200 Subject: [PATCH] Styling and fixes --- .env.example | 5 +++-- static/style.css | 12 ++++++++++-- templates/index.html | 8 +++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index f164b20..013f50b 100644 --- a/.env.example +++ b/.env.example @@ -7,5 +7,6 @@ MAX_HISTORY_AGE=2592000 # The ip:port to listen to for the application LISTEN=":8080" -# Basic Security -ACCESS_PASSWORD= \ No newline at end of file +# Basic Security, these are required to view the data +IDENTITY_USERNAME=admin +IDENTITY_PASSWORD=admin \ No newline at end of file diff --git a/static/style.css b/static/style.css index fc98ad3..1df6617 100644 --- a/static/style.css +++ b/static/style.css @@ -4,9 +4,10 @@ --bg0: #202327; --bg1: #282d33; --bg2: #31373f; + --bg3: #3e4248; --fg0: #bbc0ca; - --fg0: #bbc0ca; + --fg1: #434c56; --acc: #bbc0ca; } @@ -21,7 +22,6 @@ html, body { padding: 0; width: 100vw; - height: 100vw; overflow: auto; @@ -68,4 +68,12 @@ table thead tr { .graph-image { max-width: 100%; +} + +.disk-graph-entry { + background-color: var(--bg3); + + border-radius: 8px; + + padding: .3rem .5rem; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index b7a79de..a4a9f34 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ Drive Health Dashboard -
+
@@ -57,7 +57,7 @@
-
+
@@ -68,11 +68,13 @@
{{ if len .drives }} {{ range .drives }} -
+
+

{{.Name}}:{{.Serial}} [{{.Size}}]

{{ .Model }} Image
+
{{ end }} {{ else }}

No hard drives found.