2019-10-20 01:40:55 +02:00
|
|
|
import React from 'react'
|
2019-10-21 12:00:14 +02:00
|
|
|
import dynamic from 'next/dynamic'
|
2019-10-20 01:40:55 +02:00
|
|
|
import { title, description } from '../../site.config'
|
2019-10-21 12:00:14 +02:00
|
|
|
import Layout from '../Layout'
|
2019-10-20 01:40:55 +02:00
|
|
|
import styles from './index.module.css'
|
|
|
|
|
2019-10-21 12:00:14 +02:00
|
|
|
const Add = dynamic(() => import('../components/Add'))
|
|
|
|
const Info = dynamic(() => import('../components/Info'))
|
2019-10-20 01:40:55 +02:00
|
|
|
|
2021-09-12 17:00:43 +02:00
|
|
|
const Home = (): JSX.Element => (
|
2019-10-20 01:40:55 +02:00
|
|
|
<Layout>
|
|
|
|
<header className={styles.header}>
|
|
|
|
<h1 className={styles.title}>{title}</h1>
|
|
|
|
<p className={styles.description}>{description}</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<Add />
|
|
|
|
<Info />
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
|
|
|
|
export default Home
|