mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
36 lines
482 B
Vue
36 lines
482 B
Vue
<template>
|
|
<div class="container">
|
|
<h1 v-if="error.statusCode === 404">
|
|
Page not found
|
|
</h1>
|
|
<h1 v-else>
|
|
An error occurred
|
|
</h1>
|
|
<NuxtLink to="/">
|
|
Home page
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
error: {
|
|
type: Object,
|
|
default: null
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.container {
|
|
font-family: sans-serif;
|
|
padding-top: 10%;
|
|
text-align: center;
|
|
}
|
|
h1 {
|
|
font-size: 20px;
|
|
}
|
|
</style>
|