-
Notifications
You must be signed in to change notification settings - Fork 2
/
error.vue
86 lines (75 loc) · 1.39 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
<div class="error">
<div class="logo">
<img src="~/assets/img/logo.svg" alt="Mensatt Logo">
<span>Mensatt</span>
</div>
<div class="details">
<h2>An error occurred!</h2>
<span v-for="[k,v] of Object.entries(error ?? {})" :key="k">
<b>{{ k }}:</b> {{ v }}
</span>
</div>
<NuxtLink to="/">Go Back</NuxtLink>
</div>
</template>
<script setup lang="ts">
const error = useError()
</script>
<style scoped lang="scss">
.error {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
gap: 40pt;
padding: 40pt;
box-sizing: border-box;
}
.logo {
display: flex;
align-items: center;
gap: .5em;
font-size: 12pt;
img {
width: 1.5em;
height: 1.5em;
}
span {
font-family: $font-major;
color: $color-header;
}
}
h2 {
font-family: $font-header;
color: $color-header;
font-size: 16pt;
margin: 0 0 10pt 0;
}
.details {
display: flex;
flex-direction: column;
span {
font-family: monospace;
color: $color-minor;
font-size: 10pt;
b {
color: $color-major;
}
}
}
a {
text-decoration: none;
padding: 10pt 25pt;
border: 1px solid $bg-darker;
border-radius: $menu-item-br;
font-family: $font-major;
font-size: 10pt;
color: $color-major;
&:hover {
background-color: $bg-light;
}
}
</style>