misc: basic functionality

This commit is contained in:
Xyphyn committed 2023-06-24 14:27:20 -07:00
1 parent c9fc488ef2
commit 83608fdaa6
12 files changed
+147 -36

No files matched your search

+15 -17
View File
@@ -1,23 +1,21 @@
<script lang="ts">
import type { GetCommunityResponse } from 'lemmy-js-client'
export let data: Promise<GetCommunityResponse>
export let data: GetCommunityResponse
</script>
{#await data then data}
<div class="flex flex-col gap-4">
<div class="flex flex-row gap-4 items-center">
<img
src={data.community_view.community.icon}
alt="test"
class="rounded-full bg-white border-slate-200 border p-2"
width={64}
height={64}
/>
<h1 class="font-bold text-xl">
{data.community_view.community.name}
</h1>
</div>
<slot />
<div class="flex flex-col gap-4">
<div class="flex flex-row gap-4 items-center">
<img
src={data.community_view.community.icon}
alt="test"
class="rounded-full bg-white border-slate-200 border p-2"
width={64}
height={64}
/>
<h1 class="font-bold text-xl">
{data.community_view.community.name}
</h1>
</div>
{/await}
<slot />
</div>