-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
69 lines (59 loc) · 1.23 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
<template>
<default-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>
</default-layout>
</template>
<script setup>
import DefaultLayout from './layouts/default'
import { ElButton } from 'element-plus'
useHead({
title: 'Something is wrong | ECHO | Long live our opinion'
})
const props = defineProps({
error: Object
})
</script>
<style lang="scss">
.error-page {
padding-top: 160px;
padding-bottom: 160px;
&__content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
&__image {
width: 80%;
max-width: 400px;
}
&__title {
margin-top: 20px;
text-align: center;
text-transform: uppercase;
}
&__action-button {
margin-top: 30px;
}
}
</style>