Created
June 15, 2020 23:40
-
-
Save karenying/ef9aa2d89cb7097e65ee3c1a5fa35d56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Card, makeStyles } from '@material-ui/core'; | |
export default function CarouselSlide(props) { | |
const { backgroundColor, title } = props.content; | |
const useStyles = makeStyles(() => ({ | |
card: { | |
backgroundColor, | |
borderRadius: 5, | |
padding: '75px 50px', | |
margin: '0px 25px', | |
width: '500px', | |
boxShadow: '20px 20px 20px black', | |
display: 'flex', | |
justifyContent: 'center', | |
} | |
})); | |
const classes = useStyles(); | |
return ( | |
<Card className={classes.card}> | |
<h1>{title}</h1> | |
</Card> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment