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 visning 3 av søkeresultatene, en utstillingsrad med ett spill per rad: stort bilde til venstre og tittel, alle sjangre, rating og Metacritic til høyre. Visningsvalget over lista er samtidig endret fra ord til tall, så det står «visning 1 2 3».
Endringer:
types/game.ts: ny felles typeGameView('list' | 'grid' | 'showcase'), så visningene er definert ett stedGameCard.tsx: støttershowcase. Viser alle sjangre og Metacritic i alle visninger unntatt rutenettGameCard.css: ny seksjon for visning 3: stort bilde, større tittel, store tall for rating/Metacritic, favoritt-knapp nederst. Bildet legger seg over teksten under 640pxGameList.tsx: brukerGameViewApp.tsx: visningsvalget viser «visning 1 2 3». Knappene hararia-pressed,aria-label(«Visning 1: liste» osv.) ogtitle, så det er tydelig hva hver visning erMerknader:
devKI-bruk: Claude ble brukt til å lage skisser av tre alternativer og foreslå kodeendringene. Jeg valgte alternativ, la inn endringene selv og testet i nettleseren.
Related Issue
#55 og #57
Closes #55, closes #57
Changes made
Checklist