GuardRateLeaderboard / src /routes /+error.svelte
Anton Malykhin
feat: integrate bucket-backed leaderboard data
c6afb12
Raw
History Blame Contribute Delete
488 Bytes
<script lang="ts">
import { page } from '$app/state';
import Error404 from '$lib/components/errors/Error404.svelte';
import Error500 from '$lib/components/errors/Error500.svelte';
const status = $derived(page.status);
</script>
<div
class="grid place-items-center"
style="min-height: calc(100svh - var(--app-header-height, 64px));"
>
{#if status === 404}
<Error404 />
{:else}
<Error500 />
{/if}
</div>
<style>
:global(html),
:global(body) {
height: 100vh;
}
</style>