-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
75 lines (64 loc) · 1.3 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
<template>
<empty-layout>
<div
class="container error-page">
<div
class="error-page__content">
<img
class="error-page__image"
src="@/assets/error.svg"
alt="Something is wrong">
<h1
class="error-page__title">
Something is wrong
</h1>
<el-button
class="error-page__action-button"
size="large"
type="primary"
@click="$router.push('/')">
Back to Home
</el-button>
</div>
</div>
</empty-layout>
</template>
<script setup>
import EmptyLayout from './layouts/empty'
import { ElButton } from 'element-plus'
useHead({
title: 'Something is wrong | VOICE | Our Voice Matters'
})
const props = defineProps({
error: Object
})
</script>
<style lang="scss">
.error-page {
height: 100vh;
padding: 0 20px;
overflow-y: auto;
&::-webkit-scrollbar {
display: none;
}
&__content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100px 0;
}
&__image {
width: 80%;
max-width: 400px;
}
&__title {
margin-top: 20px;
text-align: center;
text-transform: uppercase;
}
&__action-button {
margin-top: 30px;
}
}
</style>