<template>
<div class="overlay">
  <img alt="sync" src="@/assets/icons/sync.svg">
  Trying to connect...
</div>
</template>

<script>
export default {
  name: "loading-overlay"
}
</script>

<style scoped>
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-size: 180%;
  color: var(--on_primary);
}

img {
  animation: rotate 2s linear infinite;
  width: 7rem;
  filter: invert(1);
  margin-bottom: 1rem;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
</style>