Added front page, moved shelf navigation to header.

This commit is contained in:
2023-06-25 23:50:08 +02:00
parent 77085c5755
commit b3e5769d39
27 changed files with 554 additions and 109 deletions

View File

@@ -22,7 +22,7 @@
</div>
<a
:href="post.link || `/s/${post.shelf.slug}/post/${post.id}`"
:href="post.link || `/s/${post.shelf.slug}/post/${post.id}/${post.slug}`"
target="_blank"
class="title-link"
>
@@ -36,7 +36,7 @@
<div class="header">
<h2 class="title">
<a
:href="`/s/${post.shelf.slug}/post/${post.id}`"
:href="`/s/${post.shelf.slug}/post/${post.id}/${post.slug}`"
class="title-link"
>{{ post.title }}</a>
</h2>
@@ -75,7 +75,7 @@
</div>
<a
:href="`/s/${post.shelf.slug}/post/${post.id}`"
:href="`/s/${post.shelf.slug}/post/${post.id}/${post.slug}`"
class="fill"
/>
</div>
@@ -133,6 +133,7 @@ async function submitVote(value) {
margin-bottom: .25rem;
background: var(--background);
text-decoration: none;
overflow: hidden;
& :hover {
cursor: pointer;
@@ -150,6 +151,7 @@ async function submitVote(value) {
.header {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.title {
@@ -223,7 +225,8 @@ async function submitVote(value) {
.meta {
display: flex;
gap: 1rem;
flex-wrap: wrap;
gap: 0 1rem;
margin-bottom: .25rem;
font-size: .9rem;
}