<template>
  <div class="ww-layout">
    <p class="ph">NO.{{data.num}}</p>
    <p>打卡数：{{data.zan}}</p>
    <p class="theme-color1">{{data.name}}</p>
    <div class="img" :style="{backgroundImage: `url(${data.img})`}"></div>
  </div>
</template>
<script>
export default {
  props: ['data']
}
</script>
<style scoped>
.ww-layout{
  width:100%;
  height:200px;
  background:rgba(255,255,255,0.05);
  border-radius:3px;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.ww-layout .img{
  position: absolute;
  right: 0;
  top: 0;
  width: 240px;
  height: 240px;
  background-position: center;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

.ph{
  color:#532f1c;
  font-size: 32px;
  font-weight: bold;
}
.ww-detail{
  margin: 25px 0;
}

.ww-detail p{
  margin-bottom: 4px;
}

p{
  margin-bottom: 12px;
}

</style>
