<template>
  <div class="card-wrap">
    <div class="o-item o-left">
      <slot name="left"></slot>
    </div>
    <div class="o-item o-r-1">
      <slot name="r1"></slot>
    </div>
    <div class="o-item o-r-2">
      <slot name="r2"></slot>
    </div>
    <div class="o-item"></div>
  </div>
</template>

<script>
export default {
  name: 'CardWrap2'
}
</script>

<style scoped lang="scss">
.card-wrap {
  width: 100%;
  height: 100%;
  background-image: url("/static/images/bianpin_Text Box@2x.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  padding: 1.3vh 0;

  .o-item {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-size: 0.8vw;
    font-weight: 500;
    width: 100%;
    height: 100%;
    color: white;

    &.o-left {
      grid-row-start: 1;
      grid-row-end: 3;
      font-size: 0.8vw;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      //grid-column-start: 1;
      //grid-column-end: 3;
    }

    .value {
      color: #00F2FF
    }
  }
}
</style>
