diff --git a/main.go b/main.go index 41e2ab7..5027329 100644 --- a/main.go +++ b/main.go @@ -189,6 +189,11 @@ func galleryHandler(w http.ResponseWriter, req *http.Request) { } func indexHandler(w http.ResponseWriter, req *http.Request) { + if req.URL.Path != "/" { + renderTemplate(w, "404", data, true) + return + } + renderTemplate(w, "home", data, true) } diff --git a/src/styles/video.css b/src/styles/video.css index 3d035f5..ab6a76b 100644 --- a/src/styles/video.css +++ b/src/styles/video.css @@ -19,12 +19,13 @@ grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 40px; margin-top: 30px; - width: 100%; + justify-items: center; li { display: flex; - flex-direction: column; align-items: center; + flex-direction: column; + gap: 10px; padding: 10px; border-radius: 10px;