-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
26 lines (21 loc) · 844 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
<script setup lang="ts">
import type { NuxtError } from '#app'
defineProps({ error: Object as () => NuxtError })
useSeoMeta({ title: 'Page not found', description: 'We are sorry but this page could not be found.' })
</script>
<template>
<div class="flex items-center justify-center h-screen px-8 bg-gray-900 text-gray-100">
<div class="text-center">
<h2 class="text-2xl font-semibold mb-2">Oops! Something went wrong</h2>
<p class="text-gray-400 mb-6">
{{
error?.message ||
`The page you're looking for doesn't exist or has been moved. Let us help you find your way back!`
}}
</p>
<NuxtLink to="/" class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded-md shadow-md transition-colors">
Go back to Home
</NuxtLink>
</div>
</div>
</template>