diff --git a/cmd/app/main.go b/cmd/app/main.go index 3961eee..c936b08 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -131,13 +131,18 @@ func main() { if err != nil { logger.Fatalf("could not initialize index handler: %v", err) } - callbackHandler := handlers.NewCallbackHandler(ctx) + callbackHandler := handlers.NewCallbackHandler(ctx, logger) afterLogoutHandler := handlers.NewAfterLogoutHandler(logger) + staticFiles := http.FileServer(http.Dir("static")) router := http.NewServeMux() router.Handle("/", authMiddleware(indexHandler)) router.Handle("/callback", callbackHandler) router.Handle("/after-logout", afterLogoutHandler) + router.Handle("/health", commonHandlers.NewHealthHandler()) + router.Handle("/images/", staticFiles) + router.Handle("/css/", staticFiles) + router.Handle("/js/", staticFiles) nextRequestId := func() string { return fmt.Sprintf("%d", time.Now().UnixNano()) diff --git a/cmd/idp/main.go b/cmd/idp/main.go index 27d67d1..9ec5aa0 100644 --- a/cmd/idp/main.go +++ b/cmd/idp/main.go @@ -105,6 +105,7 @@ func main() { logoutHandler := handlers.NewLogoutHandler(handlerContext, logger) logoutSuccessHandler := handlers.NewLogoutSuccessHandler() errorHandler := handlers.NewErrorHandler() + staticFiles := http.FileServer(http.Dir("static")) router := http.NewServeMux() router.Handle("/login", loginHandler) @@ -113,6 +114,9 @@ func main() { router.Handle("/error", errorHandler) router.Handle("/logout-successful", logoutSuccessHandler) router.Handle("/health", commonHandlers.NewHealthHandler()) + router.Handle("/images/", staticFiles) + router.Handle("/css/", staticFiles) + router.Handle("/js/", staticFiles) if err != nil { logger.Fatal(err) diff --git a/static/images/CAcert-favicon-src.svg b/static/images/CAcert-favicon-src.svg new file mode 100644 index 0000000..ab1fe9e --- /dev/null +++ b/static/images/CAcert-favicon-src.svg @@ -0,0 +1,2 @@ + + diff --git a/static/images/CAcert-logo.svg b/static/images/CAcert-logo.svg new file mode 100644 index 0000000..eb1957d --- /dev/null +++ b/static/images/CAcert-logo.svg @@ -0,0 +1,2 @@ + + diff --git a/static/images/favicon-120.png b/static/images/favicon-120.png new file mode 100644 index 0000000..e2af553 Binary files /dev/null and b/static/images/favicon-120.png differ diff --git a/static/images/favicon-128.png b/static/images/favicon-128.png new file mode 100644 index 0000000..b8bf4d2 Binary files /dev/null and b/static/images/favicon-128.png differ diff --git a/static/images/favicon-152.png b/static/images/favicon-152.png new file mode 100644 index 0000000..2e9135e Binary files /dev/null and b/static/images/favicon-152.png differ diff --git a/static/images/favicon-167.png b/static/images/favicon-167.png new file mode 100644 index 0000000..4ea35b5 Binary files /dev/null and b/static/images/favicon-167.png differ diff --git a/static/images/favicon-180.png b/static/images/favicon-180.png new file mode 100644 index 0000000..af49e75 Binary files /dev/null and b/static/images/favicon-180.png differ diff --git a/static/images/favicon-192.png b/static/images/favicon-192.png new file mode 100644 index 0000000..8e957e8 Binary files /dev/null and b/static/images/favicon-192.png differ diff --git a/static/images/favicon-196.png b/static/images/favicon-196.png new file mode 100644 index 0000000..3842770 Binary files /dev/null and b/static/images/favicon-196.png differ diff --git a/static/images/favicon-228.png b/static/images/favicon-228.png new file mode 100644 index 0000000..8708426 Binary files /dev/null and b/static/images/favicon-228.png differ diff --git a/static/images/favicon-32.png b/static/images/favicon-32.png new file mode 100644 index 0000000..58bc7bd Binary files /dev/null and b/static/images/favicon-32.png differ diff --git a/static/images/favicon-57.png b/static/images/favicon-57.png new file mode 100644 index 0000000..f57fb15 Binary files /dev/null and b/static/images/favicon-57.png differ diff --git a/static/images/favicon-76.png b/static/images/favicon-76.png new file mode 100644 index 0000000..b314394 Binary files /dev/null and b/static/images/favicon-76.png differ diff --git a/static/images/favicon-96.png b/static/images/favicon-96.png new file mode 100644 index 0000000..0e8584e Binary files /dev/null and b/static/images/favicon-96.png differ diff --git a/templates/app/base.gohtml b/templates/app/base.gohtml index 545279a..34f6805 100644 --- a/templates/app/base.gohtml +++ b/templates/app/base.gohtml @@ -1,7 +1,25 @@ {{ define "base" }} - {{ .Title }} + + {{ .Title }} + + + + + + + + + + + + + + + + + {{ template "content" . }} diff --git a/templates/idp/base.gohtml b/templates/idp/base.gohtml index 6a2c32e..f936128 100644 --- a/templates/idp/base.gohtml +++ b/templates/idp/base.gohtml @@ -1,7 +1,25 @@ {{ define "base" }} - {{ .Title }} + + {{ .Title }} + + + + + + + + + + + + + + + + +

{{ .Title }}

{{ template "content" . }}