<template>
  <div class="nums">
    <div class="n-top "><span>{{data.sum}}</span></div>
    <div class="n-bottom">{{data.name}}</div>
  </div>
</template>
<script>
export default {
  props: ['data']
}
</script>
<style scoped>
  .nums{
    height: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1%;
  }
  .n-top{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #DDCC92;
    color: #b8741a;
    /* background-color: rgba(255, 255, 255, 0.05); */
    position: relative;
  }

  .n-top::before{
    content: '';
    border-radius: 50%;
    background: none;
    border: 2px solid rgba(167, 161, 95, 0.15);
    width: 120px;
    height: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }

  span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 22px;
    font-weight: bold;
  }

  .n-bottom{
    margin-top: 20px;
  }

</style>
