-
-
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.
[docs] Increase the contrast of the demos (#18396)
- Loading branch information
1 parent
aed1f38
commit 847feaa
Showing
119 changed files
with
983 additions
and
1,159 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
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
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 |
---|---|---|
@@ -1,42 +1,44 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'; | ||
import { green, pink } from '@material-ui/core/colors'; | ||
import Avatar from '@material-ui/core/Avatar'; | ||
import FolderIcon from '@material-ui/icons/Folder'; | ||
import PageviewIcon from '@material-ui/icons/Pageview'; | ||
import AssignmentIcon from '@material-ui/icons/Assignment'; | ||
import Grid from '@material-ui/core/Grid'; | ||
|
||
const useStyles = makeStyles({ | ||
avatar: { | ||
margin: 10, | ||
}, | ||
pinkAvatar: { | ||
margin: 10, | ||
color: '#fff', | ||
backgroundColor: pink[500], | ||
}, | ||
greenAvatar: { | ||
margin: 10, | ||
color: '#fff', | ||
backgroundColor: green[500], | ||
}, | ||
}); | ||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
}, | ||
}, | ||
pink: { | ||
color: '#fff', | ||
backgroundColor: pink[500], | ||
}, | ||
green: { | ||
color: '#fff', | ||
backgroundColor: green[500], | ||
}, | ||
}), | ||
); | ||
|
||
export default function IconAvatars() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Grid container justify="center" alignItems="center"> | ||
<Avatar className={classes.avatar}> | ||
<div className={classes.root}> | ||
<Avatar> | ||
<FolderIcon /> | ||
</Avatar> | ||
<Avatar className={classes.pinkAvatar}> | ||
<Avatar className={classes.pink}> | ||
<PageviewIcon /> | ||
</Avatar> | ||
<Avatar className={classes.greenAvatar}> | ||
<Avatar className={classes.green}> | ||
<AssignmentIcon /> | ||
</Avatar> | ||
</Grid> | ||
</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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Avatar from '@material-ui/core/Avatar'; | ||
import Grid from '@material-ui/core/Grid'; | ||
|
||
const useStyles = makeStyles({ | ||
avatar: { | ||
margin: 10, | ||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
}, | ||
}, | ||
bigAvatar: { | ||
margin: 10, | ||
width: 60, | ||
height: 60, | ||
}, | ||
}); | ||
})); | ||
|
||
export default function ImageAvatars() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Grid container justify="center" alignItems="center"> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" className={classes.avatar} /> | ||
<div className={classes.root}> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" /> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" className={classes.bigAvatar} /> | ||
</Grid> | ||
</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 |
---|---|---|
@@ -1,26 +1,29 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'; | ||
import Avatar from '@material-ui/core/Avatar'; | ||
import Grid from '@material-ui/core/Grid'; | ||
|
||
const useStyles = makeStyles({ | ||
avatar: { | ||
margin: 10, | ||
}, | ||
bigAvatar: { | ||
margin: 10, | ||
width: 60, | ||
height: 60, | ||
}, | ||
}); | ||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
}, | ||
}, | ||
bigAvatar: { | ||
width: 60, | ||
height: 60, | ||
}, | ||
}), | ||
); | ||
|
||
export default function ImageAvatars() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Grid container justify="center" alignItems="center"> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" className={classes.avatar} /> | ||
<div className={classes.root}> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" /> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" className={classes.bigAvatar} /> | ||
</Grid> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.