feat: Add new game entries and user play preferences to the game list.

This commit is contained in:
code002lover 2025-12-04 23:27:01 +01:00
parent 0ac633bd34
commit 6d8a46b138
3 changed files with 1322 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export function GameImage({ game }: GameImageProps) {
<div <div
style={{ style={{
width: "100%", width: "100%",
height: "150px", height: "100px",
background: "#ddd", background: "#ddd",
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",

View File

@ -512,7 +512,13 @@ export function GameList() {
} }
return ( return (
<div> <div
style={{
display: "flex",
flexDirection: "column",
height: "100%",
}}
>
<Link <Link
to={`/game/${encodeURIComponent(game.title)}`} to={`/game/${encodeURIComponent(game.title)}`}
key={game.title} key={game.title}
@ -523,7 +529,7 @@ export function GameList() {
display: "flex", display: "flex",
justifyContent: "space-between", justifyContent: "space-between",
alignItems: "center", alignItems: "center",
height: "50%", flex: "1",
borderColor: opinion borderColor: opinion
? opinion.wouldPlay ? opinion.wouldPlay
? "#4caf50" // would play (green) ? "#4caf50" // would play (green)

1314
state.json

File diff suppressed because it is too large Load Diff