aboutsummaryrefslogtreecommitdiff
path: root/lib/components/InitialLoadScreen.svelte
blob: 3800715ed2abe7074092b2bf972279e2d9e7bfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<script lang="ts">
  import AppTitle from '@hollowdark/lib/components/AppTitle.svelte'
  import ProgressBar from '@hollowdark/lib/components/ProgressBar.svelte'
  import { loadingProgress } from '@hollowdark/loading/progress'

  const progress = $derived($loadingProgress)
</script>

<section class="initial-load">
  <div class="top">
    <AppTitle size={32} letterSpacing={1} />
  </div>

  <div class="bar">
    <ProgressBar value={progress.percentage} />
  </div>

  <p class="message">{progress.currentMessage}</p>
  <p class="note">This will happen once. It will not happen again.</p>
</section>

<style>
  .initial-load {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    text-align: center;
  }

  .top {
    margin-bottom: 120px;
  }

  .bar {
    margin-bottom: var(--space-6);
  }

  .message {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-2);
  }

  .note {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.3px;
    margin: 0;
  }
</style>