Skip to content

Commit da6c412

Browse files
committed
sup
1 parent b4499c1 commit da6c412

2 files changed

Lines changed: 73 additions & 36 deletions

File tree

src/routes/(sup)/sup/loves/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ onMount(() => {
1919
2020
2121
const routes = [
22-
`The world is wonderful, and there is so much to love.`,
22+
`The world is wonderful, and there is so much to love.`, // TODO
2323
];
2424
2525
</script>
2626

2727

2828
<svelte:head>
29-
<title> Loves × Sup#2.0 </title>
30-
<meta name="description" content="All the things I love" />
29+
<title> Music × Sup#2.0 </title>
30+
<meta name="description" content="All the music I listen to and create." />
3131
</svelte:head>
3232

3333

3434
<Breadcrumbs levels={[
35-
{ text: "loves" },
35+
{ text: "music" },
3636
]} />
3737

3838
<Main>
Lines changed: 69 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,75 @@
11
<script lang="ts">
22
3-
import Cards from "#parts/core/cards.svelte";
4-
import LinkCard from "#parts/ui/card.link.svelte";
3+
import { pick_random } from "#scripts/utils";
4+
5+
import Main from "#parts/core/main.svelte";
6+
import Cards from "#parts/core/cards.svelte";
7+
import Block from "#parts/ui/block.svelte";
8+
import Breadcrumbs from "#parts/ui/breadcrumbs.svelte";
9+
import LinkCard from "#parts/ui/card.link.svelte";
10+
11+
import { onMount } from "svelte";
12+
13+
14+
let displayed_route = $state("");
15+
16+
onMount(() => {
17+
displayed_route = pick_random(routes);
18+
});
19+
20+
21+
const routes = [
22+
`Music is love, music is life.`, // TODO
23+
];
524
625
</script>
726

827

9-
<Cards>
10-
<LinkCard
11-
link="/sup/music/listen"
12-
text="Music I Listen To"
13-
capt="electronic, hardcore, beatbox, rhythm game music"
14-
picts={[
15-
"icons/artists/bo-burnham.webp",
16-
"icons/artists/camellia.png",
17-
"icons/artists/pikasonic.jpg",
18-
"icons/artists/silentroom.jpg",
19-
"icons/artists/vexento.jpg",
20-
"icons/artists/wing.jpg",
21-
]}
22-
aspect="square"
23-
/>
24-
<LinkCard
25-
link="/sup/music/create"
26-
text="Music I Make"
27-
capt="electronic, wackcore, game music"
28-
picts={[
29-
"covers/music/cortex.dactyl.png",
30-
"covers/music/cortex.voxel.png",
31-
"covers/music/elysion.aphenia.png",
32-
"covers/music/elysion.ceruleus.png",
33-
"covers/music/vision.another-dawn.png",
34-
"covers/music/vision.reminiscence.png",
35-
]}
36-
aspect="square"
37-
/>
38-
</Cards>
28+
<svelte:head>
29+
<title> Loves × Sup#2.0 </title>
30+
<meta name="description" content="All the things I love" />
31+
</svelte:head>
32+
33+
34+
<Breadcrumbs levels={[
35+
{ text: "loves" },
36+
]} />
37+
38+
<Main>
39+
<Block>
40+
{#if displayed_route}
41+
{@html displayed_route}
42+
{/if}
43+
</Block>
44+
45+
<Cards>
46+
<LinkCard
47+
link="/sup/music/listen"
48+
text="Music I Listen To"
49+
capt="electronic, hardcore, beatbox, rhythm game music"
50+
picts={[
51+
"icons/artists/bo-burnham.webp",
52+
"icons/artists/camellia.png",
53+
"icons/artists/pikasonic.jpg",
54+
"icons/artists/silentroom.jpg",
55+
"icons/artists/vexento.jpg",
56+
"icons/artists/wing.jpg",
57+
]}
58+
aspect="square"
59+
/>
60+
<LinkCard
61+
link="/sup/music/create"
62+
text="Music I Make"
63+
capt="electronic, wackcore, game music"
64+
picts={[
65+
"covers/music/cortex.dactyl.png",
66+
"covers/music/cortex.voxel.png",
67+
"covers/music/elysion.aphenia.png",
68+
"covers/music/elysion.ceruleus.png",
69+
"covers/music/vision.another-dawn.png",
70+
"covers/music/vision.reminiscence.png",
71+
]}
72+
aspect="square"
73+
/>
74+
</Cards>
75+
</Main>

0 commit comments

Comments
 (0)