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
|
2023-03-27 19:07:48 +02:00
|
|
|
import { PageWrapper } from 'shared/components/wrappers/page.mjs'
|
2023-07-23 18:42:06 +02:00
|
|
|
import { Popout } from 'shared/components/popout/index.mjs'
|
2023-01-29 16:44:02 +01:00
|
|
|
import { PageLink } from 'shared/components/page-link.mjs'
|
2023-05-15 15:57:46 +02:00
|
|
|
import { BareLayout } from 'site/components/layouts/bare.mjs'
|
2023-07-25 19:38:22 +02:00
|
|
|
import { ForceAccountCheck } from 'shared/components/account/force-account-check.mjs'
|
2022-01-02 17:16:15 +01:00
|
|
|
|
2023-04-28 21:23:06 +02:00
|
|
|
/*
|
|
|
|
* Each page MUST be wrapped in the PageWrapper component.
|
|
|
|
* You also MUST spread props.page into this wrapper component
|
|
|
|
* when path and locale come from static props (as here)
|
|
|
|
* or set them manually.
|
|
|
|
*/
|
|
|
|
const HomePage = ({ page }) => (
|
|
|
|
<PageWrapper {...page} layout={BareLayout}>
|
|
|
|
<Head>
|
|
|
|
<title>Welcome to FreeSewing.org</title>
|
|
|
|
</Head>
|
|
|
|
<div>
|
|
|
|
<div className="max-w-xl m-auto my-32 px-6">
|
2023-07-25 19:38:22 +02:00
|
|
|
<ForceAccountCheck />
|
2023-04-28 21:23:06 +02:00
|
|
|
<Popout fixme>
|
|
|
|
Create homepage. Meanwhile check <PageLink href="/signup" txt="the signup flow" />
|
|
|
|
</Popout>
|
|
|
|
<h2>What is FreeSewing?</h2>
|
|
|
|
<small>(by ChatGPT)</small>
|
|
|
|
<p>
|
|
|
|
Freesewing is an open-source pattern making software that allows users to generate custom
|
|
|
|
sewing patterns based on their own measurements. It is designed to be flexible and
|
|
|
|
customizable, and can be used to create a wide range of garments, from simple t-shirts and
|
|
|
|
skirts to more complex dresses and jackets.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Freesewing is available for free, and users can access a wide range of pre-made patterns
|
|
|
|
or create their own from scratch. The software is designed to be easy to use, with an
|
|
|
|
intuitive interface that guides users through the process of creating a pattern
|
|
|
|
step-by-step.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
In addition to the pattern making software, freesewing also has an active online community
|
|
|
|
of sewists and pattern makers who share tips, techniques, and advice on all aspects of
|
|
|
|
sewing. The community also collaborates on creating new patterns and improving existing
|
|
|
|
ones, and users can contribute their own patterns to the project as well.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Overall, freesewing is a powerful tool for anyone interested in sewing and pattern making,
|
|
|
|
whether they are seasoned professionals or beginners just starting out.
|
|
|
|
</p>
|
2022-05-25 18:35:20 +02:00
|
|
|
</div>
|
2023-04-28 21:23:06 +02:00
|
|
|
</div>
|
|
|
|
</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: {
|
2023-04-28 21:23:06 +02:00
|
|
|
locale,
|
2023-03-26 16:50:46 +02:00
|
|
|
path: [],
|
|
|
|
},
|
2022-12-03 11:25:02 -06:00
|
|
|
},
|
2022-05-25 18:35:20 +02:00
|
|
|
}
|
|
|
|
}
|