forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GoldSponsors.tsx
164 lines (162 loc) · 6 KB
/
GoldSponsors.tsx
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import * as React from 'react';
import { useInView } from 'react-intersection-observer';
import Box from '@mui/material/Box';
import Paper from '@mui/material/Paper';
import IconButton from '@mui/material/IconButton';
import Typography from '@mui/material/Typography';
import AddRounded from '@mui/icons-material/AddRounded';
import Grid from '@mui/material/Grid';
import SponsorCard from 'docs/src/components/home/SponsorCard';
import Link from 'docs/src/modules/components/Link';
import ROUTES from 'docs/src/route';
const GOLDs = [
{
src: '/static/sponsors/tidelift.svg',
srcSet: '/static/sponsors/tidelift.svg',
name: 'Tidelift',
description: 'Enterprise-ready open-source software.',
// Tidelift requests this format.
href: 'https://tidelift.com/?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage',
},
{
src: 'https://avatars.githubusercontent.com/u/24789812?size=40',
srcSet: 'https://avatars.githubusercontent.com/u/24789812?size=80 2x',
name: 'Bit',
description: 'A component-driven development platform.',
href: 'https://bit.dev/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://avatars.githubusercontent.com/u/1262264?size=40',
srcSet: 'https://avatars.githubusercontent.com/u/1262264?s=80 2x',
name: 'Text-em-all',
description: 'The easy way to message your group.',
href: 'https://www.text-em-all.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/netticasinohex-com/71d7417/logo/40.png',
srcSet: 'https://images.opencollective.com/netticasinohex-com/71d7417/logo/80.png 2x',
name: 'NettiCasinoHEX',
description: 'A real giant among casino guides.',
href: 'https://netticasinohex.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: '/static/sponsors//megafamous.png',
name: 'MegaFamous',
description: 'Buy Instagram followers & likes.',
href: 'https://megafamous.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/dialmycalls/f5ae9ab/avatar/40.png',
srcSet: 'https://images.opencollective.com/dialmycalls/f5ae9ab/avatar/80.png 2x',
name: 'DialMyCalls',
description: 'Send text messages, calls to thousands.',
href: 'https://www.dialmycalls.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/goread_io/eb6337d/logo/40.png',
srcSet: 'https://images.opencollective.com/goread_io/eb6337d/logo/80.png 2x',
name: 'Goread.io',
description: 'Instagram followers, likes, views, comments.',
href: 'https://goread.io/?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/icons8/7fa1641/logo/40.png',
srcSet: 'https://images.opencollective.com/icons8/7fa1641/logo/80.png 2x',
name: 'Icons8',
description: 'Icons, illustrations, design tools, and more.',
href: 'https://icons8.com?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/ipinfoai/04f41d5/logo/40.png',
srcSet: 'https://images.opencollective.com/ipinfoai/04f41d5/logo/80.png 2x',
name: 'IPinfo.AI',
description: 'IP data API services, including IP geolocation.',
href: 'https://ipinfo.ai?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
{
src: 'https://images.opencollective.com/ridi-corporation/175dcf3/logo/40.png',
srcSet: 'https://images.opencollective.com/ridi-corporation/175dcf3/logo/80.png 2x',
name: 'RIDI',
description: 'Digital content platform for webcomics and more.',
href: 'https://ridicorp.com?utm_source=MUI&utm_medium=referral&utm_content=homepage',
},
];
export default function GoldSponsors() {
const { ref, inView } = useInView({
triggerOnce: true,
threshold: 0,
rootMargin: '500px',
});
return (
<Box ref={ref}>
<Box sx={{ mb: 1 }}>
<Typography
component="h3"
variant="h5"
fontWeight="extraBold"
sx={(theme) => ({
color: 'warning.700',
...theme.applyDarkStyles({
color: 'warning.300',
}),
})}
>
Gold
</Typography>
</Box>
<Grid container spacing={{ xs: 2, md: 3 }}>
{GOLDs.map((item) => (
<Grid item key={item.name} xs={12} sm={6} md={4} lg={3}>
<SponsorCard inView={inView} item={item} />
</Grid>
))}
<Grid item xs={12} sm={6} md={4} lg={3}>
<Paper
variant="outlined"
sx={(theme) => ({
p: 2,
display: 'flex',
alignItems: 'center',
height: '100%',
borderStyle: 'dashed',
borderColor: 'grey.300',
...theme.applyDarkStyles({
borderColor: 'primaryDark.400',
}),
})}
>
<IconButton
aria-label="Sponsor MUI"
component="a"
href={ROUTES.goldSponsor}
target="_blank"
rel="noopener noreferrer"
color="primary"
sx={(theme) => ({
mr: 2,
border: '1px solid',
borderColor: 'grey.300',
...theme.applyDarkStyles({
borderColor: 'primaryDark.400',
}),
})}
>
<AddRounded />
</IconButton>
<div>
<Typography variant="body2" color="text.primary" fontWeight="bold">
Become a sponsor
</Typography>
<Typography variant="body2" color="text.secondary">
Find out how{' '}
<Link href={ROUTES.goldSponsor} target="_blank" rel="noopener noreferrer">
you can support MUI.
</Link>
</Typography>
</div>
</Paper>
</Grid>
</Grid>
</Box>
);
}