<template>
  <div style="background-color: #eee">
    <div class="layout">
      <div class="layout-hd">
        <slot name="header">
          <h1 class="title">在线报名</h1>
        </slot>
      </div>
      <div class="layout-bd">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {}
  },
  mounted() {
    document.body.style = 'background-color:#eee;'
  },
  destroyed() {
    document.body.style = ''
  }
}
</script>

<style lang="scss" scoped>
.layout {
  max-width: 970px;
  margin: 0 auto;
  overflow: hidden;
}
.layout-hd {
  .title {
    padding: 20px 0;
    font-size: 18px;
    line-height: 1;
    color: var(--main-color);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--main-color);
  }
}
.layout-bd {
  margin: 20px 0;
}
::v-deep .v-layout-aside {
  position: relative;
  min-height: 410px;
  align-self: flex-start;
  .aside-logout {
    span {
      display: inline-block;
      background: url('../../assets/images/icon_logout.png') no-repeat left center;
      background-size: 18px 17px;
      padding-left: 33px;
    }
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 10px;
    padding: 12px;
    font-size: 12px;
    color: #999;
    text-align: center;
    border-top: 1px solid #eee;
    cursor: pointer;
  }
}
</style>
