From 6df88e9147182cea065c6b033ee7bfcf8e8136be Mon Sep 17 00:00:00 2001 From: Michael Baudis Date: Tue, 1 Oct 2024 14:31:35 +0200 Subject: [PATCH] adding Layout & Nav files for BeaconPlus --- src/components/BeaconPlusNav.js | 33 ++++++++++++++++++ src/components/EntityLayout.js | 59 +++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 src/components/BeaconPlusNav.js create mode 100644 src/components/EntityLayout.js diff --git a/src/components/BeaconPlusNav.js b/src/components/BeaconPlusNav.js new file mode 100644 index 00000000..55be8c31 --- /dev/null +++ b/src/components/BeaconPlusNav.js @@ -0,0 +1,33 @@ +import React from "react" +import Link from "next/link" +import { SITE_DEFAULTS } from "../hooks/api" + +export default function BeaconPlusNav() { + return ( +
+ +
+ ) +} diff --git a/src/components/EntityLayout.js b/src/components/EntityLayout.js new file mode 100644 index 00000000..de13b3b2 --- /dev/null +++ b/src/components/EntityLayout.js @@ -0,0 +1,59 @@ +import React from "react" +import { ErrorBoundary } from "react-error-boundary" +import Head from "next/head" +import BeaconPlusNav from "./BeaconPlusNav" +import {ErrorFallback} from "./MenuHelpers" +import { SITE_DEFAULTS, THISYEAR } from "../hooks/api" + +export function EntityLayout({ title, headline, children }) { + return ( + <> + +
+
+ + {title || ""} + + +
+ {headline &&

{headline}

} + { + // reset the state of your app so the error doesn't happen again + }} + > + {children} + +
+
+
+ + + ) +}