mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
26 lines
453 B
Vue
26 lines
453 B
Vue
|
<template>
|
||
|
<div class="container">
|
||
|
<h1 v-if="error.statusCode === 404">Page not found</h1>
|
||
|
<h1 v-else>An error occured</h1>
|
||
|
<nuxt-link to="/">Home page</nuxt-link>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
layout: ({ isMobile }) => isMobile ? 'mobile' : 'default',
|
||
|
props: ['error']
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.container {
|
||
|
font-family: sans-serif;
|
||
|
padding-top: 10%;
|
||
|
text-align: center;
|
||
|
}
|
||
|
h1 {
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
</style>
|