Skip to content

Commit

Permalink
feat: Adjustment to spacing of content layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Mar 2, 2023
1 parent 1bf571c commit 36652d0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ export const ContentLayout = ({
);
};

export const StaticContentLayout = ({ children }: { children?: ReactNode }) => {
export const StaticContentLayout = ({
children,
contentId,
}: {
children?: ReactNode;
contentId: string | undefined;
}) => {
return (
<Flex
sx={{
Expand All @@ -60,7 +66,7 @@ export const StaticContentLayout = ({ children }: { children?: ReactNode }) => {
backgroundColor: "grey.100",
}}
>
<Header pageType="content" />
<Header pageType="content" contentId={contentId} />
<Flex
component="main"
role="main"
Expand All @@ -69,8 +75,13 @@ export const StaticContentLayout = ({ children }: { children?: ReactNode }) => {
flex: 1,
width: "100%",
maxWidth: 1024,
my: [4, 6],
mx: [0, 0, "auto"],
px: 4,

"& h2": {
mb: 1,
},
}}
>
{children}
Expand Down

0 comments on commit 36652d0

Please sign in to comment.