Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Legger til
GameCard, komponenten som viser ett spill i resultatlista, basert på skissen idocuments/game-showcase.png.types/game.ts:GameSummary-type med feltene kortet trenger (speilergames-tabellen + sjangernavn). Holdes smal så lista ikke henter mer data enn den viser.GameCard.tsx: viser bilde, navn, år, sjangre (maks 2), rating og Metacritic, og en favorittknapp. Tar inn data som props, så den kan kobles på GraphQL senere uten endringer.GameCard.css: enkel radlayout med skillelinje, uten bokser, avrundede hjørner eller skygger. Stables vertikalt på mobil.Tilgjengelighet og bærekraft:
aria-pressedog har et uniktaria-labelper spillloading="lazy"og fast størrelse, så siden ikke hopper og det spares data i lange listerIkke med ennå:
/game/:ider en plassholder til vi har valgt rutingApp.tsxennåKI-bruk: Claude (Anthropic) ble brukt til å bistå med og foreslå komponentstruktur og CSS. Koden er gjennomgått og lagt inn manuelt, og layouten er justert etter våre egne designvalg.
Changes made
Checklist