mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
61 lines
1.2 KiB
Vue
61 lines
1.2 KiB
Vue
|
<template>
|
||
|
<div class="error-page">
|
||
|
<div>
|
||
|
<h1 class="error-code">{{ error.statusCode }}</h1>
|
||
|
<div class="error-wrapper-message">
|
||
|
<h2 class="error-message">{{ error.message }}</h2>
|
||
|
</div>
|
||
|
<p v-if="error.statusCode === 404"><router-link class="error-link" to="/">Back to the home page</router-link></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: ['error']
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.error-page {
|
||
|
color: #000;
|
||
|
background: #fff;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
position: absolute;
|
||
|
font-family: "SF UI Text", "Helvetica Neue", "Lucida Grande";
|
||
|
text-align: center;
|
||
|
padding-top: 20%;
|
||
|
}
|
||
|
.error-code {
|
||
|
display: inline-block;
|
||
|
font-size: 24px;
|
||
|
font-weight: 500;
|
||
|
vertical-align: top;
|
||
|
border-right: 1px solid rgba(0, 0, 0, 0.298039);
|
||
|
margin: 0px 20px 0px 0px;
|
||
|
padding: 10px 23px;
|
||
|
}
|
||
|
.error-wrapper-message {
|
||
|
display: inline-block;
|
||
|
text-align: left;
|
||
|
line-height: 49px;
|
||
|
height: 49px;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
.error-message {
|
||
|
font-size: 14px;
|
||
|
font-weight: normal;
|
||
|
margin: 0px;
|
||
|
padding: 0px;
|
||
|
}
|
||
|
.error-link {
|
||
|
color: #42b983;
|
||
|
font-weight: normal;
|
||
|
text-decoration: none;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
</style>
|