Commit Graph

20 Commits

Author SHA1 Message Date
github-actions[bot] 03862fa55e chore(data): sync champions from loldle-data@0258706 2026-04-30 08:12:34 +00:00
github-actions[bot] 3c1e9323b7 chore(data): sync champions from loldle-data@7a9d4f6 2026-04-20 14:31:24 +00:00
github-actions[bot] 819c53885b chore(data): sync champions from loldle-data@b01967f 2026-04-20 14:19:08 +00:00
tiennm99 f77d3207b6 feat: show newest guess on top of the grid (#2) 2026-04-20 18:30:00 +07:00
tiennm99 6c55a39190 update README credits to reference loldle-data repo 2026-04-06 11:04:02 +07:00
github-actions[bot] 1f61c3fddb chore: update champions.json from loldle-data 2026-04-05 05:18:02 +00:00
tiennm99 29452c9cc6 fix: use local date for daily seed instead of UTC
toISOString() returned UTC date, causing the daily game to reset at
UTC midnight rather than local midnight. Users in UTC+ timezones
would see yesterday's completed game until the UTC date rolled over.
2026-04-05 01:14:37 +07:00
tiennm99 be995c4282 feat: clear expired daily game cache from localStorage on app load 2026-04-05 00:55:15 +07:00
tiennm99 4128be36b7 add chrome-dev-tools to gitignore 2026-04-05 00:55:10 +07:00
github-actions[bot] 3bd4a006a5 chore: update champions.json from loldle-data 2026-04-04 17:39:57 +00:00
github-actions[bot] 82b019a1e5 chore: update champions.json from loldle-data 2026-04-04 13:31:22 +00:00
github-actions[bot] a813d03587 chore: update champions.json from loldle-data 2026-04-04 11:41:57 +00:00
tiennm99 3cfacb94f2 fix: derive basePath from repository name in CI workflow 2026-04-04 12:26:56 +07:00
tiennm99 52d6b03c23 fix: make basePath configurable via NEXT_PUBLIC_BASE_PATH env var
Enables platform-agnostic deployment — GitHub Pages sets the env var
in CI, while Vercel/Netlify/local dev default to root path.
2026-04-04 12:24:39 +07:00
tiennm99 8e739f1be2 fix: set basePath for GitHub Pages deployment
Assets and routes now correctly resolve under /loldle subdirectory.
2026-04-04 12:23:16 +07:00
tiennm99 efbecedd91 ci: add GitHub Pages deployment workflow
- Configure Next.js static export (output: "export")
- Add GitHub Actions workflow to build and deploy on push to main
2026-04-04 11:55:29 +07:00
tiennm99 daf4d60bb2 refactor: migrate from vanilla JS to Next.js 16 with Tailwind CSS
- Replace vanilla HTML/CSS/JS with Next.js App Router + React components
- Game logic (champion-data, game-engine, classic-mode) moved to lib/
- UI split into modular components (game-board, champion-search, guess-grid, etc.)
- Add Tailwind CSS v4 with CSS variables for theming
- Immutable state updates, fetch deduplication, next/image for CDN images
- champions.json moved from assets/ to public/
2026-04-04 11:52:59 +07:00
tiennm99 03317b9340 feat: implement LoLdle Classic mode with daily and unlimited play
Vanilla JS web game with modular architecture:
- data-loader: champion data fetching, seeded random selection
- game-engine: mode-agnostic state machine with localStorage persistence
- classic-mode: 7-attribute comparison logic (gender, genre, range, resource, region, lane, year)
- ui-renderer: search autocomplete, colored feedback grid, stats display
- Dark theme responsive UI with Data Dragon CDN champion images
2026-04-04 11:17:47 +07:00
tiennm99 9931213605 feat: add champions data asset 2026-04-04 10:42:57 +07:00
tiennm99 0e51cefbbc Initial commit 2026-04-04 10:41:37 +07:00