|
1
|
|
|
import React from 'react'; |
|
2
|
|
|
import clsx from 'clsx'; |
|
3
|
|
|
import styles from './SponsorList.module.css'; |
|
4
|
|
|
// import DonationList from '../data/donations' |
|
5
|
|
|
|
|
6
|
|
|
const SponsorList = [ |
|
7
|
|
|
{ |
|
8
|
|
|
title: 'JetBrains', |
|
9
|
|
|
image: 'https://user-images.githubusercontent.com/15586492/96636404-2c18dd00-1315-11eb-9520-736dffaaf0a7.png', |
|
10
|
|
|
url: 'https://www.jetbrains.com/?from=maileclipse', |
|
11
|
|
|
description: ( |
|
12
|
|
|
<> |
|
13
|
|
|
Sponsored JetBrains Licenses to maintainers. |
|
14
|
|
|
</> |
|
15
|
|
|
), |
|
16
|
|
|
}, |
|
17
|
|
|
]; |
|
18
|
|
|
|
|
19
|
|
|
function Sponsor({ title, Svg, image, url, description}) { |
|
20
|
|
|
return ( |
|
21
|
|
|
<div className={clsx('col col--4')}> |
|
22
|
|
|
<div className="text--center"> |
|
23
|
|
|
<a href={url}> |
|
24
|
|
|
{ |
|
25
|
|
|
Svg ? <Svg className={styles.sponsorImage} alt={title} /> : null |
|
26
|
|
|
} |
|
27
|
|
|
{ |
|
28
|
|
|
image ? <img src={image} alt={title} className={styles.sponsorImage}/> : null |
|
29
|
|
|
} |
|
30
|
|
|
</a> |
|
31
|
|
|
</div> |
|
32
|
|
|
<div className="text--center padding-horiz--md"> |
|
33
|
|
|
<h3>{title}</h3> |
|
34
|
|
|
<p>{description}</p> |
|
35
|
|
|
</div> |
|
36
|
|
|
</div> |
|
37
|
|
|
); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
function Donor({ name, message, amount, date}) { |
|
41
|
|
|
return ( |
|
42
|
|
|
<div className={clsx('col col--4')}> |
|
43
|
|
|
<div className="text--center padding-horiz--md"> |
|
44
|
|
|
<h3>{name}</h3> |
|
45
|
|
|
<p>{message}</p> |
|
46
|
|
|
<span>{amount}</span> |
|
47
|
|
|
<span>{date}</span> |
|
48
|
|
|
</div> |
|
49
|
|
|
</div> |
|
50
|
|
|
); |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
export default function SponsorsList() { |
|
54
|
|
|
return ( |
|
55
|
|
|
<section className={styles.sponsors}> |
|
56
|
|
|
<h2>Sponsors</h2> |
|
57
|
|
|
<div className="container"> |
|
58
|
|
|
<div className={`row ${styles.sponsorBlock} shadow--sm`}> |
|
59
|
|
|
{SponsorList.map((props, idx) => ( |
|
60
|
|
|
<Sponsor key={idx} {...props} /> |
|
61
|
|
|
))} |
|
62
|
|
|
</div> |
|
63
|
|
|
</div> |
|
64
|
|
|
{/* <br /> |
|
65
|
|
|
<div className="container"> |
|
66
|
|
|
<div className="row"> |
|
67
|
|
|
{DonationList.map((props, idx) => ( |
|
68
|
|
|
<Donor key={idx} {...props} /> |
|
69
|
|
|
))} |
|
70
|
|
|
</div> |
|
71
|
|
|
</div> */} |
|
72
|
|
|
</section> |
|
73
|
|
|
); |
|
74
|
|
|
} |
|
75
|
|
|
|