diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 4df255a..ca4a4bc 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -46,7 +46,7 @@ func (a *Auth) Register(mux *http.ServeMux) { func (a *Auth) Wrap(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.Path == "/auth/login" { + if r.URL.Path == "/auth/login" || strings.HasPrefix(r.URL.Path, "/static/") { next.ServeHTTP(w, r) return } diff --git a/main.go b/main.go index ebd0ac6..a54054d 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,7 @@ func main() { authn.Register(mux) directory.Register(mux, cache) mux.Handle("GET /{$}", http.RedirectHandler("/directory/", http.StatusFound)) + mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static")))) port := os.Getenv("PORT") if port == "" { port = "8080" diff --git a/web/login.html b/web/login.html index 22a3916..6095926 100644 --- a/web/login.html +++ b/web/login.html @@ -2,9 +2,12 @@ - + -Helios +Helios Who? + + +
-

Helios

-

Sign in with your school Google account.

+ +

Helios Who?

+
- +
diff --git a/web/static/brand/icon-192.png b/web/static/brand/icon-192.png new file mode 100644 index 0000000..ef40b61 Binary files /dev/null and b/web/static/brand/icon-192.png differ diff --git a/web/static/brand/login-art.jpg b/web/static/brand/login-art.jpg new file mode 100644 index 0000000..991de7f Binary files /dev/null and b/web/static/brand/login-art.jpg differ