Add user menu with profile page, card and row hovers, and family breadcrumb fixes

This commit is contained in:
Ian Gulliver
2026-08-15 22:36:19 -07:00
parent fe3ba87d4f
commit c1a648e2bb
5 changed files with 144 additions and 8 deletions
+2
View File
@@ -31,6 +31,7 @@ func Register(mux *http.ServeMux, cache *Cache) {
for _, section := range sections {
mux.HandleFunc("GET /"+section, a.page)
}
mux.HandleFunc("GET /profile", a.page)
mux.HandleFunc("GET /people/{email}", a.page)
mux.HandleFunc("GET /families/{key}", a.page)
mux.HandleFunc("GET /classrooms/{name}", a.page)
@@ -58,6 +59,7 @@ func (a app) page(w http.ResponseWriter, r *http.Request) {
data := map[string]string{
"UserName": name,
"UserInitial": strings.ToUpper(name[:1]),
"UserEmail": auth.Email(r),
}
if err := t.Execute(w, data); err != nil {
log.Printf("[ERROR] render directory page: %v", err)