new 반짝반짝
This commit is contained in:
parent
61f9fc51fd
commit
2c81f1c110
@ -24,6 +24,24 @@
|
||||
height: 70px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
|
||||
@keyframes new {
|
||||
0% {
|
||||
background-color: #ffcc00;
|
||||
}
|
||||
50% {
|
||||
background-color: red;
|
||||
}
|
||||
100% {
|
||||
background-color: #ffcc00;
|
||||
}
|
||||
}
|
||||
|
||||
.box-new {
|
||||
animation: new 1s infinite; /* 1초마다 반복 */
|
||||
}
|
||||
|
||||
/* board end */
|
||||
|
||||
|
||||
|
||||
@ -57,16 +57,24 @@
|
||||
>
|
||||
<td class="text-center">공지</td>
|
||||
<td class="cursor-pointer">
|
||||
📌 {{ notice.title }}
|
||||
<span v-if="notice.commentCount" class="text-danger fw-bold me-1"
|
||||
>[ {{ notice.commentCount }} ]</span
|
||||
>
|
||||
<i v-if="notice.img" class="bi bi-image me-1 align-middle"></i>
|
||||
<i
|
||||
v-if="Array.isArray(notice.hasAttachment) && notice.hasAttachment.length > 0"
|
||||
class="bi bi-paperclip"
|
||||
></i>
|
||||
<span v-if="isNewPost(notice.rawDate)" class="badge bg-danger text-white ms-2 fs-tiny">N</span>
|
||||
<div class="d-flex align-items-center">
|
||||
<span class="me-1">📌</span>
|
||||
<span>{{ notice.title }}</span>
|
||||
|
||||
<span v-if="notice.commentCount" class="text-danger fw-bold mx-1">
|
||||
[ {{ notice.commentCount }} ]
|
||||
</span>
|
||||
|
||||
<i v-if="notice.img" class="bi bi-image mx-1"></i>
|
||||
<i
|
||||
v-if="Array.isArray(notice.hasAttachment) && notice.hasAttachment.length > 0"
|
||||
class="bi bi-paperclip"
|
||||
></i>
|
||||
|
||||
<span v-if="isNewPost(notice.rawDate)" class="box-new badge text-white ms-2 fs-tiny">
|
||||
N
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">{{ notice.author }}</td>
|
||||
<td class="text-center">{{ notice.date }}</td>
|
||||
@ -81,15 +89,17 @@
|
||||
@click="goDetail(post.realId)"
|
||||
>
|
||||
<td class="text-center">{{ post.id }}</td>
|
||||
<td class="cursor-pointer">
|
||||
{{ post.title }}
|
||||
<span v-if="post.commentCount" class="comment-count">[ {{ post.commentCount }} ]</span>
|
||||
<i v-if="post.img" class="bi bi-image me-1"></i>
|
||||
<i
|
||||
v-if="Array.isArray(post.hasAttachment) && post.hasAttachment.length > 0"
|
||||
class="bi bi-paperclip"
|
||||
></i>
|
||||
<span v-if="isNewPost(post.rawDate)" class="badge bg-danger text-white ms-2 fs-tiny">N</span>
|
||||
<td class="cursor-pointer ">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ post.title }}
|
||||
<span v-if="post.commentCount" class="comment-count">[ {{ post.commentCount }} ]</span>
|
||||
<i v-if="post.img" class="bi bi-image mx-1"></i>
|
||||
<i
|
||||
v-if="Array.isArray(post.hasAttachment) && post.hasAttachment.length > 0"
|
||||
class="bi bi-paperclip"
|
||||
></i>
|
||||
<span v-if="isNewPost(post.rawDate)" class="box-new badge text-white ms-2 fs-tiny">N</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">{{ post.author }}</td>
|
||||
<td class="text-center">{{ post.date }}</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user