Skip to content

Commit

Permalink
Add header element on same level as main and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Herrmann committed Aug 14, 2023
1 parent 94d9b0d commit 8988479
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export default function HomePage() {
title: t("meta-title"),
description: t("meta-description"),
}}
header={<Header activeAnchorLink={activeAnchorLink} />}
>
<Header activeAnchorLink={activeAnchorLink} />
<Spacer size={32} />
<Section>
<IntroSection />
Expand Down
4 changes: 3 additions & 1 deletion src/components/Page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ export type Metadata = {
type Props = {
children: ReactNode;
metadata: Metadata;
header?: ReactNode;
};

export default function Page({ children, metadata }: Props) {
export default function Page({ children, metadata, header }: Props) {
return (
<>
<Head metadata={metadata} />
{header}
<Main>{children}</Main>
<Footer />
</>
Expand Down

0 comments on commit 8988479

Please sign in to comment.