diff --git a/src/lib/Spinner.svelte b/src/lib/Spinner.svelte deleted file mode 100644 index 9c56791..0000000 --- a/src/lib/Spinner.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - -
- - diff --git a/src/lib/TestCard.svelte b/src/lib/TestCard.svelte index 1d9016f..8a04d59 100644 --- a/src/lib/TestCard.svelte +++ b/src/lib/TestCard.svelte @@ -7,7 +7,7 @@ import { createEventDispatcher } from 'svelte'; const dispatch = createEventDispatcher<{ focus: void }>(); - export let full = false; + export let bg = false; let sizes = { blockSize: 64, @@ -28,7 +28,7 @@
dispatch('focus') && document.body.requestFullscreen()} > - (sizes = ev.detail)} subdued={!full} /> + (sizes = ev.detail)} subdued={bg} />
@@ -141,7 +141,7 @@ } } - .test-card:not(.full) { + .test-card.bg { & .info, & .column, & .axes, diff --git a/src/routes/card/+page.svelte b/src/routes/(fullscreen)/+layout.svelte similarity index 94% rename from src/routes/card/+page.svelte rename to src/routes/(fullscreen)/+layout.svelte index 8c6400f..b2cdd7e 100644 --- a/src/routes/card/+page.svelte +++ b/src/routes/(fullscreen)/+layout.svelte @@ -3,6 +3,7 @@ {$i18n.t('Back')} + diff --git a/src/routes/(fullscreen)/card/+page.svelte b/src/routes/(fullscreen)/card/+page.svelte new file mode 100644 index 0000000..eb7b750 --- /dev/null +++ b/src/routes/(fullscreen)/card/+page.svelte @@ -0,0 +1,5 @@ + + + diff --git a/src/routes/microphone/+page.svelte b/src/routes/(fullscreen)/mouse/+page.svelte similarity index 100% rename from src/routes/microphone/+page.svelte rename to src/routes/(fullscreen)/mouse/+page.svelte diff --git a/src/routes/(pages)/+layout.svelte b/src/routes/(pages)/+layout.svelte new file mode 100644 index 0000000..136a390 --- /dev/null +++ b/src/routes/(pages)/+layout.svelte @@ -0,0 +1,50 @@ + + + goto('/card')} /> +
+ {$i18n.t('Back')} + +
+ + diff --git a/src/routes/+page.svelte b/src/routes/(pages)/+page.svelte similarity index 96% rename from src/routes/+page.svelte rename to src/routes/(pages)/+page.svelte index c4cde9c..9ac1bc0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/(pages)/+page.svelte @@ -1,5 +1,5 @@ diff --git a/src/routes/+page.ts b/src/routes/(pages)/+page.ts similarity index 100% rename from src/routes/+page.ts rename to src/routes/(pages)/+page.ts diff --git a/src/routes/audio/(channels)/+layout.svelte b/src/routes/(pages)/audio/(channels)/+layout.svelte similarity index 100% rename from src/routes/audio/(channels)/+layout.svelte rename to src/routes/(pages)/audio/(channels)/+layout.svelte diff --git a/src/routes/audio/(channels)/channels-5.1/+page.svelte b/src/routes/(pages)/audio/(channels)/channels-5.1/+page.svelte similarity index 100% rename from src/routes/audio/(channels)/channels-5.1/+page.svelte rename to src/routes/(pages)/audio/(channels)/channels-5.1/+page.svelte diff --git a/src/routes/audio/(channels)/channels-7.1/+page.svelte b/src/routes/(pages)/audio/(channels)/channels-7.1/+page.svelte similarity index 100% rename from src/routes/audio/(channels)/channels-7.1/+page.svelte rename to src/routes/(pages)/audio/(channels)/channels-7.1/+page.svelte diff --git a/src/routes/audio/(channels)/cycle-button.svelte b/src/routes/(pages)/audio/(channels)/cycle-button.svelte similarity index 100% rename from src/routes/audio/(channels)/cycle-button.svelte rename to src/routes/(pages)/audio/(channels)/cycle-button.svelte diff --git a/src/routes/audio/(channels)/speaker.svelte b/src/routes/(pages)/audio/(channels)/speaker.svelte similarity index 100% rename from src/routes/audio/(channels)/speaker.svelte rename to src/routes/(pages)/audio/(channels)/speaker.svelte diff --git a/src/routes/audio/(channels)/stereo-test.svelte b/src/routes/(pages)/audio/(channels)/stereo-test.svelte similarity index 100% rename from src/routes/audio/(channels)/stereo-test.svelte rename to src/routes/(pages)/audio/(channels)/stereo-test.svelte diff --git a/src/routes/audio/+layout.svelte b/src/routes/(pages)/audio/+layout.svelte similarity index 100% rename from src/routes/audio/+layout.svelte rename to src/routes/(pages)/audio/+layout.svelte diff --git a/src/routes/audio/+page.svelte b/src/routes/(pages)/audio/+page.svelte similarity index 100% rename from src/routes/audio/+page.svelte rename to src/routes/(pages)/audio/+page.svelte diff --git a/src/routes/audio/phase.svelte b/src/routes/(pages)/audio/phase.svelte similarity index 100% rename from src/routes/audio/phase.svelte rename to src/routes/(pages)/audio/phase.svelte diff --git a/src/routes/av-sync/+page.svelte b/src/routes/(pages)/av-sync/+page.svelte similarity index 100% rename from src/routes/av-sync/+page.svelte rename to src/routes/(pages)/av-sync/+page.svelte diff --git a/src/routes/camera/+page.svelte b/src/routes/(pages)/camera/+page.svelte similarity index 100% rename from src/routes/camera/+page.svelte rename to src/routes/(pages)/camera/+page.svelte diff --git a/src/routes/gamepad/+page.svelte b/src/routes/(pages)/gamepad/+page.svelte similarity index 100% rename from src/routes/gamepad/+page.svelte rename to src/routes/(pages)/gamepad/+page.svelte diff --git a/src/routes/keyboard/+page.svelte b/src/routes/(pages)/keyboard/+page.svelte similarity index 100% rename from src/routes/keyboard/+page.svelte rename to src/routes/(pages)/keyboard/+page.svelte diff --git a/src/routes/mouse/+page.svelte b/src/routes/(pages)/microphone/+page.svelte similarity index 100% rename from src/routes/mouse/+page.svelte rename to src/routes/(pages)/microphone/+page.svelte diff --git a/src/routes/sensors/+page.svelte b/src/routes/(pages)/sensors/+page.svelte similarity index 100% rename from src/routes/sensors/+page.svelte rename to src/routes/(pages)/sensors/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 97bbb08..9a771c5 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,11 +4,7 @@ import '@fontsource/b612/700.css'; import '@tabler/icons-webfont/tabler-icons.css'; import '../index.css'; - import TestCard from '$lib/TestCard.svelte'; - import { page } from '$app/stores'; import { onMount } from 'svelte'; - import { goto } from '$app/navigation'; - import { i18n } from '$lib/i18n'; let idleTimeout: NodeJS.Timeout | undefined; onMount(() => { @@ -20,53 +16,11 @@ }, 3000); }); }); - - $: onlyCard = $page.data.card; - goto('/card')} /> -
- {$i18n.t('Back')} - -
+