From 0f857271eac9995b90e16f58181d29a0bd6a47b6 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 9 Jan 2024 23:25:59 +0100 Subject: Added simple fancy style to the dashboard (maybe opinionated) --- favicon.png | Bin 0 -> 7671 bytes index.html.in | 4 +++- main.go | 2 +- style.css | 12 ++++++++++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 favicon.png create mode 100644 style.css diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..97c11b6 Binary files /dev/null and b/favicon.png differ diff --git a/index.html.in b/index.html.in index 3d813ad..9c1fbc3 100644 --- a/index.html.in +++ b/index.html.in @@ -1,8 +1,10 @@ + + rudone -

rudone — OK

+

rudone — OK

{{range .Stats}}
{{.Title}}{{.Amount}} visits diff --git a/main.go b/main.go index f5129ce..6b86223 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/mux" ) -//go:embed *.js *.in robots.txt +//go:embed *.js *.html.in *.css *.png robots.txt var content embed.FS func handleEntryOptions(w http.ResponseWriter, r *http.Request) { diff --git a/style.css b/style.css new file mode 100644 index 0000000..cc7b87a --- /dev/null +++ b/style.css @@ -0,0 +1,12 @@ +body { + padding: 1em; + margin: 0 auto; + width: max-content; + font-family: sans-serif; +} + + +.ok { color: green; } +table { width: 100%; } +th { text-align: left; } +td { text-align: right; } -- cgit v1.1