<script setup lang="ts"></script>
<template>
  <div class="content fit center">
    <div class="loading center">
      <span>Loading...</span>
    </div>
  </div>
</template>

<style lang="scss" scoped>
@keyframes a1 {
  to {
    transform: rotate(360deg);
  }
}
@keyframes a2 {
  to {
    transform: rotate(-360deg);
  }
}
.content {
  background-color: #34495e;
  font-family: 'Comic Sans MS', sans-serif;
}
.loading {
  width: 180px;
  height: 180px;
  box-sizing: border-box;
  border-radius: 50%;
  border-top: 10px solid #ff6d28;
  position: relative;
  animation: a1 2s linear infinite;

  > span {
    color: #fff;
    animation: a2 2s linear infinite;
  }

  &::before,
  &::after {
    content: '';
    width: 180px;
    height: 180px;
    box-sizing: border-box;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: -10px;
  }

  &::before {
    border-top: 10px solid #0096ff;
    transform: rotate(120deg);
  }

  &::after {
    border-top: 10px solid #ff4a4a;
    transform: rotate(240deg);
  }
}
</style>