add news article list components

This commit is contained in:
elisejakob
2024-05-10 20:31:05 +02:00
parent e6e0413ee0
commit 6baa7cb04e
5 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,36 @@
.newsItem {
position: relative;
list-style: none;
}
.image {
width: 100%;
padding-top: 60%;
background: var(--color-placeholder);
position: relative;
img {
position: absolute;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
}
.text {
padding: .8rem 0 2rem;
}
.date {
font-family: var(--font-serif);
font-size: var(--font-size-caption);
}
.title {
margin: .4rem 0 .6rem;
}
.lead {
font-size: var(--font-size-caption);
}