2022-05-25 18:35:20 +02:00
|
|
|
import Page from 'site/components/wrappers/page.js'
|
2022-01-02 17:16:15 +01:00
|
|
|
import useApp from 'site/hooks/useApp.js'
|
2022-05-29 12:52:11 +02:00
|
|
|
import Popout from 'shared/components/popout.js'
|
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'
|
2022-05-25 18:35:20 +02:00
|
|
|
import Layout from 'site/components/layouts/bare'
|
2022-12-26 15:35:22 +01:00
|
|
|
import PageLink from 'shared/components/page-link'
|
2022-01-02 17:16:15 +01:00
|
|
|
|
2022-12-03 11:25:02 -06:00
|
|
|
const HomePage = () => {
|
2022-01-02 17:16:15 +01:00
|
|
|
const app = useApp()
|
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 (
|
2022-05-25 18:35:20 +02:00
|
|
|
<Page app={app} title="Welcome to FreeSewing.org" layout={Layout}>
|
|
|
|
<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>
|
|
|
|
Create homepage. Meanwhile check <PageLink href="/docs" txt="docs" />
|
|
|
|
</Popout>
|
2022-05-25 18:35:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-02 17:16:15 +01:00
|
|
|
</Page>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
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)),
|
2022-12-03 11:25:02 -06:00
|
|
|
},
|
2022-05-25 18:35:20 +02:00
|
|
|
}
|
|
|
|
}
|