<template>
  <p v-if="subtitle">
    <span></span>
    <span>{{ subtitle }}</span>
  </p>
</template>

<script>
export default {
  name: 'subtitle',
  props: {
    subtitle: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
p {
  display: flex;
  align-items: center;
  padding-left: 10px;
  margin-bottom: 17px;
}

span:nth-of-type(1) {
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, #E5C7A5 0%, #CFAA7F 100%);
  box-shadow: 0 14px 9px -10px rgba(219, 208, 194, 1);
}

span:nth-of-type(2) {
  margin-left: 8px;
  font-size: 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #333333;
  line-height: 22px;
}
</style>
