38 create generic error page #42
2 changed files with 22 additions and 24 deletions
|
|
@ -20,5 +20,6 @@
|
||||||
"sms_prompt": "Send a Message",
|
"sms_prompt": "Send a Message",
|
||||||
"sms_label_phone": "Phone Number",
|
"sms_label_phone": "Phone Number",
|
||||||
"sms_label_message": "Message",
|
"sms_label_message": "Message",
|
||||||
"sms_button_submit": "Send Message"
|
"sms_button_submit": "Send Message",
|
||||||
|
"error_page_go_home": "Go Home"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,20 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/state';
|
import { goto } from '$app/navigation';
|
||||||
</script>
|
import { page } from '$app/state';
|
||||||
|
import { messages } from '$lib/i18n';
|
||||||
<main class="flex h-screen w-full flex-col items-center justify-center bg-[#1d222a]">
|
</script>
|
||||||
<h1 class="text-9xl font-extrabold tracking-widest text-white">
|
|
||||||
{page.status}
|
<main class="flex h-full w-full flex-col items-center justify-center gap-8">
|
||||||
</h1>
|
<div class="flex items-center gap-2">
|
||||||
<h1 class="rounded bg-[#FF6A3D] px-2 text-2xl font-bold text-black">
|
<h1 class="text-5xl font-bold tracking-widest text-white">
|
||||||
{page.error?.message}
|
{page.status}
|
||||||
</h1>
|
</h1>
|
||||||
|
<div class="divider divider-horizontal"></div>
|
||||||
<button class="mt-5">
|
<h1 class="text-2xl font-bold">
|
||||||
<a
|
{page.error?.message}
|
||||||
class="group relative inline-block text-sm font-medium text-[#FF6A3D] focus:outline-none focus:ring active:text-orange-500"
|
</h1>
|
||||||
href="/"
|
</div>
|
||||||
>
|
<button onclick={() => goto('/')} class="btn btn-outline btn-neutral btn-wide"
|
||||||
<span class="relative block border border-current bg-[#1d222a] px-8 py-3">
|
>{messages.error_page_go_home()}</button
|
||||||
Go Home
|
>
|
||||||
</span>
|
</main>
|
||||||
</a>
|
|
||||||
</button>
|
|
||||||
</main>
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue