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,9 +137,10 @@
<PosterLayout
product={product}
productShop={productShop}
shopProduct={shopProduct}
/>
{#if posters}
<section class="shop-page__posters grid">
<h3>View all of our available posters</h3>
<div class="set">
@@ -148,6 +148,7 @@
<Poster
location={location}
image={photos_product.length && photos_product[1].directus_files_id}
product={shopProducts.find(item => item.slug.includes(location.slug))}
/>
{/each}
</div>
@@ -156,8 +157,8 @@
<EmailForm />
</div>
</section>
{/if}
</main>
{/key}
<slot />