feat: Add text shadow to game titles to visually indicate user opinion.
This commit is contained in:
parent
e63f1a45cf
commit
648ca81614
@ -503,7 +503,17 @@ export function GameList() {
|
|||||||
: "#191f2e", // no opinion (bg-2)
|
: "#191f2e", // no opinion (bg-2)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<strong>{game.title}</strong>
|
<strong
|
||||||
|
style={{
|
||||||
|
textShadow: opinion
|
||||||
|
? opinion.wouldPlay
|
||||||
|
? "0 0 10px #4caf50" // would play (green)
|
||||||
|
: "0 0 10px #f44336" // would not play (red)
|
||||||
|
: "none", // no opinion (bg-2)
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{game.title}
|
||||||
|
</strong>
|
||||||
<GameImage game={game.title} />
|
<GameImage game={game.title} />
|
||||||
</Link>
|
</Link>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user