-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path+page.svelte
More file actions
47 lines (43 loc) · 1.23 KB
/
+page.svelte
File metadata and controls
47 lines (43 loc) · 1.23 KB
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
<script lang="ts">
import Svg from '@fuzdev/fuz_ui/Svg.svelte';
import {logo_fuz} from '@fuzdev/fuz_ui/logos.js';
import {resolve} from '$app/paths';
import {random_item} from '@fuzdev/fuz_util/random.js';
import ColorSchemeInput from '@fuzdev/fuz_ui/ColorSchemeInput.svelte';
import ThemeInput from '@fuzdev/fuz_ui/ThemeInput.svelte';
import Mreows, {mreow_items} from '$lib/Mreows.svelte';
let mreows: Array<{glyph: string}> | undefined = $state.raw([
random_item(mreow_items),
mreow_items[4]!,
]);
</script>
<main>
<section class="box">
<header class="box pt_xl">
<Svg data={logo_fuz} size="var(--icon_size_xl)" />
<h1 class="mt_xl2">fuz_template</h1>
</header>
<div class="column gap_lg">
<a href={resolve('/about')} class="panel px_xl py_md font_size_xl2 text-align:center">about</a
>
<a href={resolve('/docs')} class="panel px_xl py_md font_size_xl2 text-align:center">docs</a>
</div>
</section>
<section class="box panel">
<div class="p_xl box">
<h2 class="mt_0">color scheme</h2>
<ColorSchemeInput />
<h2>theme</h2>
<ThemeInput />
</div>
</section>
<Mreows bind:mreows />
</main>
<style>
main {
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
}
</style>