From 3ffb39d6c9de8962fef01ff1afab9253500e25e1 Mon Sep 17 00:00:00 2001 From: JurajKubrican Date: Mon, 4 Aug 2025 22:32:02 +0200 Subject: [PATCH] logo --- css/main.css | 32 +++++++++++++++++++++++++------- images/favicon.svg | 10 ++++++++++ src/main.go | 3 +-- views/index.html | 21 +++++++++++++++------ 4 files changed, 51 insertions(+), 15 deletions(-) create mode 100644 images/favicon.svg diff --git a/css/main.css b/css/main.css index f557c06..071db47 100644 --- a/css/main.css +++ b/css/main.css @@ -1,6 +1,6 @@ :root { --background-color: #1e1e1e; - --color: #dcdcdc; + --color: #4a7c59 ; --primary: #569cd6; --secondary: #c586c0; --success: #98c379; @@ -15,25 +15,43 @@ body { font-family: var(--font-family); min-height: 100vh; margin: 0; + color: #4a7c59 ; } body>footer{ bottom: 0; } +.logo{ + margin-top: 16px; + margin-bottom: 32px; +} + a { - color: var(--primary); + color: var(--color); + text-decoration: none; } a:hover { color: var(--secondary); } -nav li { - list-style: none; -} -main{ + + +body { max-width: 960px; margin: 0 auto; - padding: 0 32px; + padding: 0 64px; +} + +@media (max-width: 768px) { + body { + padding: 0 32px; + } +} + +@media (max-width: 480px) { + body { + padding: 0 16px; + } } \ No newline at end of file diff --git a/images/favicon.svg b/images/favicon.svg new file mode 100644 index 0000000..8d921b7 --- /dev/null +++ b/images/favicon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/main.go b/src/main.go index 28a320b..51a68b6 100644 --- a/src/main.go +++ b/src/main.go @@ -73,14 +73,13 @@ func main() { e.Static("/css", "css") e.Static("/js", "js") + e.Static("/images", "images") e.GET("/", func(c echo.Context) error { return c.Render(200, "index", newPage(boxes.GetBoxes())) }) e.GET("/boxes/ws", boxes.HandleBoxesWs) - e.File("/favicon.ico", "images/favicon.ico") - e.GET("/draw", draw.Page) e.GET("/draw/ws", draw.InitWs) diff --git a/views/index.html b/views/index.html index 0200a30..39eff3f 100644 --- a/views/index.html +++ b/views/index.html @@ -6,15 +6,24 @@ Home + +
-