From 1e4cd1fa4f33eb361e5b97a41f05aef17dd34405 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 1 Mar 2023 08:20:18 -0500 Subject: [PATCH] Start work on multiple pages --- web-frontend/src/routes/+layout.svelte | 27 ++++++ web-frontend/src/routes/+page.svelte | 94 +-------------------- web-frontend/src/routes/decode/+page.svelte | 4 + web-frontend/src/routes/encode/+page.svelte | 94 +++++++++++++++++++++ 4 files changed, 126 insertions(+), 93 deletions(-) create mode 100644 web-frontend/src/routes/decode/+page.svelte create mode 100644 web-frontend/src/routes/encode/+page.svelte diff --git a/web-frontend/src/routes/+layout.svelte b/web-frontend/src/routes/+layout.svelte index 2e511e0..438e620 100644 --- a/web-frontend/src/routes/+layout.svelte +++ b/web-frontend/src/routes/+layout.svelte @@ -2,4 +2,31 @@ import '../app.css'; +
+ +
+ diff --git a/web-frontend/src/routes/+page.svelte b/web-frontend/src/routes/+page.svelte index d1f9c4b..b32d4db 100644 --- a/web-frontend/src/routes/+page.svelte +++ b/web-frontend/src/routes/+page.svelte @@ -1,96 +1,4 @@ -

Encoding

- -{#if wasmStatus == WasmStatus.Loaded || wasmStatus == WasmStatus.NotLoaded} -

Current cursor: {addr} => ({latlng.lat}, {latlng.lng})

- -
-
-
-{:else if wasmStatus == WasmStatus.Errored} -
-
- -
-
-

Could not start core module

-

Error: {wasmError}.

-
-
-{/if} - - +

Home

diff --git a/web-frontend/src/routes/decode/+page.svelte b/web-frontend/src/routes/decode/+page.svelte new file mode 100644 index 0000000..eb28667 --- /dev/null +++ b/web-frontend/src/routes/decode/+page.svelte @@ -0,0 +1,4 @@ + + +

Decode

diff --git a/web-frontend/src/routes/encode/+page.svelte b/web-frontend/src/routes/encode/+page.svelte new file mode 100644 index 0000000..8fbdbe2 --- /dev/null +++ b/web-frontend/src/routes/encode/+page.svelte @@ -0,0 +1,94 @@ + + + + +

Encode

+ +{#if wasmStatus == WasmStatus.Loaded || wasmStatus == WasmStatus.NotLoaded} +

Current cursor: {addr} => ({latlng.lat}, {latlng.lng})

+ +
+
+
+{:else if wasmStatus == WasmStatus.Errored} +
+
+ +
+
+

Could not start core module

+

Error: {wasmError}.

+
+
+{/if}