mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2024-11-01 00:24:12 +01:00
23 lines
436 B
Svelte
23 lines
436 B
Svelte
<script context="module">
|
|
export async function preload() {
|
|
return this.fetch('/api/works.json').then((res) => res.json())
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
import SimplePage from '../components/SimplePage.svelte'
|
|
import Work from '../components/Work.svelte'
|
|
|
|
export let data
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>Works</title>
|
|
</svelte:head>
|
|
|
|
<SimplePage title="Works">
|
|
{#each data as work}
|
|
<Work {work} />
|
|
{/each}
|
|
</SimplePage>
|