diff --git a/web/src/lib/components/PlayerBar.svelte b/web/src/lib/components/PlayerBar.svelte index 5f22633b..68caddcf 100644 --- a/web/src/lib/components/PlayerBar.svelte +++ b/web/src/lib/components/PlayerBar.svelte @@ -77,10 +77,12 @@ {:else}
- + @@ -229,8 +231,8 @@
- {#if user.value !== null && page.url.pathname !== '/login'} + {#if user.value !== null && page.url.pathname !== '/login' && page.url.pathname !== '/now-playing'} {@render children()} {:else} {@render children()} diff --git a/web/src/routes/now-playing/+page.svelte b/web/src/routes/now-playing/+page.svelte new file mode 100644 index 00000000..54ccd4a1 --- /dev/null +++ b/web/src/routes/now-playing/+page.svelte @@ -0,0 +1,241 @@ + + +{pageTitle(current ? `${current.title} · ${current.artist_name}` : 'Now playing')} + +
+
+ +
Now playing
+
+ + {#if !current} +
+ {:else} +
+
+ +
+ +
+

+ {current.title} +

+

+ + {current.artist_name} + + {#if current.album_title} + · + + {current.album_title} + + {/if} +

+
+ +
+ +
+ {formatDuration(player.position)} + {formatDuration(player.duration)} +
+
+ +
+ + + + + + + + + +
+ +
+
+ +
+ +
+ + +
+ + +
+
+ {/if} +