404 page init

This commit is contained in:
Courier
2025-11-22 23:11:48 +04:00
parent 7445966a61
commit 1c2086ac42
2 changed files with 8 additions and 12 deletions
+7 -10
View File
@@ -1,23 +1,20 @@
<script>
import AppBar from "$lib/ui/appbar/AppBar.svelte"
import Button from "$lib/ui/Button.svelte"
import AppBar from "$lib/ui/appbar/AppBar.svelte";
import Button from "$lib/ui/Button.svelte";
import { getI18n } from "$lib/i18n";
import { goto } from '$app/navigation';
const t = getI18n().errorPage;
</script>
<svelte:head>
<title>404 — Page Not Found</title>
</svelte:head>
<main>
<AppBar title={t.title} >
</AppBar>
<AppBar title={t.title} />
<div class="p-content error-page__content">
<p class="error-page__text" >{@html t.message}</p>
<div class="error-page__button-container">
<Button class="error-page__button">{t.return}</Button>
<a href="/">
<Button class="error-page__button">{t.return}</Button>
</a>
</div>
</div>
</main>
+1 -2
View File
@@ -59,5 +59,4 @@ body
.error-page__button-container
position: absolute;
bottom: 16px;
width: calc(100% - 32px)
max-width: 450px;
width: calc(100% - 32px)