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