import React from "react" import classnames from "classnames" import { makeStyles } from "@material-ui/core/styles" import { Card, CardContent, CardMedia, Typography, Button, Chip, Link, } from "@material-ui/core" const useStyles = makeStyles(theme => ({ card: { display: "flex", minHeight: "400px", "&.reverse": { flexDirection: "row-reverse", [theme.breakpoints.down("sm")]: { flexDirection: "column", }, }, [theme.breakpoints.down("sm")]: { flexDirection: "column", }, }, cardContent: { display: "flex", flexDirection: "column", width: "45%", [theme.breakpoints.down("sm")]: { width: "100%", }, }, divider: { flex: 1, }, contentContainer: { marginBottom: theme.spacing(8), }, technologies: { marginBottom: theme.spacing(2), "& > *:not(:last-child)": { marginRight: theme.spacing(1), }, "& > *": { marginBottom: theme.spacing(1), }, }, buttons: { "& > *:not(:last-child)": { marginRight: theme.spacing(1), }, "& > *": { marginBottom: theme.spacing(1), [theme.breakpoints.down("xs")]: { width: "100%", }, }, }, cover: { width: "55%", [theme.breakpoints.down("sm")]: { width: "100%", height: 0, paddingTop: "56.25%", }, }, })) function Project({ reverse, title, description, technologies, github, live }) { const classes = useStyles() return (
{title} {description}
{technologies.map(technology => { return ( ) })}
{github && ( )} {live && ( )}
) } Project.defaultProps = { reverse: false, } export default Project