Remove unused code
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
export let slides: any
|
export let slides: any
|
||||||
|
|
||||||
let arrowEl: HTMLElement
|
|
||||||
let carouselEl: HTMLElement
|
let carouselEl: HTMLElement
|
||||||
let carousel: EmblaCarouselType
|
let carousel: EmblaCarouselType
|
||||||
let currentSlide = 0
|
let currentSlide = 0
|
||||||
@@ -117,7 +116,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<span class="carousel__arrow" bind:this={arrowEl}
|
<span class="carousel__arrow"
|
||||||
style:--x="{$arrowPosition.x}px"
|
style:--x="{$arrowPosition.x}px"
|
||||||
style:--y="{$arrowPosition.y}px"
|
style:--y="{$arrowPosition.y}px"
|
||||||
class:is-flipped={arrowDirection === 'prev' && !isFirstSlide || isLastSlide}
|
class:is-flipped={arrowDirection === 'prev' && !isFirstSlide || isLastSlide}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
{#if popinOpen}
|
{#if popinOpen}
|
||||||
<div class="globe__popin" transition:fly={{ y: 16, duration: 500, easing: quartOut }}>
|
<div class="globe__popin" transition:fly={{ y: 16, duration: 500, easing: quartOut }}>
|
||||||
<ul>
|
<ul>
|
||||||
{#each clusterLocations as { name, slug, country }, index}
|
{#each clusterLocations as { name, slug, country }}
|
||||||
<li>
|
<li>
|
||||||
<a href="/{country.slug}/{slug}" sveltekit:noscroll tabindex="0">
|
<a href="/{country.slug}/{slug}" sveltekit:noscroll tabindex="0">
|
||||||
<Image
|
<Image
|
||||||
|
|||||||
@@ -185,7 +185,8 @@ export class Globe {
|
|||||||
this.hoveringMarker = false
|
this.hoveringMarker = false
|
||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
console.log(marker)
|
// console.log(marker)
|
||||||
|
|
||||||
return marker
|
return marker
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import relativeTime from 'dayjs/plugin/relativeTime.js'
|
import relativeTime from 'dayjs/plugin/relativeTime.js'
|
||||||
import { quartOut } from '$animations/easings'
|
import { quartOut } from '$animations/easings'
|
||||||
import { fetchAPI, getAssetUrlKey } from '$utils/api'
|
import { fetchAPI, getAssetUrlKey } from '$utils/api'
|
||||||
import { DELAY, DURATION } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
import { photoFields } from '.'
|
import { photoFields } from '.'
|
||||||
// Components
|
// Components
|
||||||
import Metas from '$components/Metas.svelte'
|
import Metas from '$components/Metas.svelte'
|
||||||
|
|||||||
@@ -99,14 +99,14 @@
|
|||||||
** States
|
** States
|
||||||
*/
|
*/
|
||||||
// Has name
|
// Has name
|
||||||
&.is-dot-only {
|
&:global(.is-dot-only) {
|
||||||
dt, dd {
|
dt, dd {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Has country
|
// Has country
|
||||||
&.has-country {
|
&:global(.has-country) {
|
||||||
dd {
|
dd {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user