-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
f572e46
commit f75e515
Showing
3 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { withStyles } from '@material-ui/core/styles'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import Link from 'docs/src/modules/components/Link'; | ||
|
||
const styles = theme => ({ | ||
root: { | ||
padding: `${theme.spacing.unit}px ${theme.spacing.unit}px ${theme.spacing.unit}px ${theme | ||
.spacing.unit * 2}px`, | ||
right: 0, | ||
left: 0, | ||
display: 'flex', | ||
backgroundColor: '#626980', // Tidelift color. | ||
position: 'relative', | ||
top: 56, | ||
[theme.breakpoints.up('sm')]: { | ||
top: 64 + 36 / 2, | ||
left: 'auto', | ||
position: 'absolute', | ||
borderBottomLeftRadius: 36 / 2, | ||
borderTopLeftRadius: 36 / 2, | ||
}, | ||
}, | ||
logo: { | ||
background: 'url(/static/images/tidelift.svg) no-repeat 50%', | ||
content: "''", | ||
width: 20, | ||
height: 20, | ||
margin: `0 ${theme.spacing.unit}px 0 0`, | ||
}, | ||
label: { | ||
color: theme.palette.common.white, | ||
}, | ||
}); | ||
|
||
function Tidelift(props) { | ||
const { classes } = props; | ||
|
||
return ( | ||
<Link | ||
className={classes.root} | ||
variant="button" | ||
href="https://tidelift.com/subscription/npm/material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<span className={classes.logo} /> | ||
<Typography className={classes.label}>Get Professionally Supported Material-UI</Typography> | ||
</Link> | ||
); | ||
} | ||
|
||
Tidelift.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default withStyles(styles)(Tidelift); |
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.