2020-12-17 09:08:18 +01:00
import PropTypes from 'prop-types'
import { red , green , grey } from '@material-ui/core/colors'
import { AutoRotatingCarousel , Slide } from 'material-auto-rotating-carousel'
export default function Carousel ( { handleOpen , setHandleOpen , isMobile } ) {
return (
< AutoRotatingCarousel
label = 'An nou ay'
open = { handleOpen }
autoplay = { false }
mobile = { isMobile }
style = { { position : 'absolute' } }
onClose = { ( ) => setHandleOpen ( false ) }
onStart = { ( ) => setHandleOpen ( false ) }
>
< Slide
2020-12-19 00:08:43 +01:00
media = { < img src = '/logo-index.png' width = { 300 } height = { 170 } / > }
2020-12-17 09:08:18 +01:00
mediaBackgroundStyle = { { backgroundColor : grey [ 900 ] } }
style = { { backgroundColor : grey [ 800 ] } }
title = 'Bienvenue'
subtitle = 'Voici un rapide tour d’ horizon de ce que nous proposons'
/ >
< Slide
media = { < img src = '/awtis.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : red [ 400 ] } }
style = { { backgroundColor : red [ 600 ] } }
title = 'La page "Awtis"'
subtitle = 'Liste les différents artistes par ordre alphabétique.'
/ >
< Slide
media = { < img src = '/admiral.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : green [ 400 ] } }
style = { { backgroundColor : green [ 600 ] } }
title = 'Biographie'
subtitle = 'Disponible en cliquant sur l’ artiste. Vous pourrez également consulter ses "teks" via l’ icône à côté de son nom.'
/ >
< Slide
media = { < img src = '/admiral-teks.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : grey [ 900 ] } }
style = { { backgroundColor : grey [ 800 ] } }
title = 'Liste des "tèks"'
subtitle = 'Disponible en cliquant sur la flèche en dessous de la photo.'
/ >
< Slide
media = { < img src = '/teks.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : red [ 400 ] } }
style = { { backgroundColor : red [ 600 ] } }
title = 'La page "Tèks"'
subtitle = 'Regroupe les transcriptions et les traductions disponibles. Si aucun "tèks" n’ est sélectionné, la page affiche les 6 derniers publiés sur le site.'
/ >
< Slide
media = { < img src = '/teks-cheche.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : green [ 400 ] } }
style = { { backgroundColor : green [ 600 ] } }
title = 'Liste des "Tèks"'
subtitle = 'La barre latérale gauche permet de sélectionner un "tèks" ou d’ effectuer une recherche.'
/ >
< Slide
media = { < img src = '/stream.JPG' / > }
mediaBackgroundStyle = { { backgroundColor : grey [ 900 ] } }
style = { { backgroundColor : grey [ 800 ] } }
title = 'Streaming'
subtitle = 'Vous avez la possiblité de visionner le clip, écouter et/ou télécharger la musique via les plateformes de streaming et de téléchargement.'
/ >
< Slide
2020-12-19 00:08:43 +01:00
media = { < img src = '/logo-index.png' width = { 300 } height = { 170 } / > }
2020-12-17 09:08:18 +01:00
mediaBackgroundStyle = { { backgroundColor : grey [ 900 ] } }
style = { { backgroundColor : grey [ 800 ] } }
title = 'Nous contacter'
subtitle = 'Pour toute correction ou suggestion, vous pouvez nous contacter à cette adresse : kontak@o-k-i.net'
/ >
< / A u t o R o t a t i n g C a r o u s e l >
)
}
Carousel . propTypes = {
2020-12-18 21:54:15 +01:00
handleOpen : PropTypes . bool . isRequired ,
2020-12-17 09:08:18 +01:00
setHandleOpen : PropTypes . func . isRequired ,
isMobile : PropTypes . bool . isRequired
}