Skip to content
Snippets Groups Projects
Commit 9624714a authored by CazSaa's avatar CazSaa
Browse files

Create basic error page

parent c6a4d473
No related branches found
No related tags found
No related merge requests found
<template>
<div class="container error-container">
<h1 v-if="error.statusCode === 404">Page not found</h1>
<h1 v-else>An error occurred</h1>
<NuxtLink to="/">Go to the home page</NuxtLink>
</div>
</template>
<script>
export default {
props: ['error'],
layout: 'errorLayout',
}
</script>
<style lang="scss">
.error-container {
justify-content: center;
h1 {
font-size: 2rem;
text-shadow: 0 5px 7px #222;
margin-bottom: 1em;
}
a {
text-decoration: underline;
}
}
</style>
<template>
<div>
<Nuxt />
</div>
</template>
<script>
export default {
head() {
return {
bodyAttrs: {
id: 'error-page'
}
}
}
}
</script>
<style>
#error-page {
background-image: linear-gradient(hsl(201, 16%, 43%), #003b70);
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment