<template>
  <div>
    <div class="detail">
      <div class="detail-text">
        <div class="detail-count">
          {{ count }}
        </div>
        <div class="detail-desc">
          {{ desc }}
        </div>
      </div>
      <div class="detail-img">
        <img :src="img">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  props: {
    count: {
      type: Number,
      default: 0
    },
    desc: {
      type: String,
      default: ''
    },
    img: {
      type: String,
      default: ''
    }

  }
}
</script>

<style lang="scss" scoped>
.detail{
  background-color: white;
  align-items: center;
  width: 15.75rem;
  height: 8.75rem;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem 0 1.5rem;
  .detail-img{
    img{
      height: 4rem;
    }
  }
  .detail-text{
    .detail-count{
      font-size: 2.25rem;
      font-weight: bold;
      color: #303133;
      margin-bottom: 1rem;
    }
    .detail-desc{
      font-size: 1.125rem;
      font-weight: 400;
      color: #909399;
    }
  }
}

</style>
