<template>
  <div>
    <center style="margin-top: 100px">
      <div class="loader" />
      <div class="mt-20">
        {{ text }}...
      </div>
    </center>
  </div>
</template>

<script>
export default {
  name: 'Loading',
  data() {
    return {
      text: this.$t('LOADING_TEXT'),
    };
  },
};
</script>

<style scoped>
  .loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
</style>
