Added Games

This commit is contained in:
2025-08-22 22:50:46 +02:00
parent 93637bf780
commit 4ea6836ca8
7 changed files with 949 additions and 15 deletions

View File

@@ -5,7 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
<link rel="stylesheet" href="/shared.css" />
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>

932
src/lib/games/lanparty.ts Normal file
View File

@@ -0,0 +1,932 @@
export default [
{
name: 'LAN Party',
walls: [
{
name: 'Wall 1',
categories: [
{
name: 'Category 1',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 2',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 3',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 4',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 5',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
}
]
},
{
name: 'Wall 2',
categories: [
{
name: 'Category 1',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 2',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 3',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 4',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 5',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
}
]
}
]
},
{
name: 'LAN Party 2',
walls: [
{
name: 'Wall 1',
categories: [
{
name: 'Category 1',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 2',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 3',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 4',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 5',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
}
]
},
{
name: 'Wall 2',
categories: [
{
name: 'Category 1',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 2',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 3',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 4',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
},
{
name: 'Category 5',
questions: [
{
points: 100,
type: 'SIMPLE',
data: {
question: 'Question 1?',
answer: 'Answer 1'
}
},
{
points: 200,
type: 'SIMPLE',
data: {
question: 'Question 2?',
answer: 'Answer 2'
}
},
{
points: 300,
type: 'SIMPLE',
data: {
question: 'Question 3?',
answer: 'Answer 3'
}
},
{
points: 400,
type: 'SIMPLE',
data: {
question: 'Question 4?',
answer: 'Answer 4'
}
},
{
points: 500,
type: 'SIMPLE',
data: {
question: 'Question 5?',
answer: 'Answer 5'
}
}
]
}
]
}
]
}
];

View File

@@ -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>

View File

@@ -0,0 +1 @@
<h1>This is Game ...</h1>

View File

@@ -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>