forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DiamondSponsors.js
143 lines (140 loc) · 4.44 KB
/
DiamondSponsors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import * as React from 'react';
import Stack from '@mui/material/Stack';
import Button from '@mui/material/Button';
import { useTheme, styled, alpha } from '@mui/material/styles';
import { useTranslate } from 'docs/src/modules/utils/i18n';
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
// import Link from 'docs/src/modules/components/Link';
const Root = styled('div')(({ theme }) => ({
margin: theme.spacing(1, 2),
'& img': {
display: 'inline-block',
},
}));
export default function DiamondSponsors() {
const theme = useTheme();
const t = useTranslate();
return (
<Root>
<Button
component="a"
href="/material-ui/discover-more/backers/#diamond"
target="_blank"
rel="noopener nofollow"
size="small"
endIcon={<InfoOutlinedIcon fontSize="small" />}
sx={{
mb: 1,
fontSize: theme.typography.pxToRem(12.5),
fontWeight: 500,
color:
theme.palette.mode === 'dark' ? theme.palette.primary[300] : theme.palette.primary[600],
'& svg': {
width: 14,
height: 14,
},
}}
>
{t('diamondSponsors')}
</Button>
<Stack
spacing={1.5}
sx={{
'& a': {
width: '100%',
height: 52,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
border: `1px solid ${
theme.palette.mode === 'dark'
? theme.palette.primaryDark[700]
: theme.palette.grey[200]
}`,
fontSize: theme.typography.pxToRem(14),
fontWeight: 700,
borderRadius: 1,
transition: theme.transitions.create(['color', 'border-color']),
'&:hover': {
color:
theme.palette.mode === 'dark'
? theme.palette.primary[300]
: theme.palette.primary[500],
borderColor:
theme.palette.mode === 'dark'
? theme.palette.primaryDark[600]
: theme.palette.grey[300],
backgroundColor:
theme.palette.mode === 'dark'
? alpha(theme.palette.primaryDark[700], 0.4)
: theme.palette.grey[50],
},
},
}}
>
<a
data-ga-event-category="sponsor"
data-ga-event-action="drawer"
data-ga-event-label="octopus"
href="https://octopus.com/?utm_source=materialui&utm_medium=referral"
rel="noopener noreferrer sponsored"
target="_blank"
>
<img
height="30"
src={`/static/sponsors/octopus-${theme.palette.mode}.svg`}
alt="octopus"
title="Repeatable, reliable deployments"
loading="lazy"
/>
</a>
<a
data-ga-event-category="sponsor"
data-ga-event-action="drawer"
data-ga-event-label="doit"
href="https://www.doit.com/flexsave/?utm_source=materialui&utm_medium=referral"
rel="noopener noreferrer sponsored"
target="_blank"
>
<img
height="26"
src={`/static/sponsors/doit-${theme.palette.mode}.svg`}
alt="doit"
title="Management Platform for Google Cloud and AWS"
loading="lazy"
/>
</a>
<a
data-ga-event-category="sponsor"
data-ga-event-action="drawer"
data-ga-event-label="zesty.io"
href="https://www.zesty.io/integrations/mui-nextjs/?utm_source=mui&utm_medium=referral&utm_campaign=sponsor"
rel="noopener noreferrer sponsored"
target="_blank"
>
<img
height="26"
src={
theme.palette.mode === 'light'
? 'https://brand.zesty.io/zesty-io-logo-horizontal.svg'
: 'https://brand.zesty.io/zesty-io-logo-horizontal-light-color.svg'
}
alt="zesty.io"
title="The only Next.js CMS you need"
loading="lazy"
/>
</a>
{/*
<Link
aria-label={t('diamondSponsors')}
rel="noopener noreferrer"
href="/material-ui/discover-more/backers/#diamond"
// eslint-disable-next-line material-ui/no-hardcoded-labels
>
+1
</Link>
*/}
</Stack>
</Root>
);
}