Files
freeplanet/src/views/Error404.vue
Paolo Arena 7d0b3fb26f Project e Todos sistemati...
aggiunti Gruppi
2021-02-03 01:32:56 +01:00

60 lines
1.4 KiB
Vue
Executable File

<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>
<router-link to="/" custom v-slot="{ navigate }">
<button class="grey push small" @click="navigate" @keypress.enter="navigate" role="link">
Go home
<i class="on-right">home</i>
</button>
</router-link>
</p>
</div>
</div>
</div>
</template>
<script lang="ts" type="text/javascript">
import Vue from 'vue'
export default Vue.extend({
data () {
return {
canGoBack: window.history.length > 1
}
},
methods: {
goBack () {
window.history.go(-1)
}
}
})
</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>