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