forked from tarikkavaz/nuxt3-i18n-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
27 lines (25 loc) · 768 Bytes
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<template>
<div
class="flex min-h-svh flex-col justify-between bg-slate-100 font-Raleway text-slate-900 dark:bg-slate-900 dark:text-slate-200"
>
<div class="mx-auto min-w-full max-w-screen-xl p-4 pt-0">
<Header />
<main class="container mx-auto w-full">
<div
class="w-full rounded bg-slate-400 p-6 text-center dark:bg-slate-800"
>
<h1 class="mt-5 text-3xl">{{ $t("error") }}</h1>
<h2 class="mt-5 text-3xl font-bold">{{ error?.statusCode }}</h2>
</div>
</main>
</div>
<Footer />
</div>
</template>
<script setup lang="ts">
const { t, locale } = useI18n();
import type { NuxtError } from "#app";
const props = defineProps({
error: Object as () => NuxtError,
});
</script>