<template>
  <section class="H5-container">
    <div class="banner-img">
      <img
        :src="bannerImg"
        alt=""
      >
      <section class="label">微信H5课堂</section>
    </div>
    <slot></slot>
    <slot name="label"></slot>
    <div class="content">
      <div class="content-first">
        <div class="content-first-info w1200">
          <div class="left">
            <h4>轻松找到课堂入口 创造优质</h4>
            <h4 class="content-h4">学习体验</h4>
            <div class="desc">微信首页任务栏等60+小程序入口，让10亿用户</div>
            <div class="desc">轻松发现你</div>
          </div>
          <div class="right">
            <img :src="firstImg" alt="">
          </div>
        </div>
      </div>
      <div class="content-seconed">
        <div class="content-seconed-info w1200">
          <div class="left">
            <img :src="secondImg" alt="">
          </div>
          <div class="right">
            <h4>一键转发，让课堂在微信中</h4>
            <h4 class="content-h4" >自由传播</h4>
            <div class="desc">课堂可分享至微信朋友圈、微信社群等等位置，</div>
            <div class="desc">便于用户分享好物，闲余赚取佣金</div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
if (process.browser) {
  var { WOW } = require("wowjs");
}
export default {
  name: "H5Page",
  data() {
    return {
      bannerImg: require('~/assets/images/products/banner-h5.png'),
      firstImg: require('~/assets/images/products/h5_img_first.png'),
      secondImg: require('~/assets/images/products/h5_img_second.png'),
    };
  },
  mounted() {
    if (process.browser) {
      new WOW({
        offset: 0,
        live: true,
      }).init();
    }
  },
};
</script>
<style scoped lang="scss">
.H5-container {
  .banner-img {
    position: relative;
    img {
      width: 100%;
      height: 595px;
    }
    .label {
      font-family: PingFangSC-Semibold, sans-serif;
      font-weight: 600;
      color: #ffffff;
      font-size: 80px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  .content {
    width: 100%;
    height: 1792px;

    .content-first {
      padding: 173px 0 138px 0;
      color: #262626;
      background-color: #f7fbff;
      .content-first-info {
        display: flex;
        justify-content: space-between;
      }
      .right {
        img {
          width: 576px;
          height: 585px;
        }
      }
      .left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        h4 {
          // font-size: 30px;
          font-size: 26px;
          // font-family: PingFangSC-Medium, sans-serif;
          font-weight: 600;
          color: #333333;
          line-height: 37px;
        }
        .desc {
          font-size: 16px;
          font-family: PingFangSC-Regular, sans-serif;
          font-weight: 400;
          color: #666666;
          line-height: 28px;
        }
      }
    }
    .content-seconed {
      .content-seconed-info {
        display: flex;
        justify-content: space-between;
      }
      padding: 138px 0 153px 0;
      color: #262626;
      .right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        h4 {
          font-size: 26px;
          // font-family: PingFangSC-Medium, sans-serif;
          font-weight: 600;
          color: #333333;
          line-height: 37px;
        }
        .desc {
          font-size: 16px;
          font-family: PingFangSC-Regular, sans-serif;
          font-weight: 400;
          color: #666666;
          line-height: 28px;
        }
      }
      .left {
        img {
          width: 575px;
          height: 579px;
        }
      }
    }
  }
  .content-h4 {
    margin-bottom: 50px;
  }
}
</style>