<template>
  <section id="center-section" data-anchor="top">
    <div class="reward-info">
      <div class="reward-title">
        <div>About Crypto Elite's:</div>
        <div>BATTLEGROUNDS(CEBG)</div>
      </div>
      <div class="reward-desc">
        <p>Crypto Elite's: BATTLEGROUNDS(CEBG) is a light online multiplayer Battle Royale game. </p>
        <p>In the game, up to 40 players parachute onto an island and scavenge for weapons and equipment to</p>
        <p>kill other while avoiding getting killed themselves. The last player or team standing wins the round.</p>
      </div>
    </div>

    <div class="reward-list">
      <one-col-cell v-for="d in cellList" :cell-data="d" :key="d.title"></one-col-cell>
    </div>

    <img src="@/assets/202202/btn-download@2x.png" class="download-btn" alt="text"/>
    <div class="download-links">
      <a :href="apkUrl">
        <img src="@/assets/202202/apk_download.png" alt="download apk"/>
      </a>
      <a href="javascript:void(0)" @click="comingSoon">
        <img src="@/assets/202202/googleplay@2x.png" alt="google play"/>
      </a>
      <a href="javascript:void(0)" @click="comingSoon">
        <img src="@/assets/202202/applestore@2x.png" alt="appstore"/>
      </a>
    </div>

    <div class="img-text-cell">
      <img class="title-img" src="@/assets/202202/play-to-earn@2x.png" alt="play to earn"/>
      <div class="desc-text">
        <div class="desc-title">Play TO Earn</div>
        <div class="desc-list">
          <p>Reward in-game items and tokens based on</p>
          <p>player performanceAcquire <img src="@/assets/202202/zurk509i_400x400.png" class="ceg" alt="CEG"/>CEG in </p>
          <p><img src="@/assets/202202/icon_pvp.png" class="pvp" alt="pvp"/> and <img class="pvp" src="@/assets/202202/icon_pve.png" alt="pve"/> plays</p>
          <p>Win <img src="@/assets/202202/zurk509i_400x400.png" class="ceg" alt="CEC"/>CEC at the end of each season according to player ranking</p>
        </div>
      </div>
    </div>
    <div class="img-text-cell">
      <img class="title-img" src="@/assets/202202/free-to-play@2x.png" alt="free to play"/>
      <div class="desc-text">
        <div class="desc-title">Free To Play</div>
        <div class="desc-list">
          <p>Free play without NFT, all you need is a registration</p>
          <p>Players can also get <img src="@/assets/202202/zurk509i_400x400.png" class="ceg" alt="CEG"/>CEG rewards in Free to</p>
          <p> Play mode; token can only be claimed and withdrawn after purchase of NFT hero</p>
        </div>
      </div>
    </div>
  </section>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import OneColCell from '@/components/index/OneColCell.vue'

@Component({
  name: 'MobileCenterSection',
  components: {
    OneColCell
  }
})
export default class MobileCenterSection extends Vue {
  get googlePlay() {
    return process.env.VUE_APP_PLAY_URL
  }

  get appstore() {
    return process.env.VUE_APP_APPSTORE
  }

  get apkUrl() {
    return process.env.VUE_APP_APK_URL
  }

  get cellList() {
    return [
      {
        img: require('@/assets/202202/cell-0@2x.png'),
        title: 'FUN',
        desc: ['Battle Royale', '10 mins/battle, enjoy the thrill']
      },
      {
        img: require('@/assets/202202/cell-1@2x.png'),
        title: 'FREE',
        desc: ['Free enter', 'no need to buy NFT']
      },
      {
        img: require('@/assets/202202/cell-2@2x.png'),
        title: 'TEAM UP',
        desc: ['Play with your friends', 'or making new friends in battle']
      },
      {
        img: require('@/assets/202202/cell-3@2x.png'),
        title: 'EARN',
        desc: ['Play to ean tokens', 'listed on multiple exchanges']
      }
    ]
  }
}
</script>
<style lang="scss" scoped>
#center-section {
  width: 100vw;
  position: relative;
  background-image: url('../../../assets/mobile/index/bg-center.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-top: -7.2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10vw;
  .reward-info{
    width: 100vw;
    margin-top: 11.2vw;
    .reward-title{
      display: inline-block;
      margin-left: 7.7vw;
      font-size: 6vw;
      font-weight: bold;
      width: fit-content;
      div{
        margin-block-start: 12px;
        margin-block-end: 12px;
        width: fit-content;
        color: #FFE930;
        background-image: linear-gradient(to right, #FFE930, #FF8914);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    .reward-desc{
      margin-left: 7.7vw;
      margin-right: 7.7vw;
      color: #EDEDED;
      font-size: 4vw;
      p{
        margin-block-start: 8px;
        margin-block-end: 8px;
        color: #EDEDED;
        font-size: 4vw;
      }
    }
  }
  .reward-list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3.8vw;
    width: 100vw;
    flex-direction: row;
    justify-content: space-between;
    padding: 11vw 0;
    justify-items: center;
  }
  .download-btn{
    width: 54vw;
    height: 12vw;
    margin-bottom: 8vw;
  }
  .download-links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vw;
    img{
      width: 75vw;
      height: 26vw;
      margin-bottom: -8vw;
    }
  }
  .img-text-cell{
    margin-top: 15vw;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    &:last-child{
      margin-top: 5vw;
      margin-bottom: 10vw;
    }
    .title-img{
      width: 77.9vw;
      height: 38.4vw
    }
    .desc-text {
      width: 77.9vw;
      color: white;
      margin-top: 5vw;
      .desc-title{
        font-size: 5.5vw;
      }
      .desc-list{
        font-size: 3.8vw;
        .pvp{
          margin-bottom: -2px;
        }
      }
    }
  }
}
</style>
