ContentLoading.vue 494 Bytes
Newer Older
abergavenny's avatar
abergavenny committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script setup>
import { MESSAGES } from '@/data/messages'
</script>

<template>
  <div class="content-loading">
    <span>{{ MESSAGES['LOADING_DATA'] }}</span>
  </div>
</template>

<style scoped>
.content-loading {
  background-color: hsl(var(--clr-primary));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--clr-white);
  animation: pulse 750ms infinite ease-in-out;
}
</style>