Skip to content

Commit 043cb4f

Browse files
committed
feat(support): add descriptions to sponsor and backer sections
This is a follow up to #1466 based on @xdamman's suggestion. It adds a short description above the avatars to describe the rank and contributions.
1 parent 6469f8c commit 043cb4f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

components/support/support-style.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
display: flex;
55
flex-wrap: wrap;
66
justify-content: center;
7-
padding: 1em 0.5em;
7+
padding: 0 0.5em 1em;
8+
9+
&__description {
10+
flex: 0 0 100%;
11+
margin-bottom: 1em;
12+
}
13+
14+
&__rank {
15+
text-transform: capitalize;
16+
17+
&:after { content: ' '; }
18+
}
819

920
&__item {
1021
position: relative;

components/support/support.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ export default class Support extends React.Component {
4747

4848
return (
4949
<div className="support">
50+
<div className="support__description">
51+
{ type === 'sponsors' ? (
52+
<p>
53+
<b className="support__rank">{ rank } sponsors</b>
54+
<span>are those who have pledged { minimum ? `$${minimum}` : '' } { maximum ? `to $${maximum}` : 'or more' } to webpack.</span>
55+
</p>
56+
) : (
57+
<p>
58+
The following <b>Backers</b> are individuals who have contributed various amounts of money in order to help support webpack. Every little bit helps, and we appreciate even the smallest contributions.
59+
</p>
60+
)}
61+
</div>
62+
5063
{
5164
supporters.map((supporter, index) => (
5265
<a key={ supporter.id || supporter.username || index }

0 commit comments

Comments
 (0)