diff --git a/src/atoms/Button.svelte b/src/atoms/Button.svelte index 872d098..4ed08cf 100644 --- a/src/atoms/Button.svelte +++ b/src/atoms/Button.svelte @@ -2,7 +2,6 @@ export let href = '#' export let type = 'a' export let text = '' - export let noScroll = null {#if type === 'button'} @@ -14,7 +13,7 @@ {:else} - +
{text} diff --git a/src/atoms/LinkChange.svelte b/src/atoms/LinkChange.svelte index da3a8ce..8f84428 100644 --- a/src/atoms/LinkChange.svelte +++ b/src/atoms/LinkChange.svelte @@ -1,10 +1,9 @@ - + {text} diff --git a/src/atoms/LinkTranslate.svelte b/src/atoms/LinkTranslate.svelte index 727b377..641a155 100644 --- a/src/atoms/LinkTranslate.svelte +++ b/src/atoms/LinkTranslate.svelte @@ -3,10 +3,9 @@ export let text = '' export let target = null export let rel = null - export let noScroll = null - +
{text} diff --git a/src/atoms/TitleSite.svelte b/src/atoms/TitleSite.svelte index f7becb1..cfd1707 100644 --- a/src/atoms/TitleSite.svelte +++ b/src/atoms/TitleSite.svelte @@ -6,28 +6,30 @@ import { animateIn } from 'animations/TitleSite' // Props and variables - export let init = false - let scope let mounted = false + let scope /* - ** Run code on component mount + ** Run code when mounted */ onMount(() => { - animateIn(scope, init) + animateIn(scope) mounted = true }) -
+
{@html charsToSpan('Houses')}
- + of the diff --git a/src/atoms/ToggleLayout.svelte b/src/atoms/ToggleLayout.svelte index 593e250..e6bbf39 100644 --- a/src/atoms/ToggleLayout.svelte +++ b/src/atoms/ToggleLayout.svelte @@ -8,7 +8,7 @@ /* - ** Run code on browser only + ** Run code when mounted */ onMount(() => { // Get layout setting from storage diff --git a/src/molecules/Location.svelte b/src/molecules/Location.svelte index 0756d72..46307c5 100644 --- a/src/molecules/Location.svelte +++ b/src/molecules/Location.svelte @@ -7,7 +7,7 @@
- + Flag of {country.name}

{name}

diff --git a/src/molecules/Photo.svelte b/src/molecules/Photo.svelte index 7cedfe1..692b8bc 100644 --- a/src/molecules/Photo.svelte +++ b/src/molecules/Photo.svelte @@ -46,7 +46,7 @@
- + diff --git a/src/molecules/Switcher.svelte b/src/molecules/Switcher.svelte index b8005e5..5c3fec0 100644 --- a/src/molecules/Switcher.svelte +++ b/src/molecules/Switcher.svelte @@ -22,7 +22,7 @@
- +
  • - +
  • {#if $site}
  • diff --git a/src/organisms/Locations.svelte b/src/organisms/Locations.svelte index 1eb8411..e52629a 100644 --- a/src/organisms/Locations.svelte +++ b/src/organisms/Locations.svelte @@ -32,7 +32,7 @@ /* - ** Run code on component mount + ** Run code when mounted */ onMount(() => { // Entering transition diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index 551cd3a..e7ecddd 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -73,14 +73,11 @@ locations, pageReady } from 'utils/store' + const { page } = stores() // Components - import Transition from 'utils/Transition' import AnalyticsTracker from 'utils/AnalyticsTracker' - // Variables - const { page } = stores() - /* ** Manipulate data @@ -92,7 +89,9 @@ $countries.forEach(country => { const continent = $continents.find(cont => cont.id === country.continent.id) continent.countries = [] - !continent.countries.includes(country) && continent.countries.push(country) + if (!continent.countries.includes(country)) { + continent.countries.push(country) + } }) // Replace each location's country by the database @@ -107,12 +106,12 @@ -
    +
    -{#if process.env.CONFIG.TRANSITION === 'true'} - -{/if} - diff --git a/src/routes/choose.svelte b/src/routes/choose.svelte index 39ea9a7..7d84750 100644 --- a/src/routes/choose.svelte +++ b/src/routes/choose.svelte @@ -5,8 +5,7 @@ site, currentLocation, currentPhotos, - pageReady, - pageTransition + pageReady } from 'utils/store' // Components @@ -15,11 +14,11 @@ import Globe from 'molecules/InteractiveGlobe' import Locations from 'organisms/Locations' import Footer from 'organisms/Footer' + import Transition from 'utils/Transition' import SocialMetas from 'utils/SocialMetas' // Animations import { animateIn } from 'animations/page' - pageTransition.onAnimationEnd = animateIn // Variables const { page } = stores() @@ -52,25 +51,27 @@ /> -
    -
    -
    - - - + +
    +
    +
    + + + - + +
    + +
    +

    {$site.explore_globe}

    +
    -
    -

    {$site.explore_globe}

    -
    -
    + - + +
    - - - -