refactor: break out Section container

This commit is contained in:
Christel Westerberg
2024-06-18 15:14:40 +02:00
parent d03e28db4c
commit ceee9fd154
26 changed files with 64 additions and 267 deletions

View File

@@ -1,14 +1,13 @@
import Header from "@/components/SectionHeader"
import SectionContainer from "@/components/Section/Container"
import Header from "@/components/Section/Header"
import Card from "@/components/TempDesignSystem/Card"
import Grids from "@/components/TempDesignSystem/Grids"
import styles from "./cardsGrid.module.css"
import { CardsGridProps } from "@/types/components/loyalty/blocks"
export default function CardsGrid({ cards_grid }: CardsGridProps) {
return (
<section className={styles.section}>
<SectionContainer>
<Header title={cards_grid.title} subtitle={cards_grid.preamble} />
<Grids.Stackable>
{cards_grid.cards.map((card) => (
@@ -23,6 +22,6 @@ export default function CardsGrid({ cards_grid }: CardsGridProps) {
/>
))}
</Grids.Stackable>
</section>
</SectionContainer>
)
}