Globe edits WIP
All checks were successful
continuous-integration/drone/push Build is passing

- Added visible continents to options
This commit is contained in:
2020-04-19 14:49:52 +02:00
parent c1bb2f31bc
commit 094614f83c
8 changed files with 238 additions and 210 deletions

View File

@@ -23,6 +23,7 @@
data {
id
name
coordinates
}
}
countries {
@@ -42,6 +43,7 @@
region
country { id }
description
close
coordinates
illu_desktop { full_url }
illu_desktop_2x { full_url }

View File

@@ -8,6 +8,8 @@
pageReady,
pageAnimation
} from 'utils/store'
// Dependencies
import Lazy from 'svelte-lazy'
// Components
import IconArrow from 'atoms/IconArrow'
import TitleSite from 'atoms/TitleSite'
@@ -65,7 +67,11 @@
</div>
</div>
<InteractiveGlobe />
{#if process.browser}
<Lazy offset={window.innerHeight}>
<InteractiveGlobe />
</Lazy>
{/if}
<Locations />
</section>

View File

@@ -1,7 +1,9 @@
<script>
import { onMount } from 'svelte'
import { stores } from '@sapper/app'
import { site, pageReady } from 'utils/store'
import { site, pageReady, pageAnimation } from 'utils/store'
// Dependencies
import Lazy from 'svelte-lazy'
// Components
import IconArrow from 'atoms/IconArrow'
import TitleSite from 'atoms/TitleSite'
@@ -76,7 +78,11 @@
{/if}
</div>
<InteractiveGlobe type="part" />
{#if process.browser}
<Lazy offset={window.innerHeight}>
<InteractiveGlobe type="part" />
</Lazy>
{/if}
<Footer />
</section>