-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Who's using Material-UI? (#15169)
- Loading branch information
Showing
10 changed files
with
103 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { withStyles } from '@material-ui/core/styles'; | ||
import NoSsr from '@material-ui/core/NoSsr'; | ||
import Grid from '@material-ui/core/Grid'; | ||
import Button from '@material-ui/core/Button'; | ||
import Typography from '@material-ui/core/Typography'; | ||
|
||
const users = [ | ||
{ | ||
logo: 'nasa.png', | ||
caption: 'NASA', | ||
}, | ||
{ | ||
logo: 'walmart-labs.png', | ||
caption: 'Walmart Labs', | ||
}, | ||
{ | ||
logo: 'capgemini.png', | ||
caption: 'Capgemini', | ||
}, | ||
{ | ||
logo: 'uniqlo.png', | ||
caption: 'Uniqlo', | ||
}, | ||
{ | ||
logo: 'bethesda.png', | ||
caption: 'Bethesda', | ||
}, | ||
]; | ||
|
||
const styles = theme => ({ | ||
root: { | ||
padding: theme.spacing.unit * 2, | ||
backgroundColor: theme.palette.background.paper, | ||
minHeight: 160, | ||
paddingTop: theme.spacing.unit * 5, | ||
}, | ||
container: { | ||
paddingTop: theme.spacing.unit * 14, | ||
paddingBottom: theme.spacing.unit * 14, | ||
margin: 'auto', | ||
borderTop: `1px solid ${theme.palette.divider}`, | ||
maxWidth: theme.spacing.unit * 110, | ||
}, | ||
grid: { | ||
marginTop: theme.spacing.unit * 5, | ||
marginBottom: theme.spacing.unit * 5, | ||
}, | ||
img: { | ||
margin: '12px 24px', | ||
}, | ||
}); | ||
|
||
function HomeUsers(props) { | ||
const { classes } = props; | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<NoSsr> | ||
<div className={classes.container}> | ||
<Typography variant="h4" align="center" gutterBottom> | ||
{"Who's using Material-UI?"} | ||
</Typography> | ||
<Typography variant="body1" align="center" gutterBottom> | ||
Join these and many other great organisations! | ||
</Typography> | ||
<Grid container justify="center" className={classes.grid}> | ||
{users.map(user => ( | ||
<img | ||
src={`/static/images/users/${user.logo}`} | ||
alt={user.caption} | ||
className={classes.img} | ||
/> | ||
))} | ||
</Grid> | ||
<Typography variant="body1" align="center" gutterBottom> | ||
Are you using Material-UI? | ||
</Typography> | ||
<Grid container justify="center"> | ||
<Button | ||
variant="outlined" | ||
href="https://spectrum.chat/material-ui/general/whos-using-material-ui~00e6687a-9b2d-454f-97a6-950d9fde71cf" | ||
> | ||
Let us know! | ||
</Button> | ||
</Grid> | ||
</div> | ||
</NoSsr> | ||
</div> | ||
); | ||
} | ||
|
||
HomeUsers.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default withStyles(styles)(HomeUsers); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.