Skip to content

Commit

Permalink
Add vote skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Sep 5, 2023
1 parent 740e8ae commit 497831a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/public/news.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ body {
opacity: 1;
}
}


.votearrow.pulsate {
animation: pulsate 2s infinite ease-in-out;
}

td {
Expand Down
13 changes: 12 additions & 1 deletion src/views/components/row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ const row = (start = 0) => {
data-title="${story.title}"
data-href="${story.href}"
data-upvoters="${JSON.stringify(story.upvoters)}"
></div>
>
<div>
<div
class="votearrow pulsate"
style="color: rgb(130, 130, 130); cursor: pointer;"
title="upvote"
>
</div>
<div style="font-size: 8pt; text-align: center;">...</div>
</div>
</div>
</a>
</div>
<div
Expand Down
12 changes: 11 additions & 1 deletion src/views/feed.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,17 @@ export default async function index(trie, theme, page) {
story.upvoters,
)}"
data-editorpicks="true"
></div>
>
<div>
<div
class="votearrow pulsate"
style="color: rgb(130, 130, 130); cursor: pointer;"
title="upvote"
>
</div>
</div>
</div>
</a>
</div>
<div
Expand Down

0 comments on commit 497831a

Please sign in to comment.