diff --git a/package.json b/package.json index 01a04b2..4ac9204 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@sveltejs/adapter-static": "^3.0.1", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", + "@tabler/icons-svelte": "^2.47.0", "lodash": "^4.17.21", "normalize.css": "^8.0.1", "svelte": "^4.2.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdb4133..d8f1583 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ dependencies: '@sveltejs/vite-plugin-svelte': specifier: ^3.0.0 version: 3.0.2(svelte@4.2.9)(vite@5.0.12) + '@tabler/icons-svelte': + specifier: ^2.47.0 + version: 2.47.0(svelte@4.2.9) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -674,6 +677,19 @@ packages: - supports-color dev: false + /@tabler/icons-svelte@2.47.0(svelte@4.2.9): + resolution: {integrity: sha512-xL2NyCUUhBQv0lXylgNCpfHtMW4Ihu0hCacaYXeX+NiS1LO0geqXk/0lkrBH+u/ZLX6vyqUYNFjawjzmxthFjw==} + peerDependencies: + svelte: '>=3 <5' + dependencies: + '@tabler/icons': 2.47.0 + svelte: 4.2.9 + dev: false + + /@tabler/icons@2.47.0: + resolution: {integrity: sha512-4w5evLh+7FUUiA1GucvGj2ReX2TvOjEr4ejXdwL/bsjoSkof6r1gQmzqI+VHrE2CpJpB3al7bCTulOkFa/RcyA==} + dev: false + /@tootallnate/quickjs-emscripten@0.23.0: resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} dev: true diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 54deb88..65cadbf 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,4 @@ - -{#if !onlyCard} -
- -
-{/if} +
+ +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e5f6d19..95ee655 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,8 +1,52 @@ + + @@ -15,6 +59,12 @@ .options { display: flex; - justify-content: center; + justify-content: space-evenly; + gap: 2em; + + & a { + text-align: center; + text-decoration: none; + } } diff --git a/src/routes/audio/+page.svelte b/src/routes/audio/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/camera/+page.svelte b/src/routes/camera/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/card/+page.svelte b/src/routes/card/+page.svelte index e69de29..a340a21 100644 --- a/src/routes/card/+page.svelte +++ b/src/routes/card/+page.svelte @@ -0,0 +1,26 @@ + + + Back + + diff --git a/src/routes/gamepad/+page.svelte b/src/routes/gamepad/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/keyboard/+page.svelte b/src/routes/keyboard/+page.svelte new file mode 100644 index 0000000..58d85ea --- /dev/null +++ b/src/routes/keyboard/+page.svelte @@ -0,0 +1,60 @@ + + +

Keyboard testing

+

Press a key on the keyboard to see the event object and the key code.

+
+ {#if key} + {key} + {/if} + {#if code} + ({code}) + {/if} +
+ +

Pressed keys:

+ + + diff --git a/src/routes/microphone/+page.svelte b/src/routes/microphone/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/mouse/+page.svelte b/src/routes/mouse/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/sensors/+page.svelte b/src/routes/sensors/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/video/+page.svelte b/src/routes/video/+page.svelte new file mode 100644 index 0000000..e69de29