import React from "react";
import { makeStyles } from "@material-ui/core/styles";

import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js";
import Card from "components/Card/Card.js";
import styles from "assets/jss/nextjs-material-kit/pages/componentsSections/homeStyle.js";
import Carousel from "react-slick";
import Grid from '@material-ui/core/Grid';

import image1 from 'assets/img/carousel/1.jpg'
import image2 from 'assets/img/carousel/2.jpg'
import image3 from 'assets/img/carousel/3.jpg'

const useStyles = makeStyles(styles);
const DataCarousel = function ()  {
    const classes = useStyles();
    const settings = {
        dots: true,
        infinite: true,
        speed: 500,
        slidesToShow: 1,
        slidesToScroll: 1,
        autoplay: true,
        time: 5
    };
    return (
        <div className={classes.section} id="notifications" style={{marginTop:"-40px"}}>
            <div className={classes.section}>
            <div className={classes.container}>
                <GridContainer>
                <GridItem className={classes.marginAuto}>
                <Card carousel>
                    <Carousel {...settings}>
                        <img src={image1} alt="First slide" className="slick-image" />
                        <img src={image2} alt="First slide" className="slick-image" />
                        <img src={image3} alt="First slide" className="slick-image" />
                    </Carousel>
                </Card>
                </GridItem>
                </GridContainer>
            </div>
            </div>
        </div>
    );
}

export default DataCarousel;