aboutsummaryrefslogtreecommitdiff
path: root/src/PollCard/PollCard.tsx
blob: 24ad3eb9769bb2a4d8dfae83dd1a29a0427a6aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';
import {makeStyles} from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import CardMedia from '@material-ui/core/CardMedia';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
  root: {
    maxWidth: 600,
    height: 500,
    margin: '20px auto',
  },
  images: {
    height: 400,
    width: 300,
    margin:'20px 0',
  },
  imagesBlock: {
    display:'flex',
  }
});

const PollCard: React.FC  = () =>{
  const classes = useStyles();

  return (
    <Card className={classes.root}>
      <CardActionArea>
        <div className={classes.imagesBlock}>
          <CardMedia className={classes.images}
                     image='https://images.pexels.com/photos/556666/pexels-photo-556666.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'/>
          <CardMedia className={classes.images}
                     image='https://cdn.psychologytoday.com/sites/default/files/field_blog_entry_images/2019-06/pexels-photo-556667.jpeg'/>
        </div>
      </CardActionArea>

    </Card>
  );
}
export default PollCard;