2025-03-31 23:07:29 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import Header from "$lib/header.svelte";
|
2025-04-01 13:55:54 +02:00
|
|
|
import BannerTitle from "$lib/banner-title.svelte";
|
|
|
|
|
// import type { DevlogPost } from "./posts";
|
|
|
|
|
import { posts } from "./posts";
|
2025-03-31 23:07:29 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-04-01 13:55:54 +02:00
|
|
|
<Header />
|
|
|
|
|
<BannerTitle title="Devlog Posts" />
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
{#each posts as post}
|
|
|
|
|
{@render devlogPost({ imgSrc: "", title: "{post.title}" })}
|
|
|
|
|
<p>{post.date}</p>
|
|
|
|
|
{/each}
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
{#snippet devlogPost({
|
|
|
|
|
imgSrc,
|
|
|
|
|
title,
|
|
|
|
|
}: {
|
|
|
|
|
imgSrc: string;
|
|
|
|
|
title: string;
|
|
|
|
|
})}
|
|
|
|
|
<div>
|
|
|
|
|
<img src='{imgSrc}'>
|
|
|
|
|
<p>{title}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{/snippet}
|