Skip to content

Commit e991663

Browse files
authored
Merge pull request #431 from pastelsky/contributor-heads
Contributor heads
2 parents 23b7c97 + 4427b6c commit e991663

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed
Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
1+
@import 'functions';
2+
3+
.contributors__list {
4+
padding: 6px;
5+
}
6+
17
.contributor {
2-
display: inline-block;
3-
margin-top:1em;
8+
display: inline-flex;
9+
flex-direction: column;
10+
align-items: center;
411
margin-right: 1em;
12+
font-size: 14px;
513

614
img {
7-
height: 50px;
15+
height: 45px;
16+
width: 45px;
17+
border-radius: 50%;
18+
box-shadow: 0 0 2px rgba(0,0,0,0.3);
19+
}
20+
21+
.contributor__name {
22+
color: getColor(fiord);
23+
margin-top: -6px;
24+
box-shadow: 0 0 2px rgba(0,0,0,0.3);
25+
line-height: 1.4;
26+
transition: color 0.1s;
27+
padding: 0 6px;
28+
border-radius: 2px;
29+
background: transparentize(getColor(white), 0.05);
30+
}
31+
32+
&:hover {
33+
.contributor__name {
34+
color: lighten(getColor(denim), 5%);
35+
}
836
}
937
}

components/contributors/contributors.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ export default ({contributors}) => {
99
return (
1010
<div className="contributors">
1111
<hr />
12-
<h3>Contributors:</h3>
12+
<h3>Contributors</h3>
1313
<div className="contributors__list">
1414
{
1515
(contributors).map((contributor) => (
1616
<a key={ contributor }
1717
className="contributor"
1818
href={ `https://github.com/${contributor}` }>
19-
<img src={ `https://github.com/${contributor}.png?size=50` } />
19+
<img src={ `https://github.com/${contributor}.png?size=90` } />
20+
<span className="contributor__name"> {contributor}</span>
2021
</a>
2122
))
2223
}

0 commit comments

Comments
 (0)