mirror of
https://github.com/doocs/md.git
synced 2025-02-09 08:15:46 +08:00
60 lines
929 B
Vue
60 lines
929 B
Vue
<script setup lang="ts">
|
|
const loading = ref(true)
|
|
|
|
onMounted(() => {
|
|
setTimeout(() => {
|
|
loading.value = false
|
|
}, 100)
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<transition name="fade">
|
|
<div
|
|
v-if="loading"
|
|
class="loading"
|
|
>
|
|
<strong>致力于让 Markdown 编辑更简单</strong>
|
|
</div>
|
|
</transition>
|
|
</template>
|
|
|
|
<style lang="less" scoped>
|
|
.loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 99999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
font-size: 18px;
|
|
background-color: hsl(var(--background));
|
|
|
|
&::before {
|
|
content: url('../assets/images/favicon.png');
|
|
width: 100px;
|
|
height: 100px;
|
|
margin-bottom: 26px;
|
|
}
|
|
}
|
|
|
|
.fade-enter,
|
|
.fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
.fade-enter-to,
|
|
.fade-leave {
|
|
opacity: 1;
|
|
}
|
|
|
|
.fade-enter-active,
|
|
.fade-leave-active {
|
|
transition: opacity 1s;
|
|
}
|
|
</style>
|