initial commit

This commit is contained in:
Yusur 2025-09-12 19:20:30 +02:00
commit 155aa524f3
48 changed files with 3943 additions and 0 deletions

34
src/lib/Feed.svelte Normal file
View file

@ -0,0 +1,34 @@
<script lang="ts">
import { RiChatOffLine } from "svelte-remixicon";
import Centered from "./Centered.svelte";
import FeedPost from "./FeedPost.svelte";
let { posts, emptymsg = "No posts, how empty" } = $props();
</script>
<ul>
{#each posts as post}
<li><FeedPost {post} /></li>
{:else}
<Centered>
<p class="big"><RiChatOffLine /></p>
{emptymsg}</Centered>
{/each}
</ul>
<style>
ul {
list-style: none;
padding: 0 1em;
}
ul > li {
margin-top: 3px;
margin-bottom: 3px;
}
p.big {
font-size: 2em;
}
</style>