cmc_fe/src/App.vue

41 lines
713 B
Vue
Raw Normal View History

2023-01-19 13:44:49 +01:00
<template>
2023-01-30 13:48:31 +01:00
<CMCApp :class="{ fadein : !isLoading }" v-if="!isLoading" />
<LoadingScreen :isLoading="isLoading" />
2023-01-19 13:44:49 +01:00
</template>
<script>
import CMCApp from './CMCApp.vue'
2023-01-30 13:48:31 +01:00
import LoadingScreen from "./components/LoadingScreen.vue"
2023-01-19 13:44:49 +01:00
export default {
2023-01-30 13:48:31 +01:00
data(){
return {
isLoading: true
}
},
2023-01-19 13:44:49 +01:00
components: {
2023-01-30 13:48:31 +01:00
CMCApp,
LoadingScreen
},
mounted(){
setTimeout(() => {
this.isLoading = false;
},3000);
2023-01-19 13:44:49 +01:00
}
}
</script>
2023-01-30 13:48:31 +01:00
<style>
.fadein {
animation: fadein 1s forwards;
}
2023-01-19 13:44:49 +01:00
2023-01-30 13:48:31 +01:00
@keyframes fadein {
from {
opacity:0;
visibility:hidden;
}
to {
opacity:1;
visibility:visible;
}
}
</style>