diff --git a/internal/handlers/incidents.go b/internal/handlers/incidents.go new file mode 100644 index 0000000..9cbcf5e --- /dev/null +++ b/internal/handlers/incidents.go @@ -0,0 +1,15 @@ +package handlers + +import ( + "net/http" + + "code.tjo.space/mentos1386/zdravko/web/templates/components" + "github.com/labstack/echo/v4" +) + +func (h *BaseHandler) Incidents(c echo.Context) error { + return c.Render(http.StatusOK, "incidents.tmpl", &components.Base{ + NavbarActive: GetPageByTitle(Pages, "Incidents"), + Navbar: Pages, + }) +} diff --git a/pkg/server/server.go b/pkg/server/server.go index 2244743..ff8a80b 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -72,6 +72,7 @@ func (s *Server) Start() error { // Public s.echo.GET("", h.Index) + s.echo.GET("/incidents", h.Incidents) // Settings settings := s.echo.Group("/settings") diff --git a/process-compose.yml b/process-compose.yml index ef1c4f9..9f135f1 100644 --- a/process-compose.yml +++ b/process-compose.yml @@ -6,7 +6,7 @@ processes: availability: restart: "always" temporal: - command: watchexec -r -e go,tmpl,css just run-temporal + command: just run-temporal availability: restart: "always" tailwind: diff --git a/web/static/css/tailwind.css b/web/static/css/tailwind.css index ed621e6..46b0020 100644 --- a/web/static/css/tailwind.css +++ b/web/static/css/tailwind.css @@ -720,6 +720,10 @@ video { min-width: 100%; } +.max-w-screen-lg { + max-width: 1024px; +} + .max-w-screen-md { max-width: 768px; } @@ -1410,8 +1414,8 @@ video { } @media (min-width: 1024px) { - .lg\:grid-cols-\[1fr_100\%\] { - grid-template-columns: 1fr 100%; + .lg\:grid-cols-\[min-content_auto\] { + grid-template-columns: min-content auto; } .lg\:px-40 { diff --git a/web/templates/components/base.tmpl b/web/templates/components/base.tmpl index c456589..5c96c90 100644 --- a/web/templates/components/base.tmpl +++ b/web/templates/components/base.tmpl @@ -27,9 +27,7 @@ {{end}} -
- {{template "main" .}} -
+ {{template "main" .}}