<template>
  <div class="error">
    <div class="error-content">
      <h1 class="error-code">{{ error.statusCode }}</h1>
      <div class="error-wrapper-message">
        <h2 class="error-message">找不到页面</h2>
      </div>
      <p>
        <nuxt-link class="error-link" to="/">返回首页</nuxt-link>
      </p>
    </div>
  </div>
</template>

<script>
  export default {
    props: ['error']
  }
</script>

<style lang="scss">
  @import '~assets/scss/mixins';
  @import '~assets/scss/variables';
  .error {
    position: relative;
    background-color: $module-bg;
    min-height: 10em;
    width: 100%;
    overflow: hidden;
    text-align: center;
    padding: 2em 0;
    .error-content {
      .error-code {
        font-size: 6rem;
      }
    }
  }
</style>
