mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 02:36:02 +10:00
added comments
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user