From bf70c133c839c45628a10a68663da58308ddfece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 24 Sep 2021 21:51:45 +0200 Subject: [PATCH] Add Credits page with API data (as boilerplate) --- src/components/atoms/SiteTitle.svelte | 9 ++ src/routes/credits.svelte | 113 ++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 src/components/atoms/SiteTitle.svelte create mode 100644 src/routes/credits.svelte diff --git a/src/components/atoms/SiteTitle.svelte b/src/components/atoms/SiteTitle.svelte new file mode 100644 index 0000000..814c6d7 --- /dev/null +++ b/src/components/atoms/SiteTitle.svelte @@ -0,0 +1,9 @@ + + +

+ Houses + Of The + World +

\ No newline at end of file diff --git a/src/routes/credits.svelte b/src/routes/credits.svelte new file mode 100644 index 0000000..f73e0e1 --- /dev/null +++ b/src/routes/credits.svelte @@ -0,0 +1,113 @@ + + + + + +
+
+ +

{data.credits.text}

+
+ +
+ {#each data.credits.list as { title, credits }} +
+

{title}

+
    + {#each credits as { name, role, website }} +
  • +
    +
    + {#if website} +

    + {name} +

    + {:else} +

    {name}

    + {/if} +
    +
    + {role} +
    +
    +
  • + {/each} +
+
+ {/each} + +
+

Photography

+
    + {#each data.credit as { name, website, location }} +
  • +
    +
    + {#if website} +

    + {name} +

    + {:else} +

    {name}

    + {/if} +
    +
    + {#each location as { location_id: { name, slug: slugLocation, country: { slug: slugCountry } } }, index} + {name}{#if location.length > index + 1}, {/if} + {/each} +
    +
    +
  • + {/each} +
+
+
+
+ + + \ No newline at end of file