forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Extract landing-only modules (mui#20187)
- Loading branch information
1 parent
f286d18
commit 37af06f
Showing
19 changed files
with
342 additions
and
357 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 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,43 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Link from 'docs/src/modules/components/Link'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
const useStyles = makeStyles( | ||
theme => ({ | ||
root: { | ||
padding: theme.spacing(1, 2, 1, 2), | ||
right: 0, | ||
left: 0, | ||
color: theme.palette.common.white, | ||
backgroundColor: '#626980', | ||
position: 'relative', | ||
display: 'none', | ||
[theme.breakpoints.up('sm')]: { | ||
display: 'flex', | ||
top: 100, | ||
left: 'auto', | ||
position: 'absolute', | ||
borderBottomLeftRadius: 36 / 2, | ||
borderTopLeftRadius: 36 / 2, | ||
}, | ||
}, | ||
}), | ||
{ name: 'Pro' }, | ||
); | ||
|
||
export default function Pro() { | ||
const classes = useStyles(); | ||
const t = useSelector(state => state.options.t); | ||
|
||
return ( | ||
<Link | ||
variant="body2" | ||
className={classNames(classes.root, 'mui-fixed')} | ||
href="/getting-started/support/#professional-support-premium" | ||
> | ||
{t('getProfessionalSupport')} | ||
</Link> | ||
); | ||
} |
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.