<template>
  <div class="card">
    <div class="card-hd">
      <h3 class="card-hd__title">{{ title }}</h3>
      <div class="card-hd__aside"><slot name="aside"></slot></div>
    </div>
    <div class="card-bd">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Card',
  props: {
    title: String
  }
}
</script>

<style lang="scss">
.card {
}
.card-hd {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 20px;
}
.card-hd__title {
  padding-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 3px solid #ff6767;
}
.card-bd {
}
</style>
