Skip to content

Instantly share code, notes, and snippets.

@karenying
Created June 15, 2020 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenying/ef9aa2d89cb7097e65ee3c1a5fa35d56 to your computer and use it in GitHub Desktop.
Save karenying/ef9aa2d89cb7097e65ee3c1a5fa35d56 to your computer and use it in GitHub Desktop.
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