-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
42 lines (38 loc) · 826 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
<template>
<LayoutDefault>
<div class="error">
<h1 class="error__status">{{ error.statusCode }}</h1>
<h2 class="error__message">{{ error.message }}</h2>
</div>
</LayoutDefault>
</template>
<style scoped>
.error {
text-align: center;
margin-top: 20vh;
}
.error__status {
padding-bottom: 3rem;
font-size: 108px;
}
.body {
background-color: var(--bg);
color: var(--fg);
padding: 0 1rem;
margin: 5rem auto 15rem;
min-height: 80vh; /* Keep footer out of sight until scrolled*/
max-width: var(--content-width);
}
@media screen and (max-width: 480px) {
.body {
padding: 0 1.125rem;
}
}
</style>
<script setup>
import LayoutDefault from "~/layouts/default.vue";
const props = defineProps({
error: Object,
});
const handleError = () => clearError({ redirect: "/" });
</script>