From deea258220374565bf996317bdb2ec7a25f29d0e Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 22 Mar 2023 23:47:49 -0400 Subject: [PATCH] Start work on share tab --- web-frontend/src/lib/AddressInput.svelte | 2 +- web-frontend/src/lib/CoordinateInput.svelte | 2 +- web-frontend/src/routes/app/+page.svelte | 28 ++++++++++++++++--- .../src/routes/app/CoordinateInfo.svelte | 5 ++++ .../src/routes/app/TabSelector.svelte | 14 ++++++++++ 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 web-frontend/src/routes/app/CoordinateInfo.svelte create mode 100644 web-frontend/src/routes/app/TabSelector.svelte diff --git a/web-frontend/src/lib/AddressInput.svelte b/web-frontend/src/lib/AddressInput.svelte index f92d5c0..4a4adbc 100644 --- a/web-frontend/src/lib/AddressInput.svelte +++ b/web-frontend/src/lib/AddressInput.svelte @@ -24,7 +24,7 @@ placeholder="Enter address">
- + Loading WebAssembly module...

{:then} -

Address: {addr.address}

-

({addr.latLon}) => ({addr.latLon})

- + + + + {#if tabInfo.selected === 1} + + {/if} + {:catch message} Could not start core module {/await} - + diff --git a/web-frontend/src/routes/app/CoordinateInfo.svelte b/web-frontend/src/routes/app/CoordinateInfo.svelte new file mode 100644 index 0000000..ad69387 --- /dev/null +++ b/web-frontend/src/routes/app/CoordinateInfo.svelte @@ -0,0 +1,5 @@ + + +Hi there diff --git a/web-frontend/src/routes/app/TabSelector.svelte b/web-frontend/src/routes/app/TabSelector.svelte new file mode 100644 index 0000000..c1f6e06 --- /dev/null +++ b/web-frontend/src/routes/app/TabSelector.svelte @@ -0,0 +1,14 @@ + + +
    + {#each tabInfo.tabs as tab} +
  • updateSelectedTab(tab)} class="p-2 block">{tab.label}
  • + {/each} +
+