Updates on splash screen
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-12-12 17:27:12 +01:00
parent e77e710983
commit 3d613067a3
4 changed files with 28 additions and 9 deletions

View file

@ -1,2 +0,0 @@
engine-strict=true
resolution-mode=highest

View file

@ -3,10 +3,9 @@
import { fade } from 'svelte/transition';
let visible = true;
let time = 0;
let time = 1000;
onMount(() => {
time = 1000;
setTimeout(() => {
visible = false;
}, time);
@ -14,15 +13,31 @@
</script>
{#if visible}
<img transition:fade src="/splash.webp" alt="splash" />
<img class='background' transition:fade src="/splash.webp" alt="splash" />
<div class='wrapper'>
<img transition:fade class='logo' src="/images/splash-logo.png" alt="splash-logo" />
</div>
{/if}
<style>
img {
.background {
position: absolute;
z-index: 99;
z-index: 3;
width: 100%;
height: 100%;
margin: 0 auto;
}
.logo {
max-width: 100%;
height: auto;
z-index: 4;
}
.wrapper {
display: grid;
place-content: center;
height: 100dvh;
width: 100dvw;
}
</style>

View file

@ -1,3 +1,3 @@
export const prerender = false;
export const ssr = false;
export const prerender = true;
export const ssr = true;
export const csr = true;

View file

@ -17,6 +17,12 @@ const config = {
precompress: false,
})
},
server: {
fs: {
// Allow serving files from one level up to the project root
allow: ['..'],
},
},
};
export default config;