Skip to content

Commit 7a2c579

Browse files
committed
feat: use placeholder for game header image
Signed-off-by: Matt Gleich <git@mattglei.ch>
1 parent cc0d4de commit 7a2c579

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/lib/index/sections/games/games-section.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333
<Card padding="0">
3434
<a href={game.url} target="_blank" class="game" title={`View "${game.name}" on Steam`}>
3535
<div class="game-picture">
36-
<Image src={game.header_url} alt={game.name} width={460} height={215} />
36+
<Image
37+
src={game.header_url}
38+
alt={game.name}
39+
width={460}
40+
height={215}
41+
placeholder={game.header_blur_hash}
42+
/>
3743
</div>
3844
<div class="stats">
3945
<Stats

src/lib/lcp/steam.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface Game {
44
url: string;
55
icon_url: string;
66
header_url: string;
7+
header_blur_hash: string;
78
library_url: string | undefined;
89
playtime_forever: number;
910
achievement_progress: number | undefined;

0 commit comments

Comments
 (0)