Skip to content

Commit d69e0e0

Browse files
authored
Merge pull request #120 from mohak852/source
Added Icons in Navbar
2 parents 0d47f96 + 5e6c842 commit d69e0e0

File tree

6 files changed

+37
-6
lines changed

6 files changed

+37
-6
lines changed

src/components/Navbar/Navbar.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,29 @@
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
}
2020

2121
.topnav a:hover {
2222
background-color: #ddd;
2323
color: black;
24+
border-radius: 25px;
25+
border: #ddd;
26+
block-size: auto;
27+
display: inline;
2428
}
2529

2630
.topnav a.active {
2731
background-color: #4CAF50;
2832
color: white;
2933
}
34+
35+
.logo{
36+
margin-top: 10px;
37+
width: 60px;
38+
vertical-align:middle;
39+
height: 50px;
40+
display: inline-block;
41+
}

src/components/Navbar/Navbar.jsx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
import React, { Component } from 'react';
22
import './Navbar.css';
3-
3+
import slack from './slack.svg';
4+
import youtube from './youtube.svg';
5+
import twitter from './twitter.svg';
6+
import github from './github.svg';
47
class Navbar extends Component {
58
render() {
69
return (
710
<div className="topnav">
8-
<a href="https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM" target="_blank" rel="noopener noreferrer">Slack</a>
9-
<a href="https://www.youtube.com/channel/UCMXNFxCvyH5LhUwEcmY8qGQ" target="_blank" rel="noopener noreferrer">YouTube</a>
10-
<a href="https://twitter.com/1stContribution" target="_blank" rel="noopener noreferrer">Twitter</a>
11-
<a href="https://github.com/firstcontributions/first-contributions" target="_blank" rel="noopener noreferrer">GitHub</a>
11+
<a href="https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM" target="_blank" rel="noopener noreferrer">
12+
<img src={slack} className="logo"/>
13+
<span>Slack</span>
14+
</a>
15+
<a href="https://www.youtube.com/channel/UCMXNFxCvyH5LhUwEcmY8qGQ" target="_blank" rel="noopener noreferrer">
16+
<img src={youtube} className="logo"/>
17+
<span>Youtube</span>
18+
</a>
19+
<a href="https://twitter.com/1stContribution" target="_blank" rel="noopener noreferrer">
20+
<img src={twitter} className="logo"/>
21+
<span>Twitter</span>
22+
</a>
23+
<a href="https://github.com/firstcontributions/first-contributions" target="_blank" rel="noopener noreferrer">
24+
<img src={github} className="logo"/>
25+
Github
26+
</a>
1227
</div>
1328
);
1429
}

src/components/Navbar/github.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/Navbar/slack.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/Navbar/twitter.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/Navbar/youtube.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)