From 9f11f4fa1cae191df3fde2ccf41fa6fbaf9101c1 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sat, 22 Apr 2023 15:02:11 +0200 Subject: [PATCH] feat(org): Added /new page --- sites/org/pages/new/index.mjs | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sites/org/pages/new/index.mjs diff --git a/sites/org/pages/new/index.mjs b/sites/org/pages/new/index.mjs new file mode 100644 index 00000000000..df9331322f5 --- /dev/null +++ b/sites/org/pages/new/index.mjs @@ -0,0 +1,41 @@ +// Hooks +import { useApp } from 'shared/hooks/use-app.mjs' +// Dependencies +import { serverSideTranslations } from 'next-i18next/serverSideTranslations' +// Components +import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs' +import { Popout } from 'shared/components/popout.mjs' + +// Translation namespaces used on this page +// Note that we include the account namespace here for the 'new' keyword +const namespaces = [...pageNs, 'account'] + +const AccountPage = (props) => { + const app = useApp(props) + + return ( + +
+ +
This needs an umbrella page
+

+ We need to create content here linking to all the new something pages +

+
+
+
+ ) +} + +export default AccountPage + +export async function getStaticProps({ locale }) { + return { + props: { + ...(await serverSideTranslations(locale, namespaces)), + page: { + path: ['new'], + }, + }, + } +}