next-app-boilerplate/pages/index.tsx

32 lines
846 B
TypeScript
Raw Normal View History

import type { NextPage } from 'next'
2022-05-16 14:25:01 +02:00
import { FiGithub } from 'react-icons/fi'
import Link from 'next/link'
2022-05-16 14:25:01 +02:00
import useTranslation from 'next-translate/useTranslation'
2022-02-12 23:07:11 +01:00
2022-05-16 14:25:01 +02:00
import NextHead from 'components/NextHead'
import styles from '../styles/pages/home.module.scss'
2022-02-12 23:07:11 +01:00
const Home: NextPage = () => {
2022-05-16 14:25:01 +02:00
const { t } = useTranslation()
return (
<main className={styles.application}>
2022-05-16 14:25:01 +02:00
<NextHead />
<p className={styles.title}>
2022-05-16 14:25:01 +02:00
{t('home:title')} <br />
<span className={styles.subtitle}>{t('home:subtitle')}</span>
</p>
<Link href='https://github.com/Walidoux'>
<a className={styles['redirect-link']} target='_blank'>
2022-05-16 14:25:01 +02:00
<FiGithub fontSize={20} />
<span className={styles.text}>{t('common:walidoux-github')}</span>
</a>
</Link>
</main>
)
}
2022-02-12 23:07:11 +01:00
export default Home