diff --git a/components/LeftNav.templ b/components/LeftNav.templ index a9acf3a2733567026d279f02cecc1e4886f69f48..142de825f5fa25c128dc3992b50ce61c8dda291e 100644 --- a/components/LeftNav.templ +++ b/components/LeftNav.templ @@ -10,7 +10,7 @@ templ StageElement(stage *services.Stage, competition *services.Competition) { // TODO: Refactor // TODO: Make it as high as the user (sticky) <img - src="/img/seedings.png" + src="/static/img/seedings.png" class="stage-logo" id="seedings" hx-get={ "/competition/" + strconv.Itoa(int(competition.CompetitionID)) + "/stage/" + strconv.Itoa(int((*stage).GetID())) } @@ -20,7 +20,7 @@ templ StageElement(stage *services.Stage, competition *services.Competition) { /> } else if (*stage).GetKind() == services.POOLS { <img - src="/img/pool.png" + src="/static/img/pool.png" class="stage-logo" hx-get={ "/competition/" + strconv.Itoa(int(competition.CompetitionID)) + "/stage/" + strconv.Itoa(int((*stage).GetID())) } hx-target="#stage-content" @@ -29,7 +29,7 @@ templ StageElement(stage *services.Stage, competition *services.Competition) { /> } else if (*stage).GetKind() == services.DIRECTELIMINATION { <img - src="/img/table.png" + src="/static/img/table.png" class="stage-logo" hx-get={ "/competition/" + strconv.Itoa(int(competition.CompetitionID)) + "/stage/" + strconv.Itoa(int((*stage).GetID())) } hx-target="#stage-content" @@ -38,7 +38,7 @@ templ StageElement(stage *services.Stage, competition *services.Competition) { /> } else { <img - src="/img/ranking.png" + src="/static/img/ranking.png" class="stage-logo" hx-get={ "/competition/" + strconv.Itoa(int(competition.CompetitionID)) + "/stage/" + strconv.Itoa(int((*stage).GetID())) } hx-target="#stage-content" diff --git a/components/Page.templ b/components/Page.templ index 4c169ec036c880a630dee581f99ac86248d9e77e..a19766503d268209a8e7e14251ef3c542c3948c4 100644 --- a/components/Page.templ +++ b/components/Page.templ @@ -7,10 +7,9 @@ templ Head() { <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>AstroProject</title> - <link rel="stylesheet" href="/css/main.css"/> - <link rel="stylesheet" href="/css/nav.css"/> + <link rel="stylesheet" href="/static/css/main.css"/> + <link rel="stylesheet" href="/static/css/nav.css"/> <script src="https://unpkg.com/htmx.org"></script> - // <script src="https://cdn.tailwindcss.com"></script> </head> } diff --git a/go.mod b/go.mod index d3f090cf9d88761852b2023e6d6505c3e0d86f7e..721195bbc79cdc156e505c1c0fffa32ba423f183 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/a-h/templ v0.2.747 github.com/go-chi/chi/v5 v5.1.0 - github.com/go-chi/httplog/v2 v2.1.0 + github.com/go-chi/httplog/v2 v2.1.1 github.com/go-faker/faker/v4 v4.4.2 github.com/mavolin/go-htmx v1.0.0 github.com/wailsapp/wails/v3 v3.0.0-alpha.0 diff --git a/go.sum b/go.sum index a9ecefc99c57df6a9b119bbee80c8ba8a9a16bdd..daee4172abd29a6452aa1bde615b37c743aea3ab 100644 --- a/go.sum +++ b/go.sum @@ -32,8 +32,8 @@ github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= -github.com/go-chi/httplog/v2 v2.1.0 h1:xuAM6trUdugFaq3hZhxe1e7D/Osh+7+kVbvVsAa66nM= -github.com/go-chi/httplog/v2 v2.1.0/go.mod h1:/XXdxicJsp4BA5fapgIC3VuTD+z0Z/VzukoB3VDc1YE= +github.com/go-chi/httplog/v2 v2.1.1 h1:ojojiu4PIaoeJ/qAO4GWUxJqvYUTobeo7zmuHQJAxRk= +github.com/go-chi/httplog/v2 v2.1.1/go.mod h1:/XXdxicJsp4BA5fapgIC3VuTD+z0Z/VzukoB3VDc1YE= github.com/go-faker/faker/v4 v4.4.2 h1:96WeU9QKEqRUVYdjHquY2/5bAqmVM0IfGKHV5mbfqmQ= github.com/go-faker/faker/v4 v4.4.2/go.mod h1:4K3v4AbKXYNHMQNaREMc9/kRB9j5JJzpFo6KHRvrcIw= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=