2020-08-03 12:04:07 +02:00
|
|
|
import { useEffect } from 'react'
|
|
|
|
import SwipeableViews from 'react-swipeable-views'
|
|
|
|
import { autoPlay } from 'react-swipeable-views-utils'
|
|
|
|
import Link from 'next/link'
|
|
|
|
import HeadTag from '../components/HeadTag'
|
|
|
|
import Loader from '../components/Loader'
|
|
|
|
import '../public/css/pages/index.css'
|
2020-03-22 16:21:19 +01:00
|
|
|
|
2020-08-03 12:04:07 +02:00
|
|
|
const AutoPlaySwipeableViews = autoPlay(SwipeableViews)
|
2020-03-18 16:26:18 +01:00
|
|
|
|
2020-03-21 16:43:37 +01:00
|
|
|
const Home = () => {
|
2020-08-03 12:04:07 +02:00
|
|
|
useEffect(() => {
|
|
|
|
console.log(
|
|
|
|
'%c ⚙️ FunctionProject',
|
|
|
|
'color: #ffd800; font-weight: bold; background-color: #181818;padding: 10px;border-radius: 10px;font-size: 20px'
|
|
|
|
)
|
|
|
|
}, [])
|
2020-03-21 16:43:37 +01:00
|
|
|
|
2020-08-03 12:04:07 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<HeadTag />
|
|
|
|
<div className='Home__container container-fluid text-center'>
|
|
|
|
<AutoPlaySwipeableViews enableMouseEvents interval={15000}>
|
|
|
|
{/* Slide 1 */}
|
|
|
|
<div className='row align-items-center justify-content-center'>
|
|
|
|
<div className='col-24'>
|
|
|
|
<h1 className='title-important'>FunctionProject</h1>
|
|
|
|
<p className='Home__description'>
|
2020-08-03 14:37:05 +02:00
|
|
|
Apprenez la programmation grâce à l'apprentissage par projet
|
|
|
|
alias fonction (en <span className='important'>JavaScript</span>
|
|
|
|
).
|
2020-08-03 12:04:07 +02:00
|
|
|
<br />
|
|
|
|
<Link href='/about'>
|
|
|
|
<a>En savoir plus ? (à-propos)</a>
|
|
|
|
</Link>
|
|
|
|
<br />
|
2020-08-03 14:37:05 +02:00
|
|
|
Découvrez la liste des fonctions disponibles :
|
2020-08-03 12:04:07 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className='col-24 Home__logo-spin'>
|
|
|
|
<Link href='/functions'>
|
2020-08-03 14:37:05 +02:00
|
|
|
<a>
|
|
|
|
<Loader width='100%' height='13em' speed='5s' />
|
|
|
|
</a>
|
2020-08-03 12:04:07 +02:00
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-22 16:21:19 +01:00
|
|
|
|
2020-08-03 12:04:07 +02:00
|
|
|
{/* Slide 2 */}
|
|
|
|
<div className='row align-items-center justify-content-center'>
|
|
|
|
<div className='col-24'>
|
|
|
|
<h1 className='title-important'>Code Source</h1>
|
|
|
|
<p className='Home__description'>
|
2020-08-03 14:37:05 +02:00
|
|
|
Le partage est essentiel afin de progresser. <br />
|
|
|
|
Par conséquent chaque fonction a un article expliquant comment
|
|
|
|
elle fonctionne et <br />
|
|
|
|
le code source du projet est disponible sur mon profil GitHub :
|
2020-08-03 12:04:07 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className='col-24'>
|
2020-08-03 14:37:05 +02:00
|
|
|
<a
|
|
|
|
target='_blank'
|
|
|
|
rel='noopener noreferrer'
|
|
|
|
href='https://github.com/Divlo/FunctionProject'
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
className='Home__image-width'
|
|
|
|
src='/images/GitHub.png'
|
|
|
|
alt='GitHub'
|
|
|
|
/>
|
|
|
|
</a>
|
2020-08-03 12:04:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</AutoPlaySwipeableViews>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
)
|
2020-03-21 16:43:37 +01:00
|
|
|
}
|
2020-03-18 16:26:18 +01:00
|
|
|
|
2020-08-03 12:04:07 +02:00
|
|
|
export default Home
|