Skip to content

Commit ee033ca

Browse files
[docs] Deeper Diamond integration
1 parent 91251a1 commit ee033ca

File tree

8 files changed

+103
-93
lines changed

8 files changed

+103
-93
lines changed

README.md

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,21 @@ yarn add @material-ui/core
4444

4545
Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
4646

47-
## Supporting Material-UI
47+
## Who sponsors Material-UI?
4848

49-
Material-UI is an MIT-licensed open source project. It's an independent project with ongoing development helped by the support of these awesome [backers](https://material-ui.com/discover-more/backers/). If you'd like to join them, please consider:
50-
- [Become a backer or sponsor on Patreon](https://www.patreon.com/oliviertassinari).
51-
- [Become a backer or sponsor on OpenCollective](https://opencollective.com/material-ui).
49+
### Diamond 💎
5250

53-
#### What's the difference between Patreon and OpenCollective?
51+
*3/3 slots available*
5452

55-
Funds donated via Patreon directly support [Olivier Tassinari](https://github.com/oliviertassinari)'s work on Material-UI.
56-
Funds donated via OpenCollective are managed transparently and will be used for compensating work and expenses for core team members.
57-
Your name/logo will receive proper recognition and exposure by donating on either platform.
53+
Diamond Sponsors are those who have pledged $2,000/month and more to Material-UI.
54+
Please contact us at [email protected] to subscribe to this tier.
5855

59-
### Gold Sponsors
60-
61-
Gold Sponsors are those who have pledged $500/month and more to Material-UI.
56+
### Gold 🏆
6257

6358
via [Patreon](https://www.patreon.com/oliviertassinari)
6459

6560
<p style="display: flex; justify-content: center;">
66-
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/tidelift.png?size=96" alt="tidelift" title="Get Professionally Supported Material-UI"></a>
61+
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/tidelift.png?size=96" alt="tidelift" title="Enterprise-ready open source software"></a>
6762
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/teambit.png?size=96" alt="bitsrc" title="The fastest way to share code"></a>
6863
</p>
6964

@@ -74,6 +69,8 @@ via [OpenCollective](https://opencollective.com/material-ui)
7469
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.crosswordsolver.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/crosswordsolver/avatar.png" alt="crosswordsolver" title="Crossword Puzzle Solver" width="100" loading="lazy"></a>
7570
</p>
7671

72+
Gold Sponsors are those who have pledged $500/month and more to Material-UI.
73+
7774
### There is more!
7875

7976
See the full list of [our backers](https://material-ui.com/discover-more/backers/).
@@ -137,34 +134,6 @@ Please read the [changelog](https://github.com/mui-org/material-ui/releases).
137134

138135
The future plans and high priority features and enhancements can be found in the [roadmap](https://material-ui.com/discover-more/roadmap/) file.
139136

140-
## Thanks
141-
142-
Material-UI is only made possible thanks to these great services that sponsor our core infrastructure:
143-
144-
[<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" width="100">](https://github.com/)
145-
146-
GitHub allows us to host the Git repository.
147-
148-
[<img src="https://assets.brandfolder.com/otz6k5-cj8pew-e4rk9u/element.png?v=1501538594" width="120">](https://circleci.com/)
149-
150-
CircleCI allows us to run the test suite.
151-
152-
[<img src="https://cdn.netlify.com/15ecf59b59c9d04b88097c6b5d2c7e8a7d1302d0/1b6d6/img/press/logos/full-logo-light.svg" width="120">](https://www.netlify.com/)
153-
154-
Netlify allows us to distribute the documentation.
155-
156-
[<img src="https://support.crowdin.com/assets/logos/crowdin-logo1-small.png" width="120">](https://crowdin.com/)
157-
158-
CrowdIn allows us to translate the documentation.
159-
160-
[<img src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png" width="120">](https://www.browserstack.com/)
161-
162-
BrowserStack allows us to test in real browsers.
163-
164-
[<img src="https://raw.githubusercontent.com/codecov/media/master/logos/icon-50.png" height="30">](https://codecov.io/)
165-
166-
CodeCov allows us to monitor the test coverage.
167-
168137
## License
169138

170139
This project is licensed under the terms of the

docs/pages/discover-more/backers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ const reqSource = require.context(
1010
const reqPrefix = 'pages/discover-more/backers';
1111

1212
export default function Page() {
13-
return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />;
13+
return <MarkdownDocs req={req} reqSource={reqSource} disableAd reqPrefix={reqPrefix} />;
1414
}

docs/src/modules/components/AppDrawer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useSelector } from 'react-redux';
55
import { withStyles } from '@material-ui/core/styles';
66
import List from '@material-ui/core/List';
77
import Drawer from '@material-ui/core/Drawer';
8+
import Box from '@material-ui/core/Box';
89
import SwipeableDrawer from '@material-ui/core/SwipeableDrawer';
910
import Divider from '@material-ui/core/Divider';
1011
import Hidden from '@material-ui/core/Hidden';
@@ -29,7 +30,7 @@ function PersistScroll(props) {
2930

3031
const activeBox = activeElement.getBoundingClientRect();
3132

32-
if (savedScrollTop === null || activeBox.top - savedScrollTop < 0) {
33+
if (savedScrollTop !== null || activeBox.top < savedScrollTop) {
3334
// Center the selected item in the list container.
3435
activeElement.scrollIntoView();
3536
// Fix a Chrome issue, reset the tabbable ring back to the top of the document.
@@ -161,7 +162,9 @@ function AppDrawer(props) {
161162
</div>
162163
</div>
163164
<Divider />
164-
<DiamondSponsors />
165+
<Box mx={3} my={2}>
166+
<DiamondSponsors />
167+
</Box>
165168
{renderNavItems({ props, pages, activePage, depth: 0, t })}
166169
</PersistScroll>
167170
);

docs/src/modules/components/AppTableOfContents.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import PropTypes from 'prop-types';
44
import marked from 'marked';
55
import throttle from 'lodash/throttle';
66
import clsx from 'clsx';
7+
import Box from '@material-ui/core/Box';
78
import { useSelector } from 'react-redux';
89
import { makeStyles } from '@material-ui/core/styles';
910
import Typography from '@material-ui/core/Typography';
1011
import textToHash from 'docs/src/modules/utils/textToHash';
12+
import DiamondSponsors from 'docs/src/modules/components/DiamondSponsors';
1113
import Link from 'docs/src/modules/components/Link';
1214

1315
const useStyles = makeStyles(theme => ({
@@ -255,6 +257,9 @@ export default function AppTableOfContents(props) {
255257
</Typography>
256258
</React.Fragment>
257259
) : null}
260+
<Box mt={3} mb={2} mx={1.5}>
261+
<DiamondSponsors />
262+
</Box>
258263
</nav>
259264
);
260265
}

docs/src/modules/components/DiamondSponsors.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import Typography from '@material-ui/core/Typography';
3-
import Box from '@material-ui/core/Box';
43
import { useSelector } from 'react-redux';
54
import { makeStyles } from '@material-ui/core/styles';
65
import AddIcon from '@material-ui/icons/Add';
@@ -39,7 +38,7 @@ export default function DiamondSponsors() {
3938
const t = useSelector(state => state.options.t);
4039

4140
return (
42-
<Box mx={3} my={2} className={classes.root}>
41+
<div className={classes.root}>
4342
<Typography variant="caption" color="textSecondary" display="block">
4443
{t('diamondSponsors')}
4544
</Typography>
@@ -48,10 +47,10 @@ export default function DiamondSponsors() {
4847
className={classes.placeholder}
4948
rel="noopener noreferrer"
5049
target="_blank"
51-
href="https://www.patreon.com/oliviertassinari"
50+
href="/discover-more/backers/#diamond-sponsors"
5251
>
5352
<AddIcon />
5453
</a>
55-
</Box>
54+
</div>
5655
);
5756
}

docs/src/modules/components/HomeQuickWord.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const backers = [
1111
href:
1212
'https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage',
1313
alt: 'tidelift',
14-
title: 'Tidelift — Get Professionally Supported Material-UI',
14+
title: 'Tidelift — Enterprise-ready open source software',
1515
},
1616
{
1717
href: 'https://bit.dev',
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
<h2 align="center">Supporting Material-UI</h2>
1+
<h2 align="center">Material-UI's sponsors</h2>
22

3-
Material-UI is an MIT-licensed open source project.
4-
It's an independent project with ongoing development made possible entirely
5-
thanks to the support of these awesome [backers](/discover-more/backers/).
3+
The core of Material-UI is a [crowd-funded](/discover-more/backers/) open-source project, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.
64

7-
### Gold Sponsors
5+
### Diamond 💎
86

9-
Gold Sponsors are those who have pledged $500/month and more to Material-UI.
7+
*3/3 slots available*
8+
9+
Diamond Sponsors are those who have pledged $2,000/month and more to Material-UI.
10+
Please contact us at [email protected] to subscribe to this tier.
11+
12+
### Gold 🏆
1013

1114
via [Patreon](https://www.patreon.com/oliviertassinari)
1215

1316
<p style="display: flex; justify-content: center;">
14-
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/tidelift.png?size=96" alt="tidelift" title="Get Professionally Supported Material-UI" loading="lazy"></a>
17+
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/tidelift.png?size=96" alt="tidelift" title="Enterprise-ready open source software" loading="lazy"></a>
1518
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/teambit.png?size=96" alt="bitsrc" title="The fastest way to share code" loading="lazy"></a>
1619
</p>
1720

@@ -22,6 +25,8 @@ via [OpenCollective](https://opencollective.com/material-ui)
2225
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.crosswordsolver.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/crosswordsolver/avatar.png" alt="crosswordsolver" title="Crossword Puzzle Solver" width="100" loading="lazy"></a>
2326
</p>
2427

28+
Gold Sponsors are those who have pledged $500/month and more to Material-UI.
29+
2530
### There are more!
2631

2732
See the full list of [our backers](/discover-more/backers/).

0 commit comments

Comments
 (0)