diff --git a/src/lib/components/layout/main/card/BlueskyPostCard.svelte b/src/lib/components/layout/main/card/BlueskyPostCard.svelte new file mode 100644 index 0000000..360ec4a --- /dev/null +++ b/src/lib/components/layout/main/card/BlueskyPostCard.svelte @@ -0,0 +1,185 @@ + + +
+ {#if loading} +
+
+
+
+
+
+
+
+
+
+
+
+ {:else if error} +
+

{error}

+
+ {:else if post} +
+
+ + Latest Post + + + +
+ +

+ {post.text} +

+ + {#if post.hasImages && post.imageUrls && post.imageUrls.length > 0} +
+ {#each post.imageUrls as imageUrl} + Post attachment + {/each} +
+ {/if} + + {#if post.quotedPost} +
+
+
+ {#if post.quotedPost.author.avatar} + {post.quotedPost.author.displayName + {:else} +
+ {(post.quotedPost.author.displayName || post.quotedPost.author.handle).charAt(0).toUpperCase()} +
+ {/if} +
+
+ {#if post.quotedPost.author.displayName} + + {post.quotedPost.author.displayName} + + {/if} + + @{post.quotedPost.author.handle} + +
+
+
+ +

+ {post.quotedPost.text} +

+ + {#if post.quotedPost.hasImages && post.quotedPost.imageUrls && post.quotedPost.imageUrls.length > 0} +
+ {#each post.quotedPost.imageUrls as imageUrl} + Quoted post attachment + {/each} +
+ {/if} +
+
+ {/if} + +
+ {#if post.likeCount !== undefined} +
+
+ {/if} + + {#if post.repostCount !== undefined} +
+
+ {/if} + + {#if post.replyCount !== undefined} +
+
+ {/if} + + +
+
+ {:else} +
+

No posts found

+
+ {/if} +