<script setup>
</script>

<template>
  <div class="border-box">
    <div class="border-top"></div>
    <div class="border-center">
      <div class="border-left"></div>
      <div class="border-slot"><slot></slot></div>
      <div class="border-left"></div>
    </div>
    <div class="border-bottom"></div>
  </div>
</template>

<style scoped lang="scss">
.border-box {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  background-color: rgba(0, 156, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .border-top {
    height: 2px;
    background-image: linear-gradient(
      to right,
      #5bdbf6 12px,
      transparent 48px,
      transparent calc(100% - 48px),
      #5bdbf6 calc(100% - 12px)
    );
  }
  .border-bottom {
    height: 2px;
    background-image: linear-gradient(
      to right,
      #5bdbf6 12px,
      transparent 11.25rem,
      transparent calc(100% - 150px),
      #5bdbf6 calc(100% - 12px)
    );
  }
  .border-center {
    flex: 1;
    display: flex;
    justify-content: space-between;
    .border-left {
      width: 2px;
      background-image: linear-gradient(
        to bottom,
        #5bdbf6 12px,
        transparent 36px,
        transparent calc(100% - 150px),
        #5bdbf6 calc(100% - 12px)
      );
    }
  }
  .border-slot {
    flex: 1;
  }
}
</style>
