impr: restructure src/lib
This commit is contained in:
376 files changed
+1000
-1033
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import Avatar from '$lib/ui/generic/Avatar.svelte'
|
||||
import type { Community } from '$lib/api/types'
|
||||
|
||||
interface Props {
|
||||
community: Community
|
||||
}
|
||||
|
||||
let { community }: Props = $props()
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-3 items-center">
|
||||
<Avatar width={48} url={community.icon} alt={community.name} />
|
||||
<div class="flex flex-col gap-0">
|
||||
<h1 class="font-bold text-xl">{community.title}</h1>
|
||||
<span class="dark:text-zinc-400 text-slate-600 text-sm">
|
||||
!{community.name}@{new URL(community.actor_id).hostname}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user