Cleanup Shop layout

This commit is contained in:
2021-11-08 14:03:21 +01:00
parent f133c00522
commit 27daa26fd9

View File

@@ -59,7 +59,6 @@
image=""
/>
{#key product}
<main class="shop-page">
<Cart />
@@ -138,26 +137,28 @@
<PosterLayout
product={product}
productShop={productShop}
shopProduct={shopProduct}
/>
<section class="shop-page__posters grid">
<h3>View all of our available posters</h3>
<div class="set">
{#each posters as { location, photos_product }}
<Poster
location={location}
image={photos_product.length && photos_product[1].directus_files_id}
/>
{/each}
</div>
<div class="subscribe">
<p>Subscribe to be notified when new posters become available</p>
<EmailForm />
</div>
</section>
{#if posters}
<section class="shop-page__posters grid">
<h3>View all of our available posters</h3>
<div class="set">
{#each posters as { location, photos_product }}
<Poster
location={location}
image={photos_product.length && photos_product[1].directus_files_id}
product={shopProducts.find(item => item.slug.includes(location.slug))}
/>
{/each}
</div>
<div class="subscribe">
<p>Subscribe to be notified when new posters become available</p>
<EmailForm />
</div>
</section>
{/if}
</main>
{/key}
<slot />