well, it works
This commit is contained in:
20
src/Card.js
20
src/Card.js
@@ -14,7 +14,8 @@ const useStyles = makeStyles({
|
|||||||
marginBottom: "1rem"
|
marginBottom: "1rem"
|
||||||
},
|
},
|
||||||
inHouse: {
|
inHouse: {
|
||||||
// backgroundColor: '#2bfc58'
|
fontSize: 14,
|
||||||
|
color: '#00ad26'
|
||||||
},
|
},
|
||||||
bullet: {
|
bullet: {
|
||||||
display: "inline-block",
|
display: "inline-block",
|
||||||
@@ -27,7 +28,8 @@ const useStyles = makeStyles({
|
|||||||
btmBox: {
|
btmBox: {
|
||||||
padding: "1rem",
|
padding: "1rem",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "row"
|
flexDirection: "row",
|
||||||
|
justifyContent: 'space-between'
|
||||||
},
|
},
|
||||||
spacer: {
|
spacer: {
|
||||||
flexGrow: 1
|
flexGrow: 1
|
||||||
@@ -40,7 +42,7 @@ const useStyles = makeStyles({
|
|||||||
marginBottom: 12
|
marginBottom: 12
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
height: '3rem'
|
height: "3rem"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -50,7 +52,7 @@ function SimpleCard({ name, number, inHouse, isNitro, desc, abv }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
className={clsx({ [classes.card]: true, [classes.inHouse]: inHouse })}
|
className={clsx({ [classes.card]: true})}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -77,7 +79,15 @@ function SimpleCard({ name, number, inHouse, isNitro, desc, abv }) {
|
|||||||
ABV: {abv}%
|
ABV: {abv}%
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
<div className={classes.spacer} />
|
{inHouse && (
|
||||||
|
<Typography
|
||||||
|
className={classes.inHouse}
|
||||||
|
color="textSecondary"
|
||||||
|
gutterBottom
|
||||||
|
>
|
||||||
|
IN HOUSE
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
{isNitro && (
|
{isNitro && (
|
||||||
<Typography
|
<Typography
|
||||||
className={classes.nitro}
|
className={classes.nitro}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ export default function Table() {
|
|||||||
const styles = useStyles();
|
const styles = useStyles();
|
||||||
console.log(styles);
|
console.log(styles);
|
||||||
const cards = beers
|
const cards = beers
|
||||||
.filter(i => i.inHouse)
|
|
||||||
.map((i, index) => (
|
.map((i, index) => (
|
||||||
<Card key={`${i.name}-${index}`} number={index + 1} {...i} />
|
<Card key={`${i.name}-${index}`} number={index + 1} {...i} />
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user