-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
error.vue
45 lines (41 loc) · 928 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<LiMeta />
<LiPage no-footer>
<div class="error-page">
<div class="flex flex-col items-center">
<h1 class="text-6xl font-bold text-brand-red">
{{ error.statusCode }}
</h1>
<div v-if="error.statusCode === '404'">
Page not found
</div>
<div v-else>
An error occurred
</div>
</div>
</div>
<div class="absolute w-full flex justify-center top-2/3">
<nuxt-link
to="/"
class="font-bold text-brand-red hover:underline"
>
Go back to Home
</nuxt-link>
</div>
</LiPage>
</template>
<script lang="ts">
export default {
layout: 'raw',
}
</script>
<script setup lang="ts">
const error = useError()
</script>
<style scoped>
.error-page {
@apply fixed h-screen w-screen -top-header-height;
@apply flex flex-col items-center justify-center;
@apply gap-y-6;
}
</style>