diff --git a/handlers.go b/handlers.go index 18cf67f..c57e505 100644 --- a/handlers.go +++ b/handlers.go @@ -54,7 +54,10 @@ func loginHandler(c echo.Context) error { } func homeHandler(c echo.Context) error { - return c.Render(http.StatusOK, "home.html", nil) + return c.Render(http.StatusOK, "home.html", + map[string]interface{}{ + "Footer": makeFooter(), + }) } func loginPostHandler(c echo.Context) error { @@ -99,7 +102,10 @@ func logoutHandler(c echo.Context) error { } func downloadHandler(c echo.Context) error { - return c.Render(http.StatusOK, "download.html", nil) + return c.Render(http.StatusOK, "download.html", + map[string]interface{}{ + "Footer": makeFooter(), + }) } func downloadPostHandler(c echo.Context) error { diff --git a/static/style/common.css b/static/style/common.css new file mode 100644 index 0000000..1b1964c --- /dev/null +++ b/static/style/common.css @@ -0,0 +1,10 @@ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 20px; + box-sizing: border-box; +} + +h1 { + text-align: center; +} \ No newline at end of file diff --git a/static/style/video.css b/static/style/video.css index 2f66af2..bcb4c21 100644 --- a/static/style/video.css +++ b/static/style/video.css @@ -1,14 +1,3 @@ -body { - font-family: Arial, sans-serif; - margin: 0; - padding: 20px; - box-sizing: border-box; -} - -h1 { - text-align: center; -} - .video-container { max-width: 600px; margin: 0 auto; diff --git a/templates/download.html b/templates/download.html index 6f7fde1..185ea03 100644 --- a/templates/download.html +++ b/templates/download.html @@ -4,6 +4,8 @@
+ + {{template "footer-css" .}}