-
Notifications
You must be signed in to change notification settings - Fork 5
/
error.vue
70 lines (62 loc) · 1.34 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<script setup lang="ts">
import type { NuxtError } from "#app";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const props = defineProps({
// eslint-disable-next-line vue/require-default-prop
error: Object as () => NuxtError,
});
</script>
<template>
<div class="error-page">
<h1>{{ error.statusCode }} - Page not found!</h1>
<img alt="404 mascot" src="/img/mascott/Rune_Expression_2.avif">
<p class="note">
Oops! It seems like you’ve ventured off the path in the Redot Engine
universe.
</p>
<NuxtLink class="back-home" to="/">Go back home</NuxtLink>
</div>
</template>
<style scoped>
.error-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
padding: 20px;
color: #e0e0e0;
background-color: #000;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #ff5c5c;
}
img {
width: 100%;
max-width: 300px;
height: auto;
margin-bottom: 20px;
}
.note {
font-size: 1.2rem;
margin-bottom: 20px;
color: #aaaaaa;
}
.back-home {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background-color: #ff5c5c;
color: #fff;
text-decoration: none;
border-radius: 8px;
font-weight: bold;
transition: background-color 0.3s;
}
.back-home:hover {
background-color: #e14b4b;
}
</style>