From 14213d3ee2dad69793544a5533d91cbb0297425c Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 11 Jul 2022 12:07:05 +0200 Subject: [PATCH] Dashboard settings (WIP) Signed-off-by: Romein van Buren --- gui/dashboard/app.css | 30 +++++++++++++++ gui/dashboard/app.svelte | 21 ++-------- gui/dashboard/index.js | 9 +++-- gui/dashboard/modal.svelte | 72 +++++++++++++++++++++++++++++++++++ gui/dashboard/settings.svelte | 42 ++++++++++++++++++++ index.js | 5 ++- 6 files changed, 156 insertions(+), 23 deletions(-) create mode 100644 gui/dashboard/app.css create mode 100644 gui/dashboard/modal.svelte create mode 100644 gui/dashboard/settings.svelte diff --git a/gui/dashboard/app.css b/gui/dashboard/app.css new file mode 100644 index 0000000..6c76784 --- /dev/null +++ b/gui/dashboard/app.css @@ -0,0 +1,30 @@ +html, body { + --body-bg: #000; + --tile-bg: #181818; + --red: red; + --green: green; + --radius: 10px; + --cols: 4; + --rows: 3; + + background-color: var(--body-bg); + color: #fff; + padding: 0; + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; +} + +.theme-light { + --body-bg: #fff; + --tile-bg: #dedede; +} + +button { + transition: linear 0.4s; + cursor: pointer; + background: none; + border: none; + appearance: none; + padding: 1rem; + color: inherit; +} diff --git a/gui/dashboard/app.svelte b/gui/dashboard/app.svelte index 2e53fd2..036901c 100644 --- a/gui/dashboard/app.svelte +++ b/gui/dashboard/app.svelte @@ -1,7 +1,9 @@ + +
@@ -72,21 +74,6 @@
diff --git a/gui/dashboard/settings.svelte b/gui/dashboard/settings.svelte new file mode 100644 index 0000000..9052447 --- /dev/null +++ b/gui/dashboard/settings.svelte @@ -0,0 +1,42 @@ + + +{#if !open} + +{/if} + + + hi + + + diff --git a/index.js b/index.js index 50b71b6..717c22d 100644 --- a/index.js +++ b/index.js @@ -558,9 +558,10 @@ module.exports = { Web service status dashboard - - + + + `); res.send(dashboardHtml);