This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/pages/index.tsx

77 lines
2.3 KiB
TypeScript
Raw Normal View History

2021-10-24 05:19:39 +02:00
import { GetStaticProps } from 'next'
import Link from 'next/link'
import Image from 'next/image'
import Translation from 'next-translate/Trans'
2021-10-24 05:48:06 +02:00
import useTranslation from 'next-translate/useTranslation'
2021-10-24 05:19:39 +02:00
import { Head } from 'components/Head'
import { Header } from 'components/Header'
2021-10-24 05:48:06 +02:00
import { Main } from 'components/design/Main'
import { Footer } from 'components/Footer'
2021-10-24 05:19:39 +02:00
import { SocialMediaButton } from 'components/design/SocialMediaButton'
2021-10-24 05:48:06 +02:00
import { Button } from 'components/design/Button'
import { ScrollableBody } from 'components/ScrollableBody'
2021-10-24 05:19:39 +02:00
const Home: React.FC = () => {
const { t } = useTranslation()
return (
2021-10-24 05:48:06 +02:00
<ScrollableBody>
2021-10-24 05:19:39 +02:00
<Head />
<Header />
2021-10-24 05:48:06 +02:00
<Main>
<section className='flex flex-col items-center w-4/5'>
<section className='max-w-xs'>
2021-10-24 05:19:39 +02:00
<Link href='/authentication/signup'>
<a>
<Image
width={351}
height={341}
src='/images/svg/design/home.svg'
alt={"Thream's chat app"}
/>
</a>
</Link>
2021-10-24 05:48:06 +02:00
</section>
<section className='text-center'>
<h1 className='my-4 text-3xl font-medium font-headline text-green-800 dark:text-green-400'>
Thream
</h1>
<div
className='font-paragraph text-lg max-w-lg'
data-cy='main-description'
>
2021-10-24 05:19:39 +02:00
<Translation
i18nKey='home:description'
2021-10-24 05:48:06 +02:00
components={[
<strong
className='text-green-800 dark:text-green-400 font-bold'
key='bold'
/>
]}
2021-10-24 05:19:39 +02:00
/>
</div>
2021-10-24 05:48:06 +02:00
<div className='flex justify-center items-center text-center mt-8 space-x-4'>
<Button>{t('home:get-started')}</Button>
<a
href='https://github.com/Thream'
target='_blank'
rel='noopener noreferrer'
>
<SocialMediaButton socialMedia='GitHub' />
</a>
</div>
</section>
2021-10-24 05:19:39 +02:00
</section>
2021-10-24 05:48:06 +02:00
</Main>
<Footer />
</ScrollableBody>
2021-10-24 05:19:39 +02:00
)
}
export const getStaticProps: GetStaticProps = async () => {
return { props: {} }
}
export default Home