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

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

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

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

    h2 {
      font-size: 20px;
      font-weight: 600;
      color: #FFFFFF;
      letter-spacing: 2px;
      text-shadow: 0 0 10px #0671E2;
    }

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

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

    &:after {
      background: #FFA086;
    }
  }

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