Skip to content

Commit 56370a7

Browse files
fix(Templates): gebruik identieke content in FullWidth varianten
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ee5d903 commit 56370a7

2 files changed

Lines changed: 43 additions & 7 deletions

File tree

packages/storybook/src/templates/BasePage.stories.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,14 @@ export const FullWidth: Story = {
332332
<main id="main-content" tabIndex={-1} style={mainStyle}>
333333
<Heading level={1}>Paginatitel</Heading>
334334
<Paragraph>
335-
Full-width variant: <code>--dsn-page-max-inline-size</code> is
336-
ingesteld op <code>none</code> op de PageLayout. Header, body en
337-
footer nemen de volledige viewport-breedte in.
335+
Dit is de basisstructuur van een pagina in het design system. De
336+
footer staat altijd onderaan de viewport, ongeacht de hoeveelheid
337+
inhoud.
338+
</Paragraph>
339+
<Paragraph>
340+
Voeg hier de paginaspecifieke inhoud toe:{' '}
341+
<Link href="#">tekst</Link>, formulieren, tabellen of andere
342+
componenten.
338343
</Paragraph>
339344
</main>
340345
</PageBody>

packages/storybook/src/templates/GridPage.stories.tsx

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,44 @@ export const FullWidth: Story = {
280280
<PageBody>
281281
<main id="main-content" tabIndex={-1} style={mainStyle}>
282282
<Stack space="2xl">
283+
{/* Rij 1: volle breedte */}
283284
<Grid style={{ '--dsn-grid-margin': '0' } as React.CSSProperties}>
284285
<GridItem colSpan={12}>
285286
<Container>
286-
<Paragraph>
287-
Full-width: inhoud strekt zich uit over de volledige
288-
viewport-breedte.
289-
</Paragraph>
287+
<Paragraph>Rij 1 — volle breedte (12 kolommen)</Paragraph>
288+
</Container>
289+
</GridItem>
290+
</Grid>
291+
292+
{/* Rij 2: 2 kolommen vanaf md */}
293+
<Grid style={{ '--dsn-grid-margin': '0' } as React.CSSProperties}>
294+
<GridItem colSpan={12} colSpanMd={6}>
295+
<Container>
296+
<Paragraph>Rij 2 — kolom 1 van 2</Paragraph>
297+
</Container>
298+
</GridItem>
299+
<GridItem colSpan={12} colSpanMd={6}>
300+
<Container>
301+
<Paragraph>Rij 2 — kolom 2 van 2</Paragraph>
302+
</Container>
303+
</GridItem>
304+
</Grid>
305+
306+
{/* Rij 3: 3 kolommen vanaf md */}
307+
<Grid style={{ '--dsn-grid-margin': '0' } as React.CSSProperties}>
308+
<GridItem colSpan={12} colSpanMd={4}>
309+
<Container>
310+
<Paragraph>Rij 3 — kolom 1 van 3</Paragraph>
311+
</Container>
312+
</GridItem>
313+
<GridItem colSpan={12} colSpanMd={4}>
314+
<Container>
315+
<Paragraph>Rij 3 — kolom 2 van 3</Paragraph>
316+
</Container>
317+
</GridItem>
318+
<GridItem colSpan={12} colSpanMd={4}>
319+
<Container>
320+
<Paragraph>Rij 3 — kolom 3 van 3</Paragraph>
290321
</Container>
291322
</GridItem>
292323
</Grid>

0 commit comments

Comments
 (0)