import Image from "next/image"; import Link from "next/link"; import { StatusBadge } from "../ui/StatusBadge"; import { Logo } from "../ui/Logo"; import { Spotlight } from "../ui/Spotlight"; import type { Game } from "@/lib/games"; type Props = { game: Game; /** Heading level, so the card fits the page outline. */ as?: "h2" | "h3"; }; /** * Catalogue card for /games: artwork on one side, text on a solid surface on * the other. The home page uses its own showcase band instead — see * `components/home/FeaturedGame.tsx`. * * Text is deliberately NOT overlaid on the artwork. The Emberwild key art is * light cream and the in-game captures are bright green — cream body text on * top of either one was unreadable, whatever gradient was applied. */ export function GameCard({ game, as: Tag = "h2" }: Props) { const artwork = game.keyArt ?? game.banner; return ( {/* Artwork panel — no text on top of it */}
{artwork ? ( {`${game.title} ) : (
)}
{/* Content panel — solid background, guaranteed contrast */}
{game.title.toUpperCase()}

{game.tagline}

DISCOVER {game.title.toUpperCase()}
); }