feat: expand to 1014 words, add title-case display and 2 new themes

- Move word data from hardcoded seed.py to data/words.json
- Expand from 210 words across 7 categories to 1014 words across 14
  categories (animals, food, colors, sports, space, nature, music,
  science, countries, occupations, ocean, weather, mythology, technology)
- Word list sidebar now shows title case (Tiger) while grid stays
  uppercase; text input remains case-insensitive
- Add Ocean theme (light, blue accents) and Forest theme (dark, amber
  accents on deep green)
- Replace hardcoded rgba values with --coral-bg CSS variable so
  selection highlighting adapts per theme

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathew Sir Guest the best
2026-05-07 02:43:43 -06:00
co-authored by Claude Opus 4.6
parent cd1dc9200b
commit 9319f08875
13 changed files with 728 additions and 236 deletions
+4
View File
@@ -11,11 +11,13 @@ from handlers.main import MainHandler
from handlers.game import GameHandler
from handlers.howtoplay import HowToPlayHandler
from handlers.about import AboutHandler
from handlers.scoreboard import ScoreboardPageHandler
from handlers.api import (
CategoriesHandler,
NewGameHandler,
GameStateHandler,
GuessHandler,
ScoreboardAPIHandler,
)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -38,7 +40,9 @@ def make_app(session_factory=None, debug=False):
(r"/game", GameHandler),
(r"/howtoplay", HowToPlayHandler),
(r"/about", AboutHandler),
(r"/scoreboard", ScoreboardPageHandler),
(r"/api/categories", CategoriesHandler),
(r"/api/scoreboard", ScoreboardAPIHandler),
(r"/api/game/new", NewGameHandler),
(r"/api/game/([^/]+)", GameStateHandler),
(r"/api/game/([^/]+)/guess", GuessHandler),