Skip to content

Commit 161fa56

Browse files
committed
Make a more fully fleshed out PageLayout
1 parent 40fe615 commit 161fa56

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/PageLayout/PageLayout.stories.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
22

33
import PageLayout from ".";
44
import { Placeholder } from "../Placeholder";
5+
import Header from "../Header";
6+
import DetSysIcon from "../DetSysIcon";
7+
import ColorSchemeToggle from "../ColorSchemeToggle";
8+
import Navigation from "../Navigation";
59

610
const meta = {
711
title: "Template/PageLayout",
@@ -32,3 +36,37 @@ export const Default = () => (
3236
</PageLayout>
3337
</>
3438
);
39+
40+
export const FleshedOut = () => (
41+
<>
42+
<PageLayout width="full">
43+
<PageLayout.Header>
44+
<Header>
45+
<Header.Logo>
46+
<DetSysIcon size="base" />
47+
<h1 style={{ margin: 0 }}>DetSys</h1>
48+
</Header.Logo>
49+
<Header.Element>
50+
<ColorSchemeToggle />
51+
<Navigation>
52+
<Navigation.Element>
53+
<Placeholder height="100%" label="Lorem" />
54+
</Navigation.Element>
55+
56+
<Navigation.Element>
57+
<Placeholder height="100%" label="Ipsum" />
58+
</Navigation.Element>
59+
</Navigation>
60+
</Header.Element>
61+
</Header>
62+
</PageLayout.Header>
63+
64+
<PageLayout.Content>
65+
<Placeholder label="hi" height="10em" />
66+
</PageLayout.Content>
67+
<PageLayout.Pane>
68+
<Placeholder height="3em" label="Pane 2" />
69+
</PageLayout.Pane>
70+
</PageLayout>
71+
</>
72+
);

0 commit comments

Comments
 (0)