2023-01-29 16:44:02 +01:00
|
|
|
// Hooks
|
2023-03-24 21:49:37 +01:00
|
|
|
import { useApp } from 'shared/hooks/use-app.mjs'
|
2023-01-29 16:44:02 +01:00
|
|
|
// Dependencies
|
2022-05-25 18:35:20 +02:00
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2022-12-26 17:13:44 +01:00
|
|
|
//import { useTranslation } from 'next-i18next'
|
2023-01-08 22:36:15 -08:00
|
|
|
import Head from 'next/head'
|
2023-01-29 16:44:02 +01:00
|
|
|
// Components
|
|
|
|
import { PageWrapper } from 'site/components/wrappers/page.mjs'
|
|
|
|
import { Popout } from 'shared/components/popout.mjs'
|
|
|
|
import { BareLayout } from 'site/components/layouts/bare.mjs'
|
|
|
|
import { PageLink } from 'shared/components/page-link.mjs'
|
2022-01-02 17:16:15 +01:00
|
|
|
|
2023-01-09 21:37:05 +01:00
|
|
|
const HomePage = (props) => {
|
|
|
|
const app = useApp(props)
|
2023-01-08 22:36:15 -08:00
|
|
|
const title = 'Welcome to FreeSewing.org'
|
2022-12-26 17:13:44 +01:00
|
|
|
// Not using translation for now
|
|
|
|
// const { t } = useTranslation(['homepage', 'ograph'])
|
2022-05-25 18:35:20 +02:00
|
|
|
|
2022-01-02 17:16:15 +01:00
|
|
|
return (
|
2023-01-29 16:44:02 +01:00
|
|
|
<PageWrapper app={app} title={title} layout={BareLayout}>
|
2023-01-08 22:36:15 -08:00
|
|
|
<Head>
|
|
|
|
<title>{title}</title>
|
|
|
|
</Head>
|
2022-05-25 18:35:20 +02:00
|
|
|
<div>
|
2022-12-03 11:25:02 -06:00
|
|
|
<div className="max-w-xl m-auto my-32 px-6">
|
2022-12-26 15:35:22 +01:00
|
|
|
<Popout fixme>
|
2023-01-29 16:44:02 +01:00
|
|
|
Create homepage. Meanwhile check <PageLink href="/signup" txt="the signup flow" />
|
2022-12-26 15:35:22 +01:00
|
|
|
</Popout>
|
2022-05-25 18:35:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-29 16:44:02 +01:00
|
|
|
</PageWrapper>
|
2022-01-02 17:16:15 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default HomePage
|
2022-05-25 18:35:20 +02:00
|
|
|
|
|
|
|
export async function getStaticProps({ locale }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2022-05-29 11:58:48 +02:00
|
|
|
...(await serverSideTranslations(locale)),
|
2023-03-26 16:50:46 +02:00
|
|
|
page: {
|
|
|
|
path: [],
|
|
|
|
},
|
2022-12-03 11:25:02 -06:00
|
|
|
},
|
2022-05-25 18:35:20 +02:00
|
|
|
}
|
|
|
|
}
|