forked from modrinth/knossos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
64 lines (57 loc) · 1.17 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
<template>
<NuxtLayout>
<div class="main">
<div class="error">
<Logo404 v-if="error.statusCode === 404" />
<h1 v-else>An error occurred!</h1>
<p>{{ error.message }}</p>
<div class="button-group">
<nuxt-link to="/" class="iconified-button raised-button brand-button">
Go home
</nuxt-link>
<a
href="https://discord.nineMinecraft.com"
class="iconified-button raised-button"
rel="noopener"
>
Get help on Discord
</a>
</div>
</div>
</div>
</NuxtLayout>
</template>
<script setup>
import Logo404 from '~/assets/images/404.svg'
defineProps({
error: {
type: Object,
default() {
return {
statusCode: 1000,
message: 'Unknown error',
}
},
},
})
</script>
<style lang="scss" scoped>
.main {
margin: var(--spacing-card-lg) auto;
width: calc(100% - 4rem);
@media screen and (min-width: 800px) {
width: 600px;
}
}
.error {
h1 {
margin-bottom: 0.25rem;
}
svg {
fill: var(--color-text);
color: var(--color-text);
width: 100%;
height: auto;
}
}
</style>