import React, { Fragment } from 'react'
import CircularProgress from '@material-ui/core/CircularProgress'
import { withStyles } from '@material-ui/core/styles'
import LinearProgress from '@material-ui/core/LinearProgress';
const styles = theme => ({
  loader: {
    display: 'flex',
    flexDirection: 'column',
    alignItems: 'center',
    textAlign: 'center',
    justifyContent: 'center',
    fontFamily: 'Dosis',
    fontWeight: '500',
    fontSize: '1em',
    padding: theme.spacing(6,0),
    color: theme.palette.primary.main,
  },
  root: {
    top:"200px",
    width: '100%',
    '& > * + *': {
      marginTop: theme.spacing(2),
    },
  },
})

class LoaderVideo extends React.Component {
  render() {
    const { classes } = this.props;
    return (
      <div className={classes.root}>
        <div className={classes.loader + ' ' + 'alert alert-info'}><CircularProgress color="primary" />Veuillez ne pas quitter la page.<br/> Le temps de chargement peut varier de quelques secondes à plusieurs minutes en fonction de la qualité de votre connexion internet.<br/></div>
        <div >
        <LinearProgress />
        <LinearProgress color="secondary" />
        </div>
      </div>
      )

  }
}

export default withStyles(styles)(LoaderVideo)