-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.vue
More file actions
53 lines (47 loc) · 958 Bytes
/
error.vue
File metadata and controls
53 lines (47 loc) · 958 Bytes
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
<template>
<DefaultLayout>
<div class="status">
<div>
<h1>{{ error.statusCode }}</h1>
<h3>{{ error.message }}</h3>
<br style="display: block; margin-block: 4rem" />
<NuxtLink to="/">Return to Home</NuxtLink>
</div>
</div>
</DefaultLayout>
</template>
<style scoped>
.status {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
min-height: 100vh;
}
h1 {
font-family: var(--font-display);
font-size: min(40vh, 40vw);
font-weight: 500;
margin: 1rem 0 2rem;
color: var(--primary-900);
}
h3 {
font-size: 22px;
}
a {
color: var(--fg);
font-weight: 600;
}
</style>
<script setup>
import DefaultLayout from '~/layouts/default.vue';
import {onMounted} from 'vue';
onMounted(() => {
window.error = true;
});
const props = defineProps({
error: Object,
});
const handleError = () => clearError({redirect: '/'});
</script>