mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-26 11:46:04 +10:00
added comments
This commit is contained in:
@@ -134,6 +134,7 @@ function createPost(t) {
|
|||||||
<div class="post-actions">
|
<div class="post-actions">
|
||||||
<button class="action-btn like">♥ ${t.likes}</button>
|
<button class="action-btn like">♥ ${t.likes}</button>
|
||||||
<button class="action-btn repost">⟲ ${t.reposts}</button>
|
<button class="action-btn repost">⟲ ${t.reposts}</button>
|
||||||
|
<button class="action-btn comment">» ${t.comments}</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -541,6 +542,7 @@ async function fetchPosts() {
|
|||||||
text: item.post.record.text,
|
text: item.post.record.text,
|
||||||
likes: item.post.likeCount || 0,
|
likes: item.post.likeCount || 0,
|
||||||
reposts: item.post.repostCount || 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()}`,
|
url: `https://bsky.app/profile/${item.post.author.handle}/post/${item.post.uri.split("/").pop()}`,
|
||||||
embed: embeds
|
embed: embeds
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
--main-fg: #f0f0f0;
|
--main-fg: #f0f0f0;
|
||||||
--accent: #2563eb;
|
--accent: #2563eb;
|
||||||
--like: #db2777;
|
--like: #db2777;
|
||||||
|
--comment: #059669;
|
||||||
--github: #181717;
|
--github: #181717;
|
||||||
--youtube: #FF0000;
|
--youtube: #FF0000;
|
||||||
--steam: #1b2838;
|
--steam: #1b2838;
|
||||||
@@ -339,6 +340,11 @@ a:has(.image-placeholder) {
|
|||||||
transform: rotate(1deg);
|
transform: rotate(1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action-btn.comment {
|
||||||
|
color: var(--comment);
|
||||||
|
transform: rotate(-0.5deg);
|
||||||
|
}
|
||||||
|
|
||||||
.avatar-img {
|
.avatar-img {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user