nuxt-prawo-jazdy/app/components/LoadingScreen.vue
2025-12-17 21:35:57 +01:00

41 lines
829 B
Vue

<template>
<div class="min-h-dvh text-2xl w-full">
<div class="spa-loader-flex">
<div class="spa-loader-circle"></div>
<div class="spa-loader-text"></div>
</div>
</div>
</template>
<style>
.spa-loader-flex {
display: flex;
flex-direction: column;
min-height: 100dvh;
width: 100%;
justify-content: center;
align-items: center;
gap: 16px;
}
.spa-loader-circle {
display: block;
width: 36px;
height: 36px;
box-sizing: border-box;
border: solid 4px transparent;
border-top-color: #000;
border-left-color: #000;
border-bottom-color: #efefef;
border-right-color: #efefef;
border-radius: 50%;
animation: spaLoaderAnimation 400ms linear infinite;
}
@keyframes spaLoaderAnimation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>