next-app-boilerplate/pages/index.tsx

36 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

import NextHead from 'components/NextHead'
import type { NextPage } from 'next'
import Link from 'next/link'
2022-05-16 14:25:01 +02:00
import useTranslation from 'next-translate/useTranslation'
import { FiGithub } from 'react-icons/fi'
2023-02-10 12:42:32 +01:00
import { Fragment } from 'react'
2022-02-12 23:07:11 +01:00
const Home: NextPage = () => {
2022-05-16 14:25:01 +02:00
const { t } = useTranslation()
return (
2023-02-10 12:42:32 +01:00
<Fragment>
2022-05-16 14:25:01 +02:00
<NextHead />
2023-02-10 12:42:32 +01:00
<main className='flex min-h-screen max-w-full flex-col items-center justify-center bg-gradient-to-br from-primary to-secondary'>
<p className='px-3 text-center text-4xl italic text-white'>
{t('home:title')}
</p>
<span className='mt-3 px-3 text-center text-lg italic text-white/90'>
{t('home:subtitle')}
</span>
2023-02-10 12:42:32 +01:00
<Link
target='_blank'
href='https://github.com/Walidoux/next-app-boilerplate'
className='mt-7 flex cursor-pointer items-center justify-center rounded-xl border-none bg-white/80 bg-none py-[10px] px-6 font-semibold text-black no-underline outline-none transition duration-300 hover:bg-black/50 hover:text-white'>
2022-05-16 14:25:01 +02:00
<FiGithub fontSize={20} />
2022-08-13 15:15:08 +02:00
<span className='ml-3'>{t('common:repo-github')}</span>
2023-02-10 12:42:32 +01:00
</Link>
</main>
</Fragment>
)
}
2022-02-12 23:07:11 +01:00
export default Home