-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
41 lines (39 loc) · 852 Bytes
/
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
<template>
<div class="container">
<v-container>
<v-card
class="mx-auto elevation-20 rounded-xl"
max-width="700"
>
<h1 v-if="error.statusCode === 404" class="text-center" >Whoops... 404. Look like you're lost</h1>
<h1 v-else class="text-center">So... something not cool happened - {{ error.statusCode }} </h1>
<v-btn
block
class="mt-2 elevation-3"
color="primary"
@click="goBack"
>
Back to the guide
</v-btn>
</v-card>
</v-container>
</div>
</template>
<script>
export default {
props: ['error'],
methods: {
goBack() {
this.$router.push('/');
},
},
};
</script>
<style scoped lang="sass">
.container
display: flex
flex-direction: column
justify-content: center
align-items: center
height: 100vh
</style>