feat: Add user pages

This commit is contained in:
Xyphyn committed 2023-07-04 19:39:27 -07:00
1 parent 04704749b7
commit 9efe1df0c2
12 files changed
+222 -29

No files matched your search

@@ -5,19 +5,15 @@
export let avatar: boolean = false
function linkFromCommunity(community: Community) {
const local = community.local
// if (local) {
// return `/c/${community.name}`
// } else {
const domain = new URL(community.actor_id).hostname
return `/c/${community.name}@${domain}`
// }
}
</script>
<a class="items-center flex flex-row gap-2" href={linkFromCommunity(community)}>
<a
class="items-center flex flex-row gap-2 hover:underline"
href={linkFromCommunity(community)}
>
{#if avatar}
<img
src={community.icon ??