<template>
  <section class="border13" :class="'border13-' + theme">
    <div class="border13-title">
      <!-- <img src="../asset/ic-badge.png" v-if="theme === '1'" /> -->
      <h2>{{ title }}</h2>
    </div>
    <div class="slot">
      <slot/>
    </div>
  </section>
</template>

<script>
export default {
  name: 'border13',

  props: ['title', 'theme']
}
</script>

<style lang="scss" scoped>
.border13 {
  height: 100%;
  background: #7583900f;

  .border13-title {
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 54px;
    box-sizing: border-box;
    background-image: url(../asset/border13.png);
    background-size: 100% 68px;
    background-repeat: no-repeat;

    h2 {
      font-size: 24px;
      color: #fff;
    }


    img {
      width: 28px;
      height: 28px;
      margin-right: 8px;
    }
  }

  &.border13-1 .border13-title {
    // background-image: url(../asset/border8.png);
    // background-position: bottom;

    &:after {
      background: #FFA086;
    }
  }

  .slot {
    height: calc(100% - 68px);
    padding-top: 19px;
  }
}
</style>
