feat: add news detail design

This commit is contained in:
2024-12-16 21:44:44 +01:00
parent 2ae28cbd87
commit 2604436c7c
9 changed files with 164 additions and 14 deletions

View File

@@ -24,11 +24,16 @@ h1, h2 {
font-family: 'Hajime Sans', sans-serif;
color: var(--bs-primary);
font-weight: 400;
line-height: 1;
}
h1 {
text-align: center;
font-size: 4.5rem;
font-size: 3rem;
@media (min-width: $breakpoint-md) {
font-size: 4.5rem;
}
}
h1 span.tapered {
background-size: 100% 15%;

View File

@@ -7,3 +7,14 @@ a {
transform: scale(1.05);
}
}
figure {
border-radius: 1rem;
overflow: hidden;
img {
width: 100%;
height: auto;
display: block;
}
}

View File

@@ -156,6 +156,7 @@
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
/* Show header button only on desktop */

View File

@@ -0,0 +1,81 @@
.news-detail__title {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
font-size: 3rem;
text-align: left;
@media (min-width: $breakpoint-md) {
font-size: 4rem;
}
}
.news-detail__main-image {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
img {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
}
.news-detail__teaser {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
font-weight: 600;
}
.news-detail__bodytext {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
}
.news-detail__content-elements {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
.container {
padding: 0;
}
> * {
margin-bottom: 1.5rem;
}
}
.news-detail__gallery {
margin-top: 2rem;
&--grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
.news-detail__gallery-item {
img {
max-width: 100%;
height: auto;
display: block;
}
}
}
}
@media (max-width: 768px) {
.news-detail__gallery--grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 480px) {
.news-detail__gallery--grid {
grid-template-columns: 1fr;
}
}

View File

@@ -7,5 +7,6 @@
@import 'components/navigation';
@import 'components/images';
@import 'components/news';
@import "components/news_detail";
@import 'components/footer';
@import 'components/buttons';