<template>
  <div class="info card">
    <i class="iconfont iconsys theme-color1" :class="data.icon"></i>
    <p class="theme-color1">{{data.name}}</p>
    <p class="theme-color1">
      <strong v-for="(item,i) in data.sub1" :key="i">
        <span class="theme-color">{{item.bold.txt}}</span>{{item.txt}}
      </strong>
    </p>
    <p class="theme-color1">
      <strong v-for="(sub,idx) in data.sub2" :key="idx">
        <span class="theme-color">{{sub.bold.txt}}</span>{{sub.txt}}
      </strong>
    </p>
  </div>
</template>
<script>
export default {
  props: ['data']
}
</script>
<style scoped>
  .info{
    height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
  }
  .iconfont{
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 60px;
  }
  p:first-of-type{
    margin-bottom: 30px;
    font-weight: bold;
  }
  p{
    margin-bottom: 10px;
  }
  span{
    font-size: 36px;
    display: inline-block;
    margin-right: 10px;
  }
</style>
