1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-11 09:45:24 +01:00
Pinafore-Web-Client-Frontend/routes/_components/LoadingPage.html
2018-03-30 17:14:53 -07:00

33 lines
604 B
HTML

<div class="loading-page {{shown ? '' : 'hidden'}}">
<LoadingSpinner />
</div>
<style>
.loading-page {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 150px;
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
transition: opacity 0.25s linear;
}
</style>
<script>
import LoadingSpinner from './LoadingSpinner.html'
const SPINNER_DELAY = 700
export default {
oncreate() {
setTimeout(() => {
this.set({shown: true})
}, SPINNER_DELAY)
},
components: {
LoadingSpinner
}
}
</script>