mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-11 03:13:42 +00:00
- 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/
15 lines
424 B
React
15 lines
424 B
React
import GameBoard from "@/components/game-board";
|
|
|
|
export default function Home() {
|
|
return (
|
|
<main className="flex flex-col items-center min-h-screen">
|
|
<header className="text-center pt-6 pb-2 w-full max-w-[900px]">
|
|
<h1 className="text-3xl font-bold tracking-wider">
|
|
Lo<span className="text-[var(--color-accent)]">L</span>dle
|
|
</h1>
|
|
</header>
|
|
<GameBoard />
|
|
</main>
|
|
);
|
|
}
|