2020-09-22 21:47:33 +02:00
|
|
|
<script context="module">
|
|
|
|
export async function preload() {
|
2020-09-28 14:40:04 +02:00
|
|
|
return this.fetch('/api/works.json').then((res) => res.json())
|
2020-09-22 21:47:33 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2020-07-24 11:10:01 +02:00
|
|
|
<script>
|
|
|
|
import SimplePage from '../components/SimplePage.svelte'
|
2020-09-22 21:47:33 +02:00
|
|
|
import Work from '../components/Work.svelte'
|
|
|
|
|
|
|
|
export let data
|
2020-07-24 11:10:01 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<svelte:head>
|
|
|
|
<title>Works</title>
|
|
|
|
</svelte:head>
|
|
|
|
|
|
|
|
<SimplePage title="Works">
|
2020-09-22 21:47:33 +02:00
|
|
|
{#each data as work}
|
|
|
|
<Work {work} />
|
|
|
|
{/each}
|
2020-07-24 11:10:01 +02:00
|
|
|
</SimplePage>
|