-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e07461
commit 0f3fae6
Showing
20 changed files
with
259 additions
and
74 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Card from '@material-ui/core/Card'; | ||
import CardActions from '@material-ui/core/CardActions'; | ||
import CardContent from '@material-ui/core/CardContent'; | ||
import Button from '@material-ui/core/Button'; | ||
import Typography from '@material-ui/core/Typography'; | ||
|
||
const useStyles = makeStyles({ | ||
card: { | ||
minWidth: 275, | ||
}, | ||
bullet: { | ||
display: 'inline-block', | ||
margin: '0 2px', | ||
transform: 'scale(0.8)', | ||
}, | ||
title: { | ||
fontSize: 14, | ||
}, | ||
pos: { | ||
marginBottom: 12, | ||
}, | ||
}); | ||
|
||
export default function OutlinedCard() { | ||
const classes = useStyles(); | ||
const bull = <span className={classes.bullet}>•</span>; | ||
|
||
return ( | ||
<Card className={classes.card} variant="outlined"> | ||
<CardContent> | ||
<Typography className={classes.title} color="textSecondary" gutterBottom> | ||
Word of the Day | ||
</Typography> | ||
<Typography variant="h5" component="h2"> | ||
be{bull}nev{bull}o{bull}lent | ||
</Typography> | ||
<Typography className={classes.pos} color="textSecondary"> | ||
adjective | ||
</Typography> | ||
<Typography variant="body2" component="p"> | ||
well meaning and kindly. | ||
<br /> | ||
{'"a benevolent smile"'} | ||
</Typography> | ||
</CardContent> | ||
<CardActions> | ||
<Button size="small">Learn More</Button> | ||
</CardActions> | ||
</Card> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Card from '@material-ui/core/Card'; | ||
import CardActions from '@material-ui/core/CardActions'; | ||
import CardContent from '@material-ui/core/CardContent'; | ||
import Button from '@material-ui/core/Button'; | ||
import Typography from '@material-ui/core/Typography'; | ||
|
||
const useStyles = makeStyles({ | ||
card: { | ||
minWidth: 275, | ||
}, | ||
bullet: { | ||
display: 'inline-block', | ||
margin: '0 2px', | ||
transform: 'scale(0.8)', | ||
}, | ||
title: { | ||
fontSize: 14, | ||
}, | ||
pos: { | ||
marginBottom: 12, | ||
}, | ||
}); | ||
|
||
export default function OutlinedCard() { | ||
const classes = useStyles(); | ||
const bull = <span className={classes.bullet}>•</span>; | ||
|
||
return ( | ||
<Card className={classes.card} variant="outlined"> | ||
<CardContent> | ||
<Typography className={classes.title} color="textSecondary" gutterBottom> | ||
Word of the Day | ||
</Typography> | ||
<Typography variant="h5" component="h2"> | ||
be{bull}nev{bull}o{bull}lent | ||
</Typography> | ||
<Typography className={classes.pos} color="textSecondary"> | ||
adjective | ||
</Typography> | ||
<Typography variant="body2" component="p"> | ||
well meaning and kindly. | ||
<br /> | ||
{'"a benevolent smile"'} | ||
</Typography> | ||
</CardContent> | ||
<CardActions> | ||
<Button size="small">Learn More</Button> | ||
</CardActions> | ||
</Card> | ||
); | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Paper from '@material-ui/core/Paper'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
width: theme.spacing(16), | ||
height: theme.spacing(16), | ||
}, | ||
}, | ||
})); | ||
|
||
export default function SimplePaper() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<Paper elevation={0} /> | ||
<Paper /> | ||
<Paper elevation={3} /> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Theme, createStyles, makeStyles } from '@material-ui/core/styles'; | ||
import Paper from '@material-ui/core/Paper'; | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
width: theme.spacing(16), | ||
height: theme.spacing(16), | ||
}, | ||
}, | ||
}), | ||
); | ||
|
||
export default function SimplePaper() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<Paper elevation={0} /> | ||
<Paper /> | ||
<Paper elevation={3} /> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Paper from '@material-ui/core/Paper'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
width: theme.spacing(16), | ||
height: theme.spacing(16), | ||
}, | ||
}, | ||
})); | ||
|
||
export default function Variants() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<Paper variant="outlined" /> | ||
<Paper variant="outlined" square /> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { Theme, createStyles, makeStyles } from '@material-ui/core/styles'; | ||
import Paper from '@material-ui/core/Paper'; | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
width: theme.spacing(16), | ||
height: theme.spacing(16), | ||
}, | ||
}, | ||
}), | ||
); | ||
|
||
export default function Variants() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<Paper variant="outlined" /> | ||
<Paper variant="outlined" square /> | ||
</div> | ||
); | ||
} |
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
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
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
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
Oops, something went wrong.