<template>
  <div class="toptip">
    <div class="title">{{ currTitle }}</div>
  </div>
</template>

<script>
export default {
  name: "toptip",
  props: {
    currTitle: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="scss" scoped>
.toptip {
    text-align: center;
  .title {
    display: inline-block;
    color: #96311c;
    text-align: center;
    font-size: 20px;
    margin: 45px auto;
    font-weight: bold;
    position: relative;
    padding: 0 10px;
    &::before {
      background: url("../assets/divbefore.png") no-repeat;
      left: -120px;
    }
    &::after {
      background: url("../assets/divafter.png") no-repeat;
      left: 100%;
    }

    &::before,
    &::after {
      width: 93px;
      height: 5px;
      content: "";
      position: absolute;
      top: 37%;
      margin-top: -2px;
      display: inline-block;
      margin: 0 10px;
    }
  }
}
</style>

