error page styling

This commit is contained in:
ManjaroOne666 2019-02-02 17:11:42 +00:00
parent b28525d974
commit 611accfb5f
2 changed files with 42 additions and 5 deletions

View File

@ -1,6 +1,5 @@
## TODO
* image urls, page links, social nav items, etc -> put in store or whatever
* 404 page
* favicon
* page descriptions etc
* services - background image for mobile

View File

@ -1,8 +1,20 @@
<template>
<div class="error-page">
<h1 v-if="error.statusCode === 404">Page not found</h1>
<h1 v-else>An error occurred</h1>
<nuxt-link to="/">Home</nuxt-link>
<h1 class="heading" v-if="error.statusCode === 404">Page not found</h1>
<h1 class="heading" v-else>An error occurred</h1>
<nav>
<ul class="site-nav">
<li class="site-nav__item"
v-for="item in siteNav"
:key="item.to"
@click="$emit('closeMenu')"
>
<nuxt-link :to="item.to" >
{{ item.text }}
</nuxt-link>
</li>
</ul>
</nav>
</div>
</template>
@ -16,6 +28,12 @@ export default {
},
}
},
computed: {
siteNav () {
return this.$store.getters['navigation/siteNav']
},
},
}
</script>
@ -28,7 +46,27 @@ export default {
justify-content: flex-start;
align-items: center;
padding: calc(1rem + #{$site-menu__header-height}) 1rem;
text-align: center;
@media (min-width: $bp__layout) {
padding: 6rem 1rem;
}
}
.heading {
margin-bottom: 1em;
font-size: 2rem;
color: $color__accent-danger-700;
}
.site-nav {
font-size: 1.3rem;
padding: 0;
}
.site-nav__item {
margin-bottom: .2em;
}
</style>