<template>
  <div class="content_title">
    <div class="line"></div>
    <div class="title">{{ title }}</div>
    <div class="right_bg">
      <span class="cr cr1"></span>
      <span class="cr cr2"></span>
      <span class="cr cr3"></span>
    </div>
  </div>
  <div class="bottom_line"></div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue';

const props = defineProps<{
  title: string;
}>();
const title = props.title;
</script>
<style scoped>
  @keyframes enlargecr1 {
    0% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes enlargecr2 {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes enlargecr3 {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.2);
    }
  }
.content_title{
  display: flex;
  height: 17%;
  max-height: 35px;
  position: relative;
  background: linear-gradient(to right,rgb(0,50,131),rgba(0,50,131,.7) 25%,rgba(0,50,131,.5) 50%,rgba(0,50,131,.3) 75%,rgba(0,50,131,0));
}
.line{
        width: 15px;
        height: 2px;
        background: #02B3F9;
        position: absolute;
        top: 0;
        left: 0;
    }
    .title{
    height: 100%;
    color: #daeef9;
    font-size: 18px;
    font-weight:600;
    display: flex;
    align-items: center;
    padding-left: 30px;
    background: url("/src/assets/contenTitle/title_bg.png") no-repeat 5px center;
    background-size: 22px 22px;
  }
.right_bg{
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: url("/src/assets/contenTitle/right_bg.png") no-repeat right center;
  background-size: auto 100%;
  .cr{
    display: inline-block;
    background-color: rgb(4,234,255);
    height: 5px;
    width: 5px;
    border-radius: 50%;
  }
  .cr1{
    animation: enlargecr1 1.2s infinite;
  }
  .cr2{
    animation: enlargecr2 1.2s infinite;
    margin: 0 3px;
  }
  .cr3{
    animation: enlargecr3 1.2s infinite;
    margin-right: 20px;
  }
}
.bottom_line{
  width: 100%;
    height: 1px;
    margin-top: 1px;
    background: linear-gradient(to right,rgb(9,141,201),rgba(9,141,201,0))
}
</style>

