Update stuff regarding to latest SvelteKit updates

This commit is contained in:
2022-08-30 09:21:02 +02:00
parent 4198d2cd1f
commit 3618414aa0
19 changed files with 108 additions and 107 deletions

View File

@@ -78,7 +78,7 @@
<div class="newsletter-form__bottom">
{#if past}
<a href="/subscribe" class="past-issues" sveltekit:noscroll sveltekit:prefetch>
<a href="/subscribe" class="past-issues" data-sveltekit-noscroll data-sveltekit-prefetch>
<svg width="20" height="16" viewBox="0 0 20 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-label="Newsletter icon">
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 2.346H2a.5.5 0 0 0-.5.5v11.102a.5.5 0 0 0 .5.5h16a.5.5 0 0 0 .5-.5V2.846a.5.5 0 0 0-.5-.5ZM2 .846a2 2 0 0 0-2 2v11.102a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.846a2 2 0 0 0-2-2H2Zm13.75 4.25h-2v3h2v-3Zm-2-1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2ZM3.5 6.5a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm.25 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm1.25 2a.5.5 0 0 0 0 1h6a.5.5 0 1 0 0-1H5Z" />
</svg>

View File

@@ -40,7 +40,7 @@
</div>
<div class="house__photo grid" class:not-landscape={ratio < 1.475}>
<a href={url} sveltekit:noscroll tabindex="0">
<a href={url} data-sveltekit-noscroll tabindex="0">
<figure class="house__image shadow-photo">
<Image
class="photo"

View File

@@ -69,7 +69,7 @@
<a href="/{location.country.slug}/{location.slug}"
on:mousemove={handleMouseMove}
on:mouseleave={handleMouseLeave}
sveltekit:noscroll
data-sveltekit-noscroll
tabindex="0"
>
<Image

View File

@@ -34,7 +34,7 @@
>
{#if url}
<div class="photo-card__content">
<a href={url} sveltekit:noscroll>
<a href={url} data-sveltekit-noscroll>
<Image
{id}
sizeKey="postcard"

View File

@@ -17,7 +17,7 @@
<div class="poster">
{#if image}
<a href="/shop/poster-{location.slug}" on:click={() => smoothScroll({ hash: 'poster', changeHash: false })} sveltekit:noscroll sveltekit:prefetch>
<a href="/shop/poster-{location.slug}" on:click={() => smoothScroll({ hash: 'poster', changeHash: false })} data-sveltekit-noscroll data-sveltekit-prefetch>
<Image
id={image.id}
sizeKey="product"

View File

@@ -64,7 +64,7 @@
{#each switcher_links as { text, url, icon, icon_label }}
<li class:is-active={$page.url.pathname === url}>
<a href={url} on:click={toggleSwitcher} tabindex="0"
sveltekit:noscroll sveltekit:prefetch
data-sveltekit-noscroll data-sveltekit-prefetch
>
<Icon class="icon" icon={icon} label={icon_label} />
<span>{text}</span>