<template>
  <div class="census-temp-a" :style="`color: ${icolor};`">
    <span class="census-top">{{ value }}</span>
    <div class="census-cneter">
      <icon :class="`iconfont ${icons} icon-t`"></icon>
    </div>
    <div class="census-title">{{ title }}</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: 80px;
  display: flex;
  flex-wrap: wrap;
  .census-cneter {
    width: 100%;
    background-image: url("../../../../assets/images/big/v3/censusTempA.png");
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    font-size: 48px;
    .icon-t {
      font-size: 45px;
      margin-top: 12px;
    }
  }
  .census-top {
    font-size: 20px;
    font-family: "Source Han Sans CN";
    font-weight: bold;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    top: 10px;
  }
  .census-title {
    width: 100%;
    height: 15px;
    font-size: 14px;
    font-family: "Source Han Sans CN";
    font-weight: 500;
    color: #ffffff;
    display: flex;
    justify-content: center;
  }
}
</style>
