FEAT: Splash Screen
todo: loading status and percent
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<script>
|
||||
let { loadingState } = $props();
|
||||
</script>
|
||||
|
||||
<div class="splash">
|
||||
{#if loadingState == 'loading'}
|
||||
<div class="spinner">
|
||||
<pre class="monospace">
|
||||
▄▄▄▄▄
|
||||
██▀▀▀▀█▄ █▄ █▄
|
||||
▀██▄ ▄▀ ▄ ▄██▄██ ▀▀
|
||||
▀██▄▄ ███▄███▄ ▄███▄ ▄███▄ ██ ████▄ ██ ▄█▀█▄
|
||||
▄ ▀██▄ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▄█▀
|
||||
▀██████▀▄██ ██ ▀█▄▀███▀▄▀███▀▄██▄██ ██▄██▄▀█▄▄▄
|
||||
</pre>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.splash {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.spinner {
|
||||
}
|
||||
.monospace {
|
||||
font-family: monospace;
|
||||
color: var(--black);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user