ilk commit
This commit is contained in:
48
src/components/Loading.vue
Normal file
48
src/components/Loading.vue
Normal file
@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div class="loading-w" v-if="dataStore.isLoading">
|
||||
<div class="loading-text">Yükleniyor...Lütfen bekleyiniz</div>
|
||||
<div class="loading-shadow"></div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { useDataStore } from '@/stores/dataStore'
|
||||
const dataStore = useDataStore()
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
.loading-w {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 99999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
pointer-events: all;
|
||||
}
|
||||
.loading-text {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom:0;
|
||||
width: auto;
|
||||
border-radius: 8px 0 0 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
padding: 12px 24px;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
color: rgb(255, 255, 255);
|
||||
font-size: 20px;
|
||||
font-size: 1em;
|
||||
}
|
||||
.loading-shadow {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
z-index: 9998;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user