initial commit
This commit is contained in:
commit
155aa524f3
48 changed files with 3943 additions and 0 deletions
34
src/lib/Feed.svelte
Normal file
34
src/lib/Feed.svelte
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue