whoa svelte is here

Co-authored-by: Astra <Astrrra@users.noreply.github.com>
This commit is contained in:
Ariadna 2025-04-20 00:18:33 -04:00
parent 76d837320d
commit 3f03c12152
Signed by: ari
SSH key fingerprint: SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY
24 changed files with 1080 additions and 16 deletions

19
web/src/App.svelte Normal file
View file

@ -0,0 +1,19 @@
<script lang="ts">
import PostComponent from "./lib/PostComponent.svelte";
import { fetchAllPosts, Post } from "./lib/pdsfetch";
const postsPromise = fetchAllPosts();
</script>
<main>
{#await postsPromise}
<p>Loading...</p>
{:then postsData}
{#each postsData as postObject}
<PostComponent post={postObject as Post} />
{/each}
{/await}
</main>
<style>
</style>