<template>
  <section id="main-section" data-anchor="main">
    <div class="reward-info">
      <div class="reward-title">
        <p>About Crypto Elite's:</p>
        <p>BATTLEGROUNDS(CEBG)</p>
      </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 player</p>
          <p>performanceAcquire <img src="@/assets/202202/zurk509i_400x400.png" class="ceg" alt="CEG"/>CEG in <img src="@/assets/202202/icon_pvp.png" alt="pvp"/> and <img 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 Play mode; token</p>
          <p>can only be claimed and withdrawn after purchase of NFT </p>
          <p>hero</p>
        </div>
      </div>
    </div>
  </section>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import RImg from '@/components/core/ResponsiveImage.vue'
import OneColCell from '@/components/index/OneColCell.vue'

@Component({
  name: 'MainSection',
  components: {
    OneColCell,
    RImg
  }
})
export default class 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>
#main-section{
  background-image: url('../../assets/202202/group2@2x.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 1920px;
  height: 1850px;
  margin-top: -87px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  .reward-info{
    width: 1280px;
    margin-top: 105px;
    .reward-title{
      margin-left: 96px;
      width: 610px;
      font-size: 55px;
      font-weight: bold;
      color: transparent;
      background: linear-gradient(to right, #FFE930, #FF8914);
      -webkit-background-clip: text;
      p{
        margin-block-start: 12px;
        margin-block-end: 12px;
        color: #FFE930;
        background-image: linear-gradient(to right, #FFE930, #FF8914);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    .reward-desc{
      margin-left: 96px;
      color: #EDEDED;
      font-size: 25px;
      p{
        margin-block-start: 8px;
        margin-block-end: 8px;
      }
    }
  }
  .reward-list{
    display: flex;
    width:1280px;
    flex-direction: row;
    justify-content: space-between;
    .one-col-cell:first-child{
      margin-left: 50px;
    }
    .one-col-cell:last-child{
      margin-right: 50px;
    }
  }
  .img-text-cell{
    color: white;
    display: flex;
    width: 1280px;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 105px;
    .title-img{
      margin-left: 94px;
    }
    .desc-text{
      margin-right: 30px;
      width: 705px;
      .desc-title{
        font-size: 24px;
        font-weight: bold;
      }
      p{
        font-size: 18px;
        font-family: 'Rajdhani',serif;
        font-weight: 500;
      }
    }

  }
  .download-btn{
    margin-top: 100px;
    margin-bottom: 50px;
  }
  img.ceg {
    margin-right: 2px;
  }
  .download-links{
    transform: scale(0.8);
  }
}
</style>
