-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
45 lines (38 loc) · 1.22 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import FounderWord from '../components/FounderWord'
import SignupCard from '../components/SignupCard'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
const Homepage = () => {
const router = useRouter()
const { t } = useTranslation('common')
return (
<div>
<main className="grid grid-flow-row gap-y-32 pt-16">
<div className="grid grid-flow-row gap-y-16 px-2">
<h1 className="text-4xl font-bold sm:text-5xl">
{t('missionStatement')}
</h1>
<SignupCard
signupHeadline={t('signupHeadline')}
signupSubline={t('signupSubline')}
signupPlaceholder={t('signupPlaceholder')}
signupCta={t('signupCta')}
signupPrivacy={t('signupPrivacy')}
signupLocale={t('signupLocale')}
/>
</div>
<FounderWord
founderQuote={t('founderQuote')}
founderTitle={t('founderTitle')}
/>
</main>
</div>
)
}
export const getStaticProps = async ({ locale }) => ({
props: {
...(await serverSideTranslations(locale, ['common'])),
},
})
export default Homepage