<template>
  <header class="banner">
    <div class="content width1200">
      <div>
        <img class="animate__animated animate__fadeInDown"
             src="../images/topTitle.png"
             width="959"
             alt="">
      </div>
      <div>
        <img class="animate__animated animate__fadeInDown delay-300ms"
             src="../images/bottomTitle.png"
             width="628"
             alt="">
      </div>
      <div class="buttonWrap">
        <div class="animate__animated animate__fadeInDown delay-600ms button join "
             @click="joinIn">立即入驻</div>
        <div class="animate__animated animate__fadeInDown delay-600ms button goinBox"
             @click="gotoDetail">考生指引</div>
      </div>
    </div>
  </header>
</template>
<style lang="less" scoped>
.delay-300ms {
  animation-delay: 0.3s;
}
.delay-600ms {
  animation-delay: 0.6s;
}
.banner {
  background: url("../images/banner.png") no-repeat center;
  background-color: #2a2c41;
  background-size: cover;
  height: 763px;
  .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: rgba(255, 255, 255, 0.8);
    > div {
      padding-top: 30px;
      overflow: hidden;
      margin-top: -6px;
    }
    h3 {
      margin-top: 30px;
    }
    .buttonWrap {
      padding-top: 0;
    }
    .join {
      display: inline-block;
      width: 150px;
      height: 46px;
      // margin: 0 auto;
      margin-top: 56px;
      margin-right: 8px;
      line-height: 46px;
      font-size: 16px;
      background: #2dc7aa;
      border: 1px solid #2dc7aa;
      width: 184px;
      height: 46px;
      color: #ffffff;
      cursor: pointer;
      &:hover {
        background-color: #2ac0a3;
      }
    }
    .goinBox {
      display: inline-block;
      width: 150px;
      height: 46px;
      // margin: 0 auto;
      margin-top: 56px;
      margin-right: 12px;
      line-height: 46px;
      font-size: 16px;
      width: 184px;
      height: 46px;
      border: 1px solid #c5c5c5;
      color: #ffffff;
      cursor: pointer;
      &:hover {
        background-color: #2dc7aa;
        border: 1px solid #2dc7aa;
      }
    }
  }
}
</style>
<script>
import Bus from './eventBus'
export default {
  name: 'banner',
  methods: {
    joinIn () {
      Bus.$emit("joinIn", true);
    },
    gotoDetail () {
      Bus.$emit('gotoDetail')
    }
  }
}
</script>
