2023-01-29 16:44:02 +01:00
|
|
|
// Dependencies
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
|
|
|
// Components
|
2023-03-27 19:07:48 +02:00
|
|
|
import { PageWrapper } from 'shared/components/wrappers/page.mjs'
|
2023-01-29 16:44:02 +01:00
|
|
|
import { BareLayout } from 'site/components/layouts/bare.mjs'
|
2023-07-29 21:01:26 +02:00
|
|
|
import { SignUp } from 'shared/components/susi/sign-up.mjs'
|
|
|
|
import { FreeSewingAnimation } from 'shared/components/animations/freesewing.mjs'
|
2023-01-11 19:50:57 +01:00
|
|
|
|
|
|
|
// Translation namespaces used on this page
|
|
|
|
const namespaces = ['signup', 'errors']
|
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">
|
|
|
|
<div className="max-w-md">
|
|
|
|
<SignUp />
|
|
|
|
</div>
|
|
|
|
<FreeSewingAnimation className="w-64 mt-8" />
|
|
|
|
</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-07-30 18:37:22 +02:00
|
|
|
...(await serverSideTranslations(locale, namespaces)),
|
2023-04-01 15:41:58 +02:00
|
|
|
page: {
|
|
|
|
path: ['signup'],
|
|
|
|
},
|
2022-12-27 18:20:53 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|