[feature/frontend] Add login button to index page which reiterates info about clients (#3377)

* Add login button to index page which reiterates info about clients

* bit of CSS fiddling, move apps from front page to login info

* fix indentation

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
Vivian Lim ⭐ 2025-01-27 05:24:31 -08:00 committed by GitHub
commit 7b7fc528f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 386 additions and 179 deletions

View file

@ -60,7 +60,14 @@ func (m *Module) indexHandler(c *gin.Context) {
Instance: instance,
OGMeta: apiutil.OGBase(instance),
Stylesheets: []string{cssAbout, cssIndex},
Extra: map[string]any{"showStrap": true},
Extra: map[string]any{
// Render "home to x
// users [etc]" strap.
"showStrap": true,
// Show "log in" button
// in top-right corner.
"showLoginButton": true,
},
}
apiutil.TemplateWebPage(c, page)