Compare commits

..

3 commits

Author SHA1 Message Date
Henry Jameson
3aaf5f5b3b Merge branch 'splashscreen' into shigusegubu-themes3 2024-09-26 01:21:07 +03:00
Henry Jameson
80e8ea6fea re-align the mascot container 2024-09-18 21:35:10 +03:00
Henry Jameson
e004c4e087 remove splash when it's done 2024-09-18 21:33:20 +03:00
2 changed files with 7 additions and 3 deletions

View file

@ -58,7 +58,7 @@
display: grid;
width: calc(5em * 0.5 * var(--scale));
height: calc(8em * 0.5 * var(--scale));
margin-left: 5.1em;
margin-left: 4.1em;
z-index: 2;
grid-template-rows: repeat(8, 1fr);
grid-template-columns: repeat(5, 1fr);
@ -93,7 +93,7 @@
}
#status {
margin-top: 0.5em;
margin-top: 1em;
line-height: 2;
width: 100%;
text-align: center;

View file

@ -146,7 +146,11 @@ export default {
},
removeSplash () {
document.querySelector('#status').textContent = this.$t('splash.fun_' + Math.ceil(Math.random() * 4))
document.querySelector('#splash').classList.add('hidden')
const splashscreenRoot = document.querySelector('#splash')
splashscreenRoot.addEventListener('transitionend', () => {
splashscreenRoot.remove()
})
splashscreenRoot.classList.add('hidden')
document.querySelector('#app').classList.remove('hidden')
}
}