You've already forked AstralRinth
forked from didirus/AstralRinth
New error page, add legal pages, responsiveness for home page
This commit is contained in:
27
layouts/error.vue
Normal file
27
layouts/error.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<h1>{{ error.message }}</h1>
|
||||
<NuxtLink to="/">
|
||||
An error occurred! Click this text to go back home, and find your way
|
||||
back!
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['error'],
|
||||
layout: 'home',
|
||||
created() {
|
||||
console.log(this.error)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.main {
|
||||
margin: 0 auto;
|
||||
max-width: 800px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user