From bbe48faab002881ab8cdfa2dde32141dac7eff96 Mon Sep 17 00:00:00 2001 From: Keyemail Date: Fri, 26 Jul 2024 06:04:55 -0700 Subject: [PATCH] Made minor changes; added 404 --- main.go | 5 +++++ src/styles/video.css | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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;