diff --git a/main.go b/main.go index e2e5c59..1659623 100644 --- a/main.go +++ b/main.go @@ -242,7 +242,8 @@ func handleLoginPost(w http.ResponseWriter, r *http.Request) { func getPortal(w http.ResponseWriter, r *http.Request) { _, e := w.Write([]byte(pages.LandingPage)) if e != nil { - writeHTML(w, pages.LoginPage("Username or Password is incorrect.")) + content := fmt.Sprintf(pages.ErrorPage, "Unable to display landing page") + writeHTML(w, content) } } diff --git a/pages/error_page.go b/pages/error_page.go new file mode 100644 index 0000000..9ad779a --- /dev/null +++ b/pages/error_page.go @@ -0,0 +1,153 @@ +package pages + +var ErrorPage = ` + + + + + + + Landing page + + + + + + + + + + +
+ + + + Skip to main content + + + +
+ +
+
+ + + +
+ + + +
+
+
+
+ Maurer Applications +

Faculty Activity Portal

+ +
+
+
+
+ + + + + + + + + +`