<template>
  <section class="border9" :class="'border9-' + theme">
    <div class="border9-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: 'border9',

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

<style lang="scss" scoped>
.border9 {
  height: 100%;

  .border9-title {
    display: flex;
    position: relative;
    align-items: center;
    height: 40px;
    padding: 0 23px;
    box-sizing: border-box;
    background-image: url(../asset/border9.png);
    background-size: 100% 40px;
    background-repeat: no-repeat;

    h2 {
      font-size: 24px;
      color: #E2EBF1;
      letter-spacing: 0;
    }

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

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

    &:after {
      background: #FFA086;
    }
  }

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