ui: error page

This commit is contained in:
2025-09-30 17:27:04 -04:00
parent 0228f6cd4d
commit d588753183
3 changed files with 35 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
forward: '/icons/rightarrow.png', forward: '/icons/rightarrow.png',
play: '/icons/speaker.png', play: '/icons/speaker.png',
search: '/icons/internet.png', search: '/icons/internet.png',
globe: '/icons/github.svg' globe: '/icons/github-white.svg'
}; };
let history: string[] = $state([]); let history: string[] = $state([]);

14
src/routes/+error.svelte Normal file
View File

@@ -0,0 +1,14 @@
<script lang="ts">
import { page } from '$app/stores';
</script>
<div>
<h2>Error {$page.status}</h2>
<p>{$page.error?.message || 'An error occurred'}</p>
</div>
<style>
h2 {
margin-top: 0;
}
</style>

View File

@@ -0,0 +1,20 @@
<div>
<h2>Library</h2>
<p>Your music collection</p>
<section class="library-content">
<div class="field-row-stacked">
<!-- Library content will go here -->
</div>
</section>
</div>
<style>
h2 {
margin-top: 0;
}
.library-content {
margin-top: 20px;
}
</style>