<template>
  <div class="block-content">
    <div class="container-title">
      {{ title }}
    </div>
    <slot name="content"></slot>
  </div>
</template>

<script>

export default {
  name: 'ContentBlock',
  props: {
    title: {
      type: String,
      default: '',
    },
  },
  computed: {},
  watch: {},
};
</script>
<style lang="scss" scoped>
.block-content {
  padding: 10px 15px;
  box-sizing: border-box;
  background: rgba(1, 11, 33, 0.91);
  border-radius: 6px;

  > :not(:first-child) {
    margin-top: 20px;
  }

  .container-title {
    display: flex;
    justify-content: left;
    align-items: center;
    color: #fefefe;
    font-family: AlimamaShuHeiTi-Bold;
    width: 100%;
    height: 30px;
    font-size: 14px;
    background: url("./img/block-header-bg.png") 100% 100% no-repeat;
    background-size: 100% 100%;
    letter-spacing: 1px;
  }
}
</style>
