diff options
| author | Adam Soltys <[email protected]> | 2024-04-10 18:07:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-10 18:07:01 -0700 |
| commit | c92dce530d00edad2447daba619514f50418f0ac (patch) | |
| tree | 0ad9ffbac584a0132ca41d83e250b44fa03c0b02 /src/routes | |
| parent | d490f97ec5604c2a449a73410a3c4aaed4f6051c (diff) | |
| download | coinos-ui-c92dce530d00edad2447daba619514f50418f0ac.tar.gz coinos-ui-c92dce530d00edad2447daba619514f50418f0ac.zip | |
map link
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+page.svelte | 15 | ||||
| -rw-r--r-- | src/routes/map/+page.svelte | 13 |
2 files changed, 5 insertions, 23 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f1158391..150d29b1 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -6,6 +6,7 @@ import FaqCard from "$comp/FaqCard.svelte"; import Image from "$comp/Image.svelte"; import Footer from "$comp/Footer.svelte"; + import About from "$comp/About.svelte"; import { locale, t } from "$lib/translations"; import { onDestroy, onMount, tick } from "svelte"; @@ -28,19 +29,9 @@ let loaded; let observer; - let isIntersecting = false; - let About; onMount(async () => { - observer = new IntersectionObserver(async (entries) => { - About = (await import("$comp/About.svelte")).default; - isIntersecting = isIntersecting || entries[0].isIntersecting; - }); - loaded = true; - - await tick(); - observer.observe(document.getElementById("faq")); }); onDestroy(() => (loaded = false)); @@ -103,9 +94,7 @@ <div bind:this={about} /> </div> - {#if isIntersecting} - <About /> - {/if} + <About /> </main> <Footer /> diff --git a/src/routes/map/+page.svelte b/src/routes/map/+page.svelte index 53cd8bdc..c307826e 100644 --- a/src/routes/map/+page.svelte +++ b/src/routes/map/+page.svelte @@ -6,14 +6,7 @@ let { locations } = data; </script> -<div class="pt-4"> - <div class="w-[243px] mx-auto mb-4"> - <a href="/"> - <Icon icon="logo" /> - </a> - </div> - - <div class="flex justify-center items-center"> - <LocationsMap {locations} /> - </div> +<div class="h-screen w-screen"> +<LocationsMap {locations} /> </div> + |
