<template>
  <section class="XcxPage-container">
    <div class="banner-img">
      <img :src="bannerImg" alt="">
      <section class="label">小程序课堂</section>
    </div>
    <slot></slot>
    <slot name="label"></slot>
    <div class="content">
      <div class="content-first wow animate__animated animate__lightSpeedInLeft">
        <div class="content-first-info w1200">
          <div class="left">
            <img
              src="http://res.training.luojigou.vip/Fr1pakSIAxm3LLHgAgMkHECAerAB?imageView2/0/q/50|imageslim"
              alt=""
            >
          </div>
          <div class="right">
            <h4>轻松找到课堂入口 创造优质</h4>
            <h4 class="right-h4">学习体验</h4>
            <div class="desc">微信首页任务栏等60+小程序入口，让10亿用户 轻松发现你</div>
            <div class="desc">轻松发现你</div>
          </div>
        </div>
      </div>
      <div class="content-seconed wow animate__animated animate__lightSpeedInRight">
        <div class="content-seconed-info w1200">
          <div class="left">
            <h4>轻松找到课堂入口 创造优质</h4>
            <h4 class="left-h4">学习体验</h4>
            <div class="desc">微信首页任务栏等60+小程序入口，让10亿用户</div>
            <div class="desc">轻松发现你</div>
          </div>
          <div class="right">
            <img
              src="http://res.training.luojigou.vip/FiiA82i4ori08A7Z8BbUdK8GMaxs?imageView2/0/q/50|imageslim"
              alt=""
            >
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
if (process.browser) {
  var { WOW } = require("wowjs");
}
export default {
  name: "XcxPage",
  data() {
    return {
      bannerImg: require("~/assets/images/products/banner-xcx.png"),
    };
  },
  mounted() {
    if (process.browser) {
      new WOW({
        offset: 0,
        live: true,
      }).init();
    }
  },
};
</script>
<style scoped lang="scss">
.XcxPage-container {
  .banner-img {
    position: relative;
    img {
      width: 100%;
      height: 595px;
    }
    .label {
      font-family: PingFangSC-Semibold, PingFang SC;
      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;
      }
      .left {
        img {
          width: 576px;
          height: 585px;
        }
      }
      .right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        h4 {
          font-size: 26px;
          // font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 600;
          color: #333333;
          line-height: 37px;
          &.right-h4 {
            margin-bottom: 24px;
          }
        }
        .desc {
          font-size: 16px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
          line-height: 28px;
        }
      }
    }
    .content-seconed {
      padding: 153px 0 138px 0;
      color: #262626;
      .content-seconed-info {
        display: flex;
        justify-content: space-between;
        .left {
          display: flex;
          flex-direction: column;
          justify-content: center;
          h4 {
            font-size: 26px;
            // font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 600;
            color: #333333;
            line-height: 37px;
            &.left-h4 {
              margin-bottom: 47px;
            }
          }
          .desc {
            font-size: 16px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #666666;
            line-height: 28px;
          }
        }
        .right {
          img {
            width: 664px;
            height: 581px;
          }
        }
      }
    }
  }
}
</style>