sapper-noscroll here for the rescue, keeps the scroll position and loads the new page content
40 lines
1.3 KiB
Svelte
40 lines
1.3 KiB
Svelte
<script>
|
|
// Svelte
|
|
import { site, currentLocation } from '../utils/store'
|
|
|
|
// Components
|
|
import LinkTranslate from '../atoms/LinkTranslate'
|
|
import Switcher from '../molecules/Switcher'
|
|
</script>
|
|
|
|
<footer class="footer">
|
|
<div class="wrap">
|
|
<div class="footer__left">
|
|
<Switcher radius="30" />
|
|
</div>
|
|
|
|
<ul class="footer__right">
|
|
<li>
|
|
<ul>
|
|
<li>
|
|
<LinkTranslate href="/credits" text="Credits" rel="prefetch" noScroll="true" />
|
|
</li>
|
|
{#if $site}
|
|
<li class="instagram">
|
|
<LinkTranslate href="https://instagram.com/{$site.instagram}" text="Instagram" target="_blank" rel="noopener">
|
|
<img src="/img/icons/instagram.svg" alt="Instagram">
|
|
</LinkTranslate>
|
|
</li>
|
|
{/if}
|
|
</ul>
|
|
</li>
|
|
<li class="cetrucflotte">
|
|
<span>A project by</span>
|
|
<a href="https://cetrucflotte.com" target="_blank" rel="noopener">
|
|
<img src="/img/logo-ctf.svg" alt="Cetrucflotte logo's">
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</footer>
|