<template>
  <div class="census-temp-a" :style="`color: ${icolor};`">
    <div class="census-cneter">
      <icon :class="`iconfont ${icons} icon-t`"></icon>
    </div>

    <div class="census-right">
      <span class="census-top">{{ value }}</span>
      <div class="census-title">{{ title }}</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "CensusTmepA",
  props: {
    icolor: {
      type: String,
    },
    icons: {
      type: String,
    },
    title: {
      type: String,
    },
    value: {
      type: [String, Number],
    },
  },
};
</script>
<style lang="scss" scoped>
.census-temp-a {
  width: 105px;
  height: 70px;
  display: flex;
  width: 100%;
  justify-content: center;
  .census-cneter {
    width: 80px;
    background-image: url("../../../../assets/images/big/v3/censusTempA.png");
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    .icon-t {
      font-size: 30px;
      margin-top: 12px;
    }
  }
  .census-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: calc(100% - 60px);
    padding-left: 15px;
    .census-top {
      width: 100%;
      display: flex;
      justify-content: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      position: relative;
      top: 5px;
      font-size: 20px;
      font-family: 'Source Han Sans CN';
      font-weight: bold;
      align-items: center;
    }
    .census-title {
      width: 100%;
      height: 20px;
      font-size: 14px;
      font-family: "Source Han Sans CN";
      font-weight: 500;
      color: #ffffff;
      display: flex;
      justify-content: left;
    }
  }
}
</style>
