feat: Add posts to profile pages

This commit is contained in:
Xyphyn committed 2023-07-05 17:21:48 -07:00
1 parent 948ad6fb1c
commit 28d9820b1e
5 files changed
+69 -29

No files matched your search

@@ -14,7 +14,6 @@
PencilSquare,
UserGroup,
} from 'svelte-hero-icons'
import SvelteMarkdown from 'svelte-markdown'
export let community_view: CommunityView
</script>
@@ -26,7 +25,7 @@
`https://api.dicebear.com/6.x/initials/svg?seed=${community_view.community.name}`}
alt={community_view.community.name}
/>
<span class="flex flex-row items-center gap-1 text-sm">
<span class="flex flex-row items-center gap-1 text-sm capitalize">
<Icon src={Calendar} width={16} height={16} mini />
<RelativeDate date={new Date(community_view.community.published)} />
</span>
+1 -1
View File
@@ -46,7 +46,7 @@
}
</script>
<Card class="bg-white flex flex-col overflow-hidden max-w-xl w-full relative">
<Card class="bg-white flex flex-col overflow-hidden w-full relative">
<div class="flex flex-col gap-2 bg-white dark:bg-zinc-900 p-4 rounded-md">
<span class="flex flex-row gap-2 text-xs items-center">
<CommunityLink avatarSize={20} avatar community={postRes.community} />