{game.title}
+ +Category: {game.category}
+ ++ {game.description} +
+ +diff --git a/app/globals.css b/app/globals.css new file mode 100644 index 0000000..089abbf --- /dev/null +++ b/app/globals.css @@ -0,0 +1,82 @@ +@import "tailwindcss"; + +@theme inline { + --color-background: #0a0a14; + --color-surface: #12121f; + --color-surface-light: #1e1e30; + --color-foreground: #ffffff; + --color-foreground-muted: #a0a0b8; + --color-primary: #3b82f6; + --color-primary-hover: #2563eb; + --color-accent: #8b5cf6; + --color-border: #2a2a40; + --color-border-hover: #3b3b55; + --radius-sm: 0.375rem; + --radius-md: 0.5rem; + --radius-lg: 0.75rem; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html { + background-color: var(--color-background); + color-scheme: dark; +} + +body { + color: var(--color-foreground); + background-color: var(--color-background); + font-family: + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + sans-serif; + line-height: 1.6; +} + +/* Typography */ +h1, +h2, +h3, +h4, +h5, +h6 { + color: var(--color-foreground); + font-weight: 700; + line-height: 1.2; +} + +h1 { + font-size: 2.5rem; + font-weight: 800; + letter-spacing: -0.025em; +} + +h2 { + font-size: 1.25rem; + font-weight: 600; +} + +p { + color: var(--color-foreground-muted); + line-height: 1.6; +} + +/* Transitions */ +button, +a { + transition: all 0.2s ease-in-out; +} + +/* Focus styles for accessibility */ +button:focus-visible, +a:focus-visible { + outline: 2px solid var(--color-primary); + outline-offset: 2px; +} diff --git a/app/layout.tsx b/app/layout.tsx new file mode 100644 index 0000000..b2dda05 --- /dev/null +++ b/app/layout.tsx @@ -0,0 +1,21 @@ +import type { Metadata } from "next"; +import "./globals.css"; + +export const metadata: Metadata = { + title: "Games", + description: "A collection of games", +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + +
+ {children} + + + ); +} diff --git a/app/page.tsx b/app/page.tsx new file mode 100644 index 0000000..fadf4f5 --- /dev/null +++ b/app/page.tsx @@ -0,0 +1,92 @@ +import GameCard from "@/components/GameCard"; + +const games = [ + { + id: 1, + title: "Chess Master", + description: "Play chess against AI or friends online in real time.", + image: "/placeholder.svg?height=200&width=300", + category: "Strategy", + }, + { + id: 2, + title: "Quick Quiz", + description: "Test your knowledge with fun trivia questions.", + image: "/placeholder.svg?height=200&width=300", + category: "Trivia", + }, + { + id: 3, + title: "Memory Match", + description: "Challenge your memory with this classic card-matching game.", + image: "/placeholder.svg?height=200&width=300", + category: "Puzzle", + }, + { + id: 4, + title: "Snake Game", + description: "Eat food, grow longer, and avoid running into yourself.", + image: "/placeholder.svg?height=200&width=300", + category: "Arcade", + }, + { + id: 5, + title: "Word Builder", + description: "Create as many words as you can from scrambled letters.", + image: "/placeholder.svg?height=200&width=300", + category: "Word", + }, + { + id: 6, + title: "Puzzle Solver", + description: "Solve challenging jigsaw puzzles of increasing difficulty.", + image: "/placeholder.svg?height=200&width=300", + category: "Puzzle", + }, +]; + +export default function Home() { + return ( + <> + + Skip to game list + + ++ Discover our selection of fun and challenging games +
+Category: {game.category}
+ ++ {game.description} +
+ +