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

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

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

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

    h2 {
      font-weight: 600;
      font-size: 24px;
      color: rgba(255, 255, 255, 0.87);
      letter-spacing: 2px;
      text-shadow: 0 2px 24px #1b7ef2e8;
    }

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

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

    &:after {
      background: #FFA086;
    }
  }

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