chord display site

This commit is contained in:
2023-07-05 19:48:06 +02:00
parent 8261609cb7
commit f9fea7b585
6 changed files with 6 additions and 14 deletions

View File

@@ -3,5 +3,5 @@ import {base} from "$app/paths"
/** @type {import("./$types").PageLoad} */
export function load() {
throw redirect(307, `${base}/config`)
throw redirect(307, `${base}/config/`)
}

View File

@@ -1,6 +1,4 @@
<script>
import {chords, serialPort} from "$lib/serial/connection.js"
import keySymbols from "$lib/assets/key-symbols.json"
</script>
<svelte:head>

View File

@@ -4,14 +4,14 @@
</script>
<nav>
<a href="{base}/config/chords" class:active={$page.url.pathname.endsWith("chords/")}>
<a href="{base}/config/chords/" class:active={$page.url.pathname.endsWith("chords/")}>
<span class="icon">piano</span>Chords
</a>
<a href="{base}/config/layout" class:active={$page.url.pathname.endsWith("layout/")}>
<a href="{base}/config/layout/" class:active={$page.url.pathname.endsWith("layout/")}>
<span class="icon">keyboard</span>
Layout
</a>
<a href="{base}/config/settings" class:active={$page.url.pathname.endsWith("settings/")}>
<a href="{base}/config/settings/" class:active={$page.url.pathname.endsWith("settings/")}>
<span class="icon">settings</span>
Settings
</a>

View File

@@ -3,5 +3,5 @@ import {base} from "$app/paths"
/** @type {import("./$types").PageLoad} */
export function load() {
throw redirect(307, `${base}/config/chords`)
throw redirect(307, `${base}/config/chords/`)
}