Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit 9bed6c3

Browse files
committed
add not found
1 parent 81c59de commit 9bed6c3

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/routes/g/[id]/+page.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<script lang="ts">
22
import Play from '$lib/components/play.svelte';
33
import { page } from '$app/state';
4+
import { preferencesStore } from '$lib/stores.js';
5+
import { Button } from '$lib/components/ui/button/index.js';
46
</script>
57

6-
{#key page.params.id}
7-
<Play id={page.params.id} />
8-
{/key}
8+
{#if $preferencesStore.experimentalFeatures}
9+
{#key page.params.id}
10+
<Play id={page.params.id} />
11+
{/key}
12+
{:else}
13+
<div class="flex h-full flex-col items-center justify-center gap-3">
14+
<span class="text-6xl">404</span>
15+
<span class="text-3xl">Not Found</span>
16+
<Button variant="outline" href="/">Go home</Button>
17+
</div>
18+
{/if}

0 commit comments

Comments
 (0)