From 898847964540344761f90a5e742a217b3ffeb867 Mon Sep 17 00:00:00 2001 From: Sebastian Herrmann Date: Mon, 14 Aug 2023 16:33:52 +0200 Subject: [PATCH] Add header element on same level as main and footer --- src/components/HomePage/index.tsx | 2 +- src/components/Page/index.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/HomePage/index.tsx b/src/components/HomePage/index.tsx index 5d83881..7fcd128 100644 --- a/src/components/HomePage/index.tsx +++ b/src/components/HomePage/index.tsx @@ -60,8 +60,8 @@ export default function HomePage() { title: t("meta-title"), description: t("meta-description"), }} + header={
} > -
diff --git a/src/components/Page/index.tsx b/src/components/Page/index.tsx index aff8866..be20f60 100644 --- a/src/components/Page/index.tsx +++ b/src/components/Page/index.tsx @@ -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 ( <> + {header}
{children}