Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 29, 2024
1 parent c3b053e commit 91e05d0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Feature(s)

- Add multuple types of articles

- Featured
- Draft
- Archived
Expand Down
44 changes: 22 additions & 22 deletions custom/ArticleList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,36 +73,36 @@
}
}

&.featured {
border-color: #5b4f00;
background-color: #5b4f0011;
transition: all 0.3s ease;
&.featured {
border-color: #5b4f00;
background-color: #5b4f0011;
transition: all 0.3s ease;

@media (prefers-color-scheme: dark) {
border-color: #ffff00;
background-color: #ffff0011;
}
@media (prefers-color-scheme: dark) {
border-color: #ffff00;
background-color: #ffff0011;
}

&:hover {
outline: 2.4px dashed #5b4f00;
outline-offset: .5rem;
}
&:hover {
outline: 2.4px dashed #5b4f00;
outline-offset: 0.5rem;
}

a {
color: #5b4f00;
a {
color: #5b4f00;

@media (prefers-color-scheme: dark) {
color: #ffff00;
}
@media (prefers-color-scheme: dark) {
color: #ffff00;
}
}

.tags span {
background-color: #5b4f001d;
.tags span {
background-color: #5b4f001d;

@media (prefers-color-scheme: dark) {
background-color: #ffff00;
}
@media (prefers-color-scheme: dark) {
background-color: #ffff00;
}
}
}

p {
Expand Down
19 changes: 15 additions & 4 deletions docs/.vitepress/theme/ArticleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
</button>
</div>
<div class="post-container">
<article v-for="post in filteredPosts" :key="post.title" class="post" :class="post.type">
<article
v-for="post in filteredPosts"
:key="post.title"
class="post"
:class="post.type"
>
<h3>
<a
:href="`posts/${post.title
Expand All @@ -19,9 +24,15 @@
>{{ post.title }}</a
>
</h3>
<p class="date" v-if="post.type === 'archive'">{{ post.date }} &middot; Archived</p>
<p class="date" v-else-if="post.type === 'draft'">{{ post.date }} &middot; Draft</p>
<p class="date" v-else-if="post.type === 'featured'">{{ post.date }} &middot; Featured</p>
<p class="date" v-if="post.type === 'archive'">
{{ post.date }} &middot; Archived
</p>
<p class="date" v-else-if="post.type === 'draft'">
{{ post.date }} &middot; Draft
</p>
<p class="date" v-else-if="post.type === 'featured'">
{{ post.date }} &middot; Featured
</p>
<p class="date" v-else>{{ post.date }}</p>
<p>{{ post.description }}</p>
<div class="tags">
Expand Down

0 comments on commit 91e05d0

Please sign in to comment.