Commit Graph

7 Commits

Author SHA1 Message Date
077cf0185c fix(keycloak): stop browsers from keeping the old login look
Theme files are cached under a path that only changes with Keycloak's
version, for 30 days, so returning players kept the grey stylesheet.
It is renamed to login.css, and theme files are now cached for an hour.
2026-10-17 03:01:25 +03:00
6f88658c60 feat(frontend): simplify the header as in the updated design
The header is now the logo, the page's actions, how to play, settings
and the account. The theme swatches move into a settings menu; the
account shows the player's initials and is on every page through an
AuthUserContext. On phones the home page's actions leave the header for
a row of two buttons. Checked menu items get a check at their end.
2026-10-17 02:59:26 +03:00
537a874374 docs: describe the themed login pages and messages 2026-10-17 02:45:11 +03:00
342a2455fa feat(keycloak): give the login pages the app's three themes
A script in the page's head reads the theme the web app saved in the
mancala_theme cookie, or follows the system's color scheme, and puts the
theme's class on the page. The stylesheet takes the redesign's colors,
font, header, cards, fields and pill buttons; the logo and the board on
the card are masks in the theme's colors.
2026-10-17 02:44:54 +03:00
64149320ac feat(frontend): remember the theme in a cookie for the login pages
Keycloak's pages are on another origin; a mancala_theme cookie reaches
them on localhost's ports and, set for playmancala.app, on its auth
subdomain.
2026-10-17 02:40:07 +03:00
dfdb4b057c feat(frontend): show messages at the top in the theme's colors
Messages appear at the top centre below the header as an inverted chip
of the theme, in the app's font and without icons, and close on a click
instead of sliding in at the bottom right in Notyf's red.
2026-10-17 02:39:41 +03:00
35c2f904a0 docs(theme-polish): add the spec
The login pages in the app's three themes, chosen through a cookie, and
the web app's messages in the theme's colors at the top centre.
2026-10-17 02:28:40 +03:00