Merged in fix/scandic-friends-tablet-layout (pull request #1372)

fix: fix scandic friends block for tablet view

Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Christian Andolf
2025-02-19 15:03:26 +00:00
2 changed files with 36 additions and 8 deletions

View File

@@ -38,17 +38,26 @@ export default async function JoinScandicFriends({
height={384} height={384}
/> />
) : ( ) : (
<SurpriseIcon width={384} height={384} /> <SurpriseIcon width="100%" height="100%" />
)} )}
</div> </div>
<div className={styles.content}> <div className={styles.content}>
<div className={styles.textContent}> <div className={styles.textContent}>
{show_header ? ( {show_header ? (
<header className={styles.header}> <header className={styles.header}>
<BiroScript color="red" type="two"> <div>
{content.scripted_top_title} <BiroScript
</BiroScript> color="red"
<Title level="h3">{content.title}</Title> type="two"
tilted="small"
className={styles.scriptedText}
>
{content.scripted_top_title}
</BiroScript>
</div>
<Title level="h2" as="h4">
{content.title}
</Title>
</header> </header>
) : null} ) : null}

View File

@@ -6,7 +6,7 @@
gap: var(--Spacing-x5); gap: var(--Spacing-x5);
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 900px) {
.container { .container {
padding: 0 var(--Spacing-x4) 0 0; padding: 0 var(--Spacing-x4) 0 0;
} }
@@ -16,9 +16,9 @@
display: none; display: none;
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 900px) {
.iconContainer { .iconContainer {
width: 384px; flex: 0 1 384;
display: flex; /* gets rid of whitespace */ display: flex; /* gets rid of whitespace */
} }
} }
@@ -28,6 +28,7 @@
flex-direction: column; flex-direction: column;
gap: var(--Spacing-x3); gap: var(--Spacing-x3);
padding: var(--Spacing-x3) 0; padding: var(--Spacing-x3) 0;
flex: 1;
} }
.textContent { .textContent {
@@ -41,6 +42,10 @@
gap: var(--Spacing-x-quarter); gap: var(--Spacing-x-quarter);
} }
.scriptedText {
display: inline-block;
}
.usp { .usp {
list-style: none; list-style: none;
display: grid; display: grid;
@@ -56,6 +61,20 @@
} }
} }
@media screen and (min-width: 900px) {
.usp {
grid-template-rows: repeat(5, auto);
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (min-width: 1024px) {
.usp {
grid-template-rows: repeat(3, auto);
grid-template-columns: repeat(3, 1fr);
}
}
.usp li { .usp li {
display: flex; display: flex;
gap: var(--Spacing-x1); gap: var(--Spacing-x1);