fix(SW-1386): fix image sizes to be more responsive and fill it's container correctly

This commit is contained in:
Christian Andolf
2025-01-29 10:42:21 +01:00
parent 2f22186d18
commit 73c06e21c5
2 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,13 @@
.container { .container {
position: relative; position: relative;
height: 640px;
overflow: hidden; overflow: hidden;
height: 640px;
}
@media screen and (min-width: 768px) {
.container {
height: 880px;
}
} }
.content { .content {
@@ -31,11 +37,5 @@
.image { .image {
max-width: 100%; max-width: 100%;
height: 600px; height: 100%;
}
@media screen and (min-width: 768px) {
.image {
height: 880px;
}
} }

View File

@@ -26,6 +26,7 @@ export default function FullWidthCampaign({ content }: FullWidthCampaignProps) {
focalPoint={background_image.focalPoint} focalPoint={background_image.focalPoint}
width={1512} width={1512}
height={880} height={880}
sizes="(min-width: 1512px) 1512px, 100vw"
/> />
) : null} ) : null}
<div className={styles.content}> <div className={styles.content}>