-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
62 lines (53 loc) · 1.18 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
<template>
<div
class="error-page">
<div
class="error-page__content">
<img
class="error-page__image"
v-if="store.env.colorTheme === 'light'"
src="@/assets/error.svg"
alt="Something is wrong">
<img
class="error-page__image"
v-if="store.env.colorTheme === 'dark'"
src="@/assets/error-dark.svg"
alt="Something is wrong">
<h1
class="error-page__title">
{{ $route.query.error || 'Something is wrong' }}
</h1>
</div>
</div>
</template>
<script setup>
import useStore from '~~/store'
import useWidgetConfig from '~~/compositions/widget-config'
const store = useStore()
const { config } = useWidgetConfig(store)
store.setWidgetConfig(config)
const props = defineProps({
error: Object
})
</script>
<style lang="scss">
.error-page {
padding: 50px 20px;
&__content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
&__image {
width: 100%;
max-width: 300px;
}
&__title {
margin-top: 10px;
font-size: 20px;
text-align: center;
text-transform: uppercase;
}
}
</style>