dev #3
5
main.go
5
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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue