diff options
author | ilyayudovin <ilyayudovin123.@mail.com> | 2020-06-07 00:40:37 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123.@mail.com> | 2020-06-07 00:40:37 +0300 |
commit | 709fc75cdf91bcabac41573da5c36fe0cf72f869 (patch) | |
tree | 415222ea4540e6ec3ec6b310ed986af81ad69598 /src/PollCard | |
parent | f25124c0de2b87718192c45c3c59d51a42b006fd (diff) | |
download | which-ui-709fc75cdf91bcabac41573da5c36fe0cf72f869.tar.gz |
refactor: change names and imports
Diffstat (limited to 'src/PollCard')
-rw-r--r-- | src/PollCard/PollCard.tsx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx new file mode 100644 index 0000000..24ad3eb --- /dev/null +++ b/src/PollCard/PollCard.tsx @@ -0,0 +1,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;
\ No newline at end of file |