Skip to content

Commit 1a705c2

Browse files
committed
Added Icons to Navbar
1 parent 8769367 commit 1a705c2

File tree

6 files changed

+26
-20
lines changed

6 files changed

+26
-20
lines changed

src/components/Navbar/Navbar.css

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
display: inline-block;
1414
color: #f2f2f2;
1515
text-align: center;
16-
padding: 14px 16px;
16+
padding: 20px 15px;
1717
text-decoration: none;
1818
font-size: 20px;
1919
}
@@ -23,7 +23,6 @@
2323
color: black;
2424
border-radius: 25px;
2525
border: #ddd;
26-
margin-top: 10px;
2726
block-size: auto;
2827
display: inline;
2928
}
@@ -35,30 +34,29 @@
3534
.slack{
3635
display: inline-block;
3736
vertical-align:middle;
38-
flex: 1;
3937
margin-top: 10px;
40-
width: 90px;
41-
height: 50px;
42-
resizeMode: 'contain';
38+
width: 60px;
39+
height: 40px;
4340
}
4441
.youtube{
45-
vertical-align:middle;
42+
vertical-align:middle;
4643
margin-top: 10px;
4744
width: 70px;
4845
height: 50px;
49-
resizeMode: 'contain';
46+
display: inline-block;
5047
}
5148
.github{
5249
margin-top: 10px;
5350
vertical-align:middle;
54-
width: 50px;
51+
width: 60px;
5552
height: 50px;
56-
resizeMode: 'contain';
53+
display: inline-block;
5754
}
5855
.twitter{
5956
margin-top: 10px;
60-
width: 50px;
57+
width: 60px;
6158
vertical-align:middle;
6259
height: 50px;
63-
resizeMode: 'contain';
60+
fill: white;
61+
display: inline-block;
6462
}

src/components/Navbar/Navbar.jsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@ class Navbar extends Component {
88
render() {
99
return (
1010
<div className="topnav">
11+
<a href="https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM" target="_blank" rel="noopener noreferrer">
1112
<img src={slack} className="slack"/>
12-
<a href="https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM" target="_blank" rel="noopener noreferrer">Slack</a>
13+
<span>Slack</span>
14+
</a>
15+
<a href="https://www.youtube.com/channel/UCMXNFxCvyH5LhUwEcmY8qGQ" target="_blank" rel="noopener noreferrer">
1316
<img src={youtube} className="youtube"/>
14-
<a href="https://www.youtube.com/channel/UCMXNFxCvyH5LhUwEcmY8qGQ" target="_blank" rel="noopener noreferrer">YouTube</a>
17+
<span>Youtube</span>
18+
</a>
19+
<a href="https://twitter.com/1stContribution" target="_blank" rel="noopener noreferrer">
1520
<img src={twitter} className="twitter"/>
16-
<a href="https://twitter.com/1stContribution" target="_blank" rel="noopener noreferrer">Twitter</a>
21+
<span>Twitter</span>
22+
</a>
23+
<a href="https://github.com/firstcontributions/first-contributions" target="_blank" rel="noopener noreferrer">
1724
<img src={github} className="github"/>
18-
<a href="https://github.com/firstcontributions/first-contributions" target="_blank" rel="noopener noreferrer">GitHub</a>
25+
Github
26+
</a>
1927
</div>
2028
);
2129
}

src/components/Navbar/github.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/Navbar/slack.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/Navbar/twitter.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/Navbar/youtube.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)