diff options
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> + |
