2023-01-29 16:44:02 +01:00
|
|
|
// Dependencies
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2023-08-28 14:10:43 +02:00
|
|
|
import { nsMerge } from 'shared/utils.mjs'
|
2023-01-29 16:44:02 +01:00
|
|
|
// Components
|
2023-08-28 14:10:43 +02:00
|
|
|
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
2023-01-29 16:44:02 +01:00
|
|
|
import { BareLayout } from 'site/components/layouts/bare.mjs'
|
2023-08-28 14:10:43 +02:00
|
|
|
import { SignUp, ns as susiNs } from 'shared/components/susi/sign-up.mjs'
|
2023-01-11 19:50:57 +01:00
|
|
|
|
|
|
|
// Translation namespaces used on this page
|
2023-08-28 14:10:43 +02:00
|
|
|
const ns = nsMerge(susiNs, pageNs)
|
2022-12-27 18:20:53 +01:00
|
|
|
|
2023-04-28 21:23:06 +02:00
|
|
|
const SignUpPage = ({ page }) => {
|
2022-12-27 18:20:53 +01:00
|
|
|
return (
|
2023-07-29 21:01:26 +02:00
|
|
|
<PageWrapper {...page} layout={BareLayout}>
|
|
|
|
<div className="flex flex-col items-center h-screen justify-center text-base-content px-4">
|
2023-08-25 16:14:48 +02:00
|
|
|
<div className="max-w-2xl">
|
2023-07-29 21:01:26 +02:00
|
|
|
<SignUp />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-29 16:44:02 +01:00
|
|
|
</PageWrapper>
|
2022-12-27 18:20:53 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SignUpPage
|
|
|
|
|
|
|
|
export async function getStaticProps({ locale }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2023-08-28 14:10:43 +02:00
|
|
|
...(await serverSideTranslations(locale, ns)),
|
2023-04-01 15:41:58 +02:00
|
|
|
page: {
|
|
|
|
path: ['signup'],
|
|
|
|
},
|
2022-12-27 18:20:53 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|