-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
21 lines (19 loc) · 914 Bytes
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
<section class="bg-white dark:bg-gray-900">
<div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
<div class="mx-auto max-w-screen-sm text-center">
<h1 class="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-primary-600 dark:text-primary-500">{{ error?.statusCode }}</h1>
<p class="mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl dark:text-white">{{ $t('error.message') }}</p>
<p class="mb-4 text-lg font-light text-gray-500 dark:text-gray-400">{{ $t('error.message2') }}</p>
<button class="btn btn-ghost normal-case text-base" @click="handleError"> {{ $t('error.button') }} </button>
</div>
</div>
</section>
</template>
<script setup lang="ts">
import type { NuxtError } from '#app'
defineProps({
error: Object as () => NuxtError
})
const handleError = () => clearError({ redirect: '/' })
</script>