diff options
-rw-r--r-- | favicon.png | bin | 0 -> 7671 bytes | |||
-rw-r--r-- | index.html.in | 4 | ||||
-rw-r--r-- | main.go | 2 | ||||
-rw-r--r-- | style.css | 12 |
4 files changed, 16 insertions, 2 deletions
diff --git a/favicon.png b/favicon.png Binary files differnew file mode 100644 index 0000000..97c11b6 --- /dev/null +++ b/favicon.png 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 @@ <!doctype html> <html lang="en"> <meta charset="utf-8"> +<link rel="icon" type="image/png" href="favicon.png"> +<link rel="stylesheet" type="text/css" href="style.css"> <title>rudone</title> -<h1>rudone — <span style="color: green">OK</span></h1> +<h1>rudone — <span class="ok">OK</span></h1> <table> {{range .Stats}} <tr><th>{{.Title}}<td>{{.Amount}} visits @@ -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; } |