4bd181d3cc
* fix: update to latest sapper fixes #416 * fix error and debug pages * requestIdleCallback makes column switching feel way nicer than double rAF * add export feature * add better csp info * workaround for sapper sub-page issue * clarify in readme about exporting * fix now config * switch from rIC to triple raf * style-loader is no longer used * update theming guide
36 lines
651 B
HTML
36 lines
651 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)
|
|
},
|
|
data: () => ({
|
|
shown: false
|
|
}),
|
|
components: {
|
|
LoadingSpinner
|
|
}
|
|
}
|
|
</script> |