add: 非公開投稿を強調

This commit is contained in:
moris 2024-12-15 22:36:54 +09:00
parent 6bdc42257c
commit 37ba0d0b23

View File

@ -7,11 +7,11 @@
<div class='contain'> <div class='contain'>
<div class="posts"> <div class="posts">
{#each data.posts as post} {#each data.posts as post}
<div class="post" class:published={!post.metadata.published}> <div class="post" class:unpublished={!post.metadata.published}>
<a style='text-decoration: none;' href="../post/{post.postId}" tabindex="0"> <a style='text-decoration: none;' href="../post/{post.postId}" tabindex="0">
<Postgrid id={post.postId} {...post.metadata}></Postgrid> <Postgrid id={post.postId} {...post.metadata}></Postgrid>
</a> </a>
</div> </div>
{/each} {/each}
{#if data.posts.length%4} {#if data.posts.length%4}
{#each Array(4-data.posts.length%4) as i} {#each Array(4-data.posts.length%4) as i}
@ -47,7 +47,7 @@
overflow: hidden; overflow: hidden;
box-shadow: 0 0 6px #0001; box-shadow: 0 0 6px #0001;
&.published { &.unpublished {
border: solid red 3px; border: solid red 3px;
} }
} }