Merged in feat/card-grid-ui (pull request #332)

Feat/card grid ui

Approved-by: Simon.Emanuelsson
This commit is contained in:
Matilda Landström
2024-07-09 11:16:44 +00:00
parent ada65b8612
commit bb422f804d
10 changed files with 43 additions and 81 deletions

View File

@@ -45,7 +45,7 @@ export default async function CurrentBenefitsBlock({
return (
<SectionContainer>
<SectionHeader title={title} link={link} subtitle={subtitle} />
<Grids.Scrollable>
<Grids.Stackable>
{currentLevel.benefits.map((benefit, idx) => (
<article className={styles.card} key={`${currentLevel}-${idx}`}>
<Title
@@ -58,7 +58,7 @@ export default async function CurrentBenefitsBlock({
</Title>
</article>
))}
</Grids.Scrollable>
</Grids.Stackable>
<SectionLink link={link} variant="mobile" />
</SectionContainer>
)

View File

@@ -42,7 +42,7 @@ export default async function NextLevelBenefitsBlock({
return (
<SectionContainer>
<SectionHeader title={title} subtitle={subtitle} link={link} />
<Grids.Stackable>
<Grids.Stackable columns={2}>
{nextLevel.benefits.map((benefit) => (
<article key={benefit.title} className={styles.card}>
<Chip>