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

@@ -2,11 +2,10 @@
import {serialPort, syncing} from "$lib/serial/connection.js"
import {browser} from "$app/environment"
import {base} from "$app/paths"
import {slide} from "svelte/transition"
</script>
<nav>
<a href="/" class="title">dot i/o</a>
<a href={base} class="title">dot i/o</a>
<div class="steps">
<a href={base} title="CPM - characters per minute" class="icon train cpm">music_note</a>

View File

@@ -1,5 +0,0 @@
<svg>
<defs />
<circle cx="16" cy="16" r="16" color="black" />
</svg>

Before

Width:  |  Height:  |  Size: 75 B

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/`)
}