Added Games
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="/about">about</a>
|
||||
</nav>
|
||||
<script lang="ts">
|
||||
import games from '$lib/games/lanparty';
|
||||
</script>
|
||||
|
||||
<h1>home</h1>
|
||||
<p>this is the home page.</p>
|
||||
<h1 class="m-4 mb-8 text-7xl font-bold">Jeopardy</h1>
|
||||
|
||||
<div class="flex flex-col space-y-4">
|
||||
{#each games as game}
|
||||
<a
|
||||
class="ms-4 me-4 rounded-xl border-2 p-4 hover:cursor-pointer hover:bg-emerald-200"
|
||||
href="/{game.name.toLocaleLowerCase().replaceAll(' ', '_')}">{game.name}</a
|
||||
>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
1
src/routes/[game]/+page.svelte
Normal file
1
src/routes/[game]/+page.svelte
Normal file
@@ -0,0 +1 @@
|
||||
<h1>This is Game ...</h1>
|
||||
@@ -1,7 +0,0 @@
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="/about">about</a>
|
||||
</nav>
|
||||
|
||||
<h1>about</h1>
|
||||
<p>This is the about section</p>
|
||||
Reference in New Issue
Block a user