feat: Add error page

This commit is contained in:
Leni Aniva 2024-09-19 09:40:36 -07:00
parent 350e96bb07
commit 02f82467e6
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 17 additions and 1 deletions

15
src/routes/+error.svelte Normal file
View File

@ -0,0 +1,15 @@
<script>
import { page } from '$app/stores'
</script>
<div class="error">
<h1>{$page.status}: {$page.error?.message}</h1>
</div>
<style>
.error {
height: 50vh;
display: grid;
place-content: center;
}
</style>

View File

@ -14,12 +14,13 @@
</div> </div>
<div id="content"> <div id="content">
<slot /> <slot />
<Footer />
</div> </div>
</div> </div>
{:else} {:else}
<slot /> <slot />
{/if}
<Footer /> <Footer />
{/if}
<style> <style>
:global(.navbar-link) { :global(.navbar-link) {