diff --git a/frontend/src/Layout.svelte b/frontend/src/Layout.svelte
index 53d9153..88e6517 100644
--- a/frontend/src/Layout.svelte
+++ b/frontend/src/Layout.svelte
@@ -57,7 +57,7 @@
oldDeviceStatus = $deviceStatus;
reject();
}
- }, 2000);
+ }, 1500);
});
}
diff --git a/frontend/src/components/HomePlaylistsSection.svelte b/frontend/src/components/HomePlaylistsSection.svelte
index 9cade8d..ef47a3b 100644
--- a/frontend/src/components/HomePlaylistsSection.svelte
+++ b/frontend/src/components/HomePlaylistsSection.svelte
@@ -14,6 +14,7 @@
// ui components
import { Modal } from '@skeletonlabs/skeleton-svelte';
import { toaster } from '../lib/toaster';
+ import PlaylistCard from './PlaylistCard.svelte';
// utils
import { formatDate } from '../lib/utils';
@@ -153,46 +154,7 @@
id="playlist-row"
>
{#each $playlists as playlist}
-
-
-
-
-
-
-
- {playlist.name}
-
-
-
- {playlist.description != '~' ? playlist.description : 'No description'}
-
-
-
-
- {playlist.size} presets •
-
- Updated {formatDate(playlist.last_updated)}
-
-
-
-
-
-
+
diff --git a/frontend/src/components/PlaylistCard.svelte b/frontend/src/components/PlaylistCard.svelte
new file mode 100644
index 0000000..b736ab1
--- /dev/null
+++ b/frontend/src/components/PlaylistCard.svelte
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+ {playlist.name}
+
+
+
+ {playlist.description != '~' ? playlist.description : 'No description'}
+
+
+
+
+ {playlist.size} presets •
+
+ Updated {formatDate(playlist.last_updated)}
+
+
+
+
+
+
diff --git a/frontend/src/pages/Device.svelte b/frontend/src/pages/Device.svelte
index 6ba9a87..8ac2d61 100644
--- a/frontend/src/pages/Device.svelte
+++ b/frontend/src/pages/Device.svelte
@@ -1,8 +1,14 @@
-
+{#if $deviceStatus === 'online'}
+
+{/if}
diff --git a/frontend/src/pages/Playlists.svelte b/frontend/src/pages/Playlists.svelte
new file mode 100644
index 0000000..d1e6893
--- /dev/null
+++ b/frontend/src/pages/Playlists.svelte
@@ -0,0 +1,11 @@
+
+
+
+ {#each $playlists as playlist}
+
+ {/each}
+
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index bfdf3cf..34b54f0 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -1,7 +1,9 @@
import Home from './pages/Home.svelte';
import Device from './pages/Device.svelte';
+import Playlists from './pages/Playlists.svelte';
export default {
'/': Home,
- '/device': Device
+ '/device': Device,
+ '/playlists': Playlists
};