diff --git a/src/atoms/IconGlobe.svelte b/src/atoms/IconGlobe.svelte index c49f874..0eab929 100644 --- a/src/atoms/IconGlobe.svelte +++ b/src/atoms/IconGlobe.svelte @@ -1,6 +1,6 @@ import { stores } from '@sapper/app' - import * as fn from '../utils/functions' + import { randomString } from '../utils/functions' const { page } = stores() // Props @@ -9,7 +9,7 @@ export let animated = false // Generate a random ID for the mask - const randomId = fn.randomString(6, 'A') + const randomId = randomString(6, 'A') - import * as fn from '../utils/functions' - export let href = '/' export let text = '' export let target = null diff --git a/src/atoms/TitleSite.svelte b/src/atoms/TitleSite.svelte index 1578ab6..8ed73bc 100644 --- a/src/atoms/TitleSite.svelte +++ b/src/atoms/TitleSite.svelte @@ -1,11 +1,11 @@
- {@html fn.lettersToSpan('Houses')} + {@html lettersToSpan('Houses')}
@@ -13,7 +13,7 @@
- {@html fn.lettersToSpan('World')} + {@html lettersToSpan('World')}
diff --git a/src/molecules/Photo.svelte b/src/molecules/Photo.svelte index 1ce212a..24acc34 100644 --- a/src/molecules/Photo.svelte +++ b/src/molecules/Photo.svelte @@ -3,13 +3,10 @@ import { fly } from 'svelte/transition' import { quartOut } from 'svelte/easing' import { site, currentLocation } from '../utils/store' - import * as fn from '../utils/functions' // Dependencies import * as basicScroll from 'basicscroll' - import dayjs from 'dayjs' - import advancedFormat from 'dayjs/plugin/advancedFormat' - dayjs.extend(advancedFormat) + import { getThumbnail, formatDate } from '../utils/functions' // Props and variables export let photo @@ -66,28 +63,28 @@ {#if layout === 'list'} - - - - + + + + {imgAlt} {:else} - - - - - {imgAlt} + + + + + {imgAlt} {/if} -