2018-02-12 01:10:39 +01:00
|
|
|
<div class="loading-page {{shown ? '' : 'hidden'}}">
|
2018-02-07 05:54:49 +01:00
|
|
|
<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;
|
2018-02-12 01:10:39 +01:00
|
|
|
transition: opacity 0.25s linear;
|
2018-02-07 05:54:49 +01:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import LoadingSpinner from './LoadingSpinner.html'
|
|
|
|
export default {
|
2018-02-12 01:10:39 +01:00
|
|
|
oncreate() {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.set({shown: true})
|
|
|
|
}, 200)
|
|
|
|
},
|
2018-02-07 05:54:49 +01:00
|
|
|
components: {
|
|
|
|
LoadingSpinner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|