feat: Add comment trees

This commit is contained in:
Xyphyn committed 2023-06-30 19:44:30 -07:00
1 parent 83608fdaa6
commit 09d86dd721
13 files changed
+325 -91

No files matched your search

+19 -5
View File
@@ -1,10 +1,24 @@
<script lang="ts">
import Link from '$lib/components/Link.svelte'
import MultiSelect from '$lib/components/MultiSelect.svelte'
import Post from './post/[id]/Post.svelte'
let community = ''
export let data
</script>
<input bind:value={community} placeholder="Community name" />
<div class="w-max">
<Link href="/c/{community}">Go</Link>
<div class="flex flex-row">
<div class="flex flex-col gap-2">
<MultiSelect options={['Subscribed', 'Local', 'All']} selected="Local" />
<div class="flex flex-col gap-4">
{#each data.posts as post}
<Post {post} />
{/each}
</div>
</div>
<div
class="bg-white dark:bg-zinc-900 border dark:border-zinc-800 border-slate-200
rounded-md flex flex-col overflow-hidden max-w-sm ml-auto w-full p-8 h-max"
>
<h1 class="font-bold text-xl">Lemmy</h1>
</div>
</div>