diff --git a/src/components/layouts/PosterLayout.svelte b/src/components/layouts/PosterLayout.svelte new file mode 100644 index 0000000..10bdda3 --- /dev/null +++ b/src/components/layouts/PosterLayout.svelte @@ -0,0 +1,116 @@ + + + + + {product.location.name} + + + + + {#if product.photos_preview.length} + + {#each product.photos_preview.slice(0, product.photos_preview.length - 1) as { directus_files_id}, index} + + {/each} + + {/if} + + + + {#if product.description} + {product.description} + {/if} + {#if product.details} + {product.details} + {/if} + + + + {#if lastPreviewPhoto} + + {/if} + \ No newline at end of file diff --git a/src/components/molecules/Poster.svelte b/src/components/molecules/Poster.svelte index 796781a..242d399 100644 --- a/src/components/molecules/Poster.svelte +++ b/src/components/molecules/Poster.svelte @@ -10,7 +10,7 @@ - import Button from '$components/atoms/Button.svelte' - import Image from '$components/atoms/Image.svelte' - - - - Melbourne - - - - - Poster - Houses Of Melbourne – 30€ - - - - - - - - - - - - - - - - - - - - - This poster will bring you to straight to Melbourne, Australia with its unique Victorian architectural style, wrought iron and colorful fronts. - - Format: 40cm x 60cm (16” x 24”)Printed on Recycled offset paper, 150gm/m2.Frame not included. - - - - - - - - - - \ No newline at end of file diff --git a/src/routes/shop/[product].svelte b/src/routes/shop/[type]-[name].svelte similarity index 100% rename from src/routes/shop/[product].svelte rename to src/routes/shop/[type]-[name].svelte diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index 8ace98a..d7d58ea 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -3,16 +3,18 @@ import Metas from '$components/Metas.svelte' import SiteTitle from '$components/atoms/SiteTitle.svelte' import Image from '$components/atoms/Image.svelte' - import PosterProduct from '$components/organisms/PosterProduct.svelte' + import PosterLayout from '$components/layouts/PosterLayout.svelte' import Poster from '$components/molecules/Poster.svelte' import EmailForm from '$components/molecules/EmailForm.svelte' export let shop: any export let locations: any + export let posters: any + export let product: any @@ -34,7 +36,7 @@ {#each locations as { name, slug }} - + {name} {/each} @@ -59,22 +61,17 @@ - - Welcome to our shop!We wanted to create a physical expression to share theses unique places and let the architecture transport you while inside of your own home. - + {shop.about} - + View all of our available posters - - - - - - + {#each posters as { location }} + + {/each} Subscribe to be notified when new posters become available @@ -88,11 +85,13 @@
{product.description}
{product.details}
This poster will bring you to straight to Melbourne, Australia with its unique Victorian architectural style, wrought iron and colorful fronts.
- Format: 40cm x 60cm (16” x 24”)Printed on Recycled offset paper, 150gm/m2.Frame not included. -
- Welcome to our shop!We wanted to create a physical expression to share theses unique places and let the architecture transport you while inside of your own home. -
{shop.about}
Subscribe to be notified when new posters become available