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

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

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

  .border7-title {
    display: flex;
    position: relative;
    align-items: center;
    height: 42px;
    // line-height: 26px;
    padding: 0 36px;
    box-sizing: border-box;
    background-image: url(../asset/border7.png);
    background-position: bottom;
    background-size: 100% 42px;
    background-repeat: no-repeat;

    h2 {
      font-weight: 600;
      font-size: 22px;
      color: #FFFFFF;
      text-shadow: 0 0 8px #006BFF;
    }

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

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

    &:after {
      background: #FFA086;
    }
  }

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