Files
evilspins/app/components/Loader.vue
valere f9aeb03f82
All checks were successful
Deploy App / build (push) Successful in 1m31s
Deploy App / deploy (push) Successful in 15s
WIP: add TODO and small fixies
2025-11-11 19:23:33 +01:00

26 lines
615 B
Vue

<template>
<transition name="fade">
<div v-if="data.isLoading" class="fixed inset-0 z-50 flex items-center justify-center">
<div class="absolute inset-0 bg-black/60 backdrop-blur-md" />
<img src="/loader.svg" alt="Loading" class="border-esyellow/30 border-2 relative h-40 w-40 p-6 rounded-full">
</div>
</transition>
</template>
<script setup lang="ts">
import { useDataStore } from '~/store/data'
const data = useDataStore()
</script>
<style scoped>
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.15s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>