From 2ea5cbecdacef6a520ac56bdcbabd2bf00e839b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Thu, 14 Oct 2021 23:19:09 +0200 Subject: [PATCH] Make PostCard content dynamic --- src/components/molecules/PostCard.svelte | 36 ++++++++++++------------ src/routes/photos.svelte | 26 ++++++++++++++--- 2 files changed, 40 insertions(+), 22 deletions(-) diff --git a/src/components/molecules/PostCard.svelte b/src/components/molecules/PostCard.svelte index 94af05c..d902d64 100644 --- a/src/components/molecules/PostCard.svelte +++ b/src/components/molecules/PostCard.svelte @@ -1,31 +1,31 @@
-
+
+

+ Houses of
+ {country} +

+
+
- + Stamp
- country + Flag of {country}
-

- Houses of
- France -

-
    -
  • -

    Rue Clerisseau

    -
  • -
  • -

    Nimes, Occitanie

    -
  • -
  • -

    France

    -
  • +
  • {street}
  • +
  • {location}{region ? `, ${region}` : ''}
  • +
  • {country}
\ No newline at end of file diff --git a/src/routes/photos.svelte b/src/routes/photos.svelte index 5490ef2..12b2c37 100644 --- a/src/routes/photos.svelte +++ b/src/routes/photos.svelte @@ -120,7 +120,13 @@ } location { slug - country { slug } + name + region + country { + slug + name + flag { id } + } } } } @@ -250,7 +256,7 @@
{#if photos.length}
- {#each photos as { image, slug, location }} + {#each photos as { image, slug, location, title }} {/each} @@ -338,7 +350,13 @@ } location { slug - country { slug } + name + region + country { + slug + name + flag { id } + } } date_created }