error page style

This commit is contained in:
les
2020-01-14 16:29:53 +01:00
parent 5e5288f730
commit 38a8182dd7

View File

@@ -1,18 +1,25 @@
<template lang='pug'>
el-main
el-card#error
h1(v-if="error.statusCode === 404") {{error.message}}
h1(v-else) An error occurred: {{error.message}}
el-main.p-4.text-center#error
h1(v-if="error.statusCode === 404") <i class='el-icon-warning'></i> {{error.message}}
h1(v-else) <i name='el-icon-warning'></i> An error occurred: {{error.message}}
nuxt-link(to='/') Back to home
</template>
<script>
import { mapState } from 'vuex'
export default {
props: ['error']
props: { error: { type: Object } },
computed: mapState(['settings']),
head () {
return { title: `${this.settings.title} - Error` }
}
}
</script>
<style lang="less">
#error {
margin-top: 20px;
color: orange;
i { color: orangered }
}
</style>