aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components/GamesSection.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/components/GamesSection.svelte')
-rw-r--r--src/lib/components/GamesSection.svelte11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/components/GamesSection.svelte b/src/lib/components/GamesSection.svelte
new file mode 100644
index 0000000..a2f4f55
--- /dev/null
+++ b/src/lib/components/GamesSection.svelte
@@ -0,0 +1,11 @@
+<script>
+ import GameCard from "./GameCard.svelte";
+ import { getGames, getGameDescription } from "../stores/games.svelte.js";
+</script>
+
+<h1 class="title" id="Game-description">{getGameDescription()}</h1>
+<div id="Game-list" class="grid-container">
+ {#each getGames() as game (game.id)}
+ <GameCard {game} />
+ {/each}
+</div>