2018-10-13 19:14:58 +02:00
|
|
|
<template>
|
|
|
|
|
<div class="error-page window-height window-width bg-light column items-center">
|
|
|
|
|
<div class="error-code bg-primary flex items-center justify-center">
|
|
|
|
|
404
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="error-card card bg-white column items-center justify-center">
|
|
|
|
|
<i class="text-grey-5">error_outline</i>
|
|
|
|
|
<p class="caption text-center">Oops. Nothing here...</p>
|
|
|
|
|
<p class="text-center group">
|
|
|
|
|
<button v-if="canGoBack" class="grey push small" @click="goBack">
|
|
|
|
|
<i class="on-left">keyboard_arrow_left</i>
|
|
|
|
|
Go back
|
|
|
|
|
</button>
|
2021-02-03 01:32:56 +01:00
|
|
|
<router-link to="/" custom v-slot="{ navigate }">
|
|
|
|
|
<button class="grey push small" @click="navigate" @keypress.enter="navigate" role="link">
|
2018-10-13 19:14:58 +02:00
|
|
|
Go home
|
|
|
|
|
<i class="on-right">home</i>
|
|
|
|
|
</button>
|
|
|
|
|
</router-link>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2019-03-11 19:16:39 +01:00
|
|
|
<script lang="ts" type="text/javascript">
|
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
export default Vue.extend({
|
2018-10-13 19:14:58 +02:00
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
canGoBack: window.history.length > 1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goBack () {
|
|
|
|
|
window.history.go(-1)
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-03-11 19:16:39 +01:00
|
|
|
})
|
2018-10-13 19:14:58 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
|
.error-page
|
|
|
|
|
.error-code
|
|
|
|
|
height 50vh
|
|
|
|
|
width 100%
|
|
|
|
|
padding-top 15vh
|
|
|
|
|
font-size 30vmax
|
|
|
|
|
color rgba(255, 255, 255, .2)
|
|
|
|
|
overflow hidden
|
|
|
|
|
.error-card
|
|
|
|
|
margin-top -25px
|
|
|
|
|
width 90vw
|
|
|
|
|
max-width 600px
|
|
|
|
|
padding 50px
|
|
|
|
|
i
|
|
|
|
|
font-size 5rem
|
|
|
|
|
</style>
|