add: category, date sorting
Add category layouts and date sorting
This commit is contained in:
parent
9b66a79a8c
commit
579491f216
7 changed files with 85 additions and 25 deletions
|
@ -1,68 +0,0 @@
|
|||
.BlogCard {
|
||||
overflow: hidden;
|
||||
border-radius: 1rem;
|
||||
background: var(--color-orange-black);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
transition: 150ms;
|
||||
gap: 1rem;
|
||||
|
||||
&:hover {
|
||||
scale: 1.05;
|
||||
}
|
||||
|
||||
& > .image {
|
||||
flex: 0 0 200px;
|
||||
width: 100%;
|
||||
|
||||
& img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
& .card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding: 0 1.5rem 1rem;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
& .chip {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
& header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
& footer {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
& .tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .5rem;
|
||||
opacity: .5;
|
||||
|
||||
& .tag {
|
||||
color: var(--color-orange);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media (width <= 780px) {
|
||||
.BlogCard header {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue