From 95f95783383a58af5250bcb66155a04971385b75 Mon Sep 17 00:00:00 2001 From: gammelalf Date: Wed, 28 Dec 2022 13:39:48 +0100 Subject: Added some css and svgs --- main.go | 1 + web/client.html | 81 ++++++++++++++++++++++++++------------------------- web/static/add.svg | 9 ++++++ web/static/client.css | 60 ++++++++++++++++++++++++++++++++++++++ web/static/pause.svg | 19 ++++++++++++ web/static/play.svg | 20 +++++++++++++ web/static/stop.svg | 17 +++++++++++ 7 files changed, 168 insertions(+), 39 deletions(-) create mode 100644 web/static/add.svg create mode 100644 web/static/client.css create mode 100644 web/static/pause.svg create mode 100644 web/static/play.svg create mode 100644 web/static/stop.svg diff --git a/main.go b/main.go index db78154..b68d7ae 100644 --- a/main.go +++ b/main.go @@ -209,6 +209,7 @@ func setupRoutes() { http.HandleFunc("/add", addHandler) http.HandleFunc("/playpause", playPauseHandler) http.HandleFunc("/ws", wsEndpoint) + http.Handle("/static/", http.FileServer(http.Dir("./web"))) } func main() { diff --git a/web/client.html b/web/client.html index 34a5b54..2fbc4fd 100644 --- a/web/client.html +++ b/web/client.html @@ -5,9 +5,6 @@ WRMS - - + + -

Add your song

-
-
- - -
-
- -