Skip to content

Commit 07943fb

Browse files
[docs] Add Octopus diamond sponsor (#22178)
1 parent 70aaac4 commit 07943fb

File tree

10 files changed

+38
-34
lines changed

10 files changed

+38
-34
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ Please note that `@next` will only point to pre-releases; to get the latest stab
4848

4949
### Diamond 💎
5050

51-
Diamond Sponsors are those who have pledged $1,500/month or more to Material-UI.
51+
<p style="display: flex; justify-content: center;">
52+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="octopus" href="https://octopus.com/?utm_source=materialui&utm_medium=referral" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/1287123?s=256" alt="octopus" title="Repeatable, reliable deployments" loading="lazy" /></a>
53+
</p>
54+
55+
Diamond Sponsors are those who have pledged \$1,500/month or more to Material-UI.
5256

5357
### Gold 🏆
5458

3.72 KB
Loading
3.76 KB
Loading

docs/public/static/in-house/sencha-125x35-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/public/static/in-house/sencha-125x35-light.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
-7.97 KB
Binary file not shown.

docs/src/modules/components/DiamondSponsors.js

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,46 +33,35 @@ const useStyles = makeStyles((theme) => ({
3333
},
3434
}));
3535

36-
// Persisted for the whole session.
37-
// The state is used to avoid layout jumps during the session (navigation between different pages).
38-
const randomSession = Math.random();
39-
4036
export default function DiamondSponsors(props) {
4137
const classes = useStyles();
4238
const { spot } = props;
4339
const theme = useTheme();
4440
const t = useSelector((state) => state.options.t);
45-
const [randomSencha, setRandomSencha] = React.useState(1);
46-
47-
React.useEffect(() => {
48-
setRandomSencha(randomSession);
49-
}, []);
5041

5142
return (
5243
<div className={classes.root}>
5344
<Typography variant="caption" color="textSecondary" display="block" gutterBottom>
5445
{t('diamondSponsors')}
5546
</Typography>
56-
{randomSencha < 0.001 ? (
57-
<a
58-
data-ga-event-category="sponsor"
59-
data-ga-event-action={spot}
60-
data-ga-event-label="sencha"
61-
href="https://www.sencha.com/products/extreact/extreact-for-material-ui/?utm_source=materialui&utm_medium=referral&utm_content=product-200429-extreactmaterialui"
62-
rel="noopener noreferrer sponsored"
63-
target="_blank"
64-
style={{ marginLeft: 8, width: 125, height: 35 }}
65-
>
66-
<img
67-
width="125"
68-
height="35"
69-
src={`/static/in-house/sencha-125x35-${theme.palette.type}.svg`}
70-
alt="sencha"
71-
title="UI Components for Productive Dev Teams"
72-
loading="lazy"
73-
/>
74-
</a>
75-
) : null}
47+
<a
48+
data-ga-event-category="sponsor"
49+
data-ga-event-action={spot}
50+
data-ga-event-label="octopus"
51+
href="https://octopus.com/?utm_source=materialui&utm_medium=referral"
52+
rel="noopener noreferrer sponsored"
53+
target="_blank"
54+
style={{ width: 125, height: 35 }}
55+
>
56+
<img
57+
width="125"
58+
height="35"
59+
src={`/static/in-house/octopus-${theme.palette.type}.png`}
60+
alt="octopus"
61+
title="Repeatable, reliable deployments"
62+
loading="lazy"
63+
/>
64+
</a>
7665
<a
7766
style={{ marginTop: 8 }}
7867
aria-label={t('diamondSponsors')}

docs/src/pages/discover-more/backers/backers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ The core of Material-UI is a crowd-funded open-source project, licensed under th
88

99
### Diamond 💎
1010

11-
*3/3 slots available*
11+
<p style="display: flex; justify-content: center;">
12+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="octopus" href="https://octopus.com/?utm_source=materialui&utm_medium=referral" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/1287123?s=256" alt="octopus" title="Repeatable, reliable deployments" loading="lazy" /></a>
13+
</p>
14+
15+
_2/3 slots available_
1216

1317
Diamond Sponsors are those who have pledged $1,500/month or more to Material-UI.
1418
Please contact us at [email protected] to subscribe to this tier.

docs/src/pages/landing/QuickWord.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const backers = [
2222
alt: 'callemall',
2323
title: 'Call-Em-All - The easy way to message your group',
2424
},
25+
{
26+
href: 'https://octopus.com/?utm_source=materialui&utm_medium=referral',
27+
alt: 'octopus',
28+
title: 'Octopus - Repeatable, reliable deployments',
29+
},
2530
];
2631

2732
const useStyles = makeStyles(

docs/src/pages/landing/backers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ The continued development and maintenance of Material-UI is made possible by the
44

55
### Diamond 💎
66

7-
*3/3 slots available*
7+
<p style="display: flex; justify-content: center;">
8+
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="octopus" href="https://octopus.com/?utm_source=materialui&utm_medium=referral" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/1287123?s=256" alt="octopus" title="Repeatable, reliable deployments" loading="lazy" /></a>
9+
</p>
10+
11+
_2/3 slots available_
812

913
### Gold 🏆
1014

0 commit comments

Comments
 (0)