added comments

This commit is contained in:
2025-10-03 05:18:29 +10:00
parent 6c73ee5666
commit 7185b4214c
2 changed files with 8 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ function createPost(t) {
<div class="post-actions">
<button class="action-btn like">♥ ${t.likes}</button>
<button class="action-btn repost">⟲ ${t.reposts}</button>
<button class="action-btn comment">» ${t.comments}</button>
</div>
`;
@@ -541,6 +542,7 @@ async function fetchPosts() {
text: item.post.record.text,
likes: item.post.likeCount || 0,
reposts: item.post.repostCount || 0,
comments: item.post.replyCount || 0,
url: `https://bsky.app/profile/${item.post.author.handle}/post/${item.post.uri.split("/").pop()}`,
embed: embeds
};

View File

@@ -3,6 +3,7 @@
--main-fg: #f0f0f0;
--accent: #2563eb;
--like: #db2777;
--comment: #059669;
--github: #181717;
--youtube: #FF0000;
--steam: #1b2838;
@@ -339,6 +340,11 @@ a:has(.image-placeholder) {
transform: rotate(1deg);
}
.action-btn.comment {
color: var(--comment);
transform: rotate(-0.5deg);
}
.avatar-img {
width: 250px;
margin: 20px auto;