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

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

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

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

    h2 {
      font-weight: 600;
      font-size: 16px;
      color: #FFFFFF;
      letter-spacing: 2px;
    }

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

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

    &:after {
      background: #FFA086;
    }
  }

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