-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
48 lines (40 loc) · 1.06 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script lang="ts" setup>
import IconLucaLogo from '@/assets/icons/luca-logo.svg'
definePageMeta({
layout: false,
})
interface Props {
error: {
statusCode: number
statusMessage: string
}
}
const { error } = defineProps<Props>()
console.log(error)
useHead({
title:
error?.statusCode && error?.statusMessage
? `${error?.statusCode} ${error?.statusMessage}`
: 'An unexpected error occurred',
})
</script>
<template>
<div class="w-full min-h-screen flex items-center justify-center section wrapper">
<div class="flex flex-col items-center justify-center gap-40 text-center">
<h1>
<NuxtLink to="/">
<IconLucaLogo class="w-150 h-auto" />
<span class="sr-only">Luca</span>
</NuxtLink>
</h1>
<p class="type-body max-w-[45ch] mx-auto">
Ci scusiamo, the page you were looking for couldn't be found. It may have been moved.
</p>
<NuxtLink to="/">
<AppearanceButton>
Back to home
</AppearanceButton>
</NuxtLink>
</div>
</div>
</template>