Use page transition component to avoid repetition on main
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import '$utils/polyfills'
|
||||
// Components
|
||||
import SVGSprite from '$components/SVGSprite.svelte'
|
||||
import PageTransition from '$components/PageTransition.svelte'
|
||||
import Switcher from '$components/molecules/Switcher.svelte'
|
||||
import Footer from '$components/organisms/Footer.svelte'
|
||||
|
||||
@@ -47,7 +48,7 @@
|
||||
if (!$page.query.get('country') && !$page.path.includes('/shop/poster')) {
|
||||
scrollToTop()
|
||||
}
|
||||
}, DURATION.PAGE_OUT * 1.5)
|
||||
}, DURATION.PAGE_OUT + 1)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -59,7 +60,9 @@
|
||||
|
||||
<Switcher isOver={!!$page.params.location && !!$page.params.photo} />
|
||||
|
||||
<slot />
|
||||
<PageTransition refresh={$page.path}>
|
||||
<slot />
|
||||
</PageTransition>
|
||||
|
||||
{#if !$page.params.photo}
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user