From 814958cb462e2622c912c4018498895e99ca02b2 Mon Sep 17 00:00:00 2001 From: gammelalf Date: Tue, 24 Jan 2023 13:34:05 +0100 Subject: Swap between grid and flex based on screen width --- web/src/routes/+page.svelte | 152 ++++++++++++++++++++++++++------------------ 1 file changed, 89 insertions(+), 63 deletions(-) (limited to 'web/src') diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index ba9bd98..28177e2 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -104,83 +104,109 @@ } -
-
-
-

Add your song

-
- + +

Add your song

+ + +
+
+ {#each searchResults as { title, artist, source, uri, weight } (uri)} +
+ - - {#each searchResults as { title, artist, source, uri, weight } (uri)} -
- - {artist + ' - ' + title} - {source} -
- {/each} -
-
-

Playlist

- {#each playlist as { title, artist, source, uri, weight } (uri)} -
- - - {`${weight} ${artist} - ${title}`} - {`(${source})`} -
- {/each} -
+ Add + + {artist + ' - ' + title} + {source} +
+ {/each}
- -
- -

- {#if currentSong !== null} - {currentSong.title}
{currentSong.artist} - {:else} - No songs schedulded :(
Try adding some. - {/if} -

+

Playlist

+
+ {#each playlist as { title, artist, source, uri, weight } (uri)} +
+ + + {`${weight} ${artist} - ${title}`} + {`(${source})`} +
+ {/each}
+
+ +

+ {#if currentSong !== null} + {currentSong.title}
{currentSong.artist} + {:else} + No songs schedulded :(
Try adding some. + {/if} +

+
+