error page style
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user