diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-12-14 11:15:41 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-12-14 11:15:41 +0100 |
| commit | 897bc3bdbfcb5fda896bb21282d84f4cabba4038 (patch) | |
| tree | 2e86300a29844dcd032caf8c6b0da830961fae9b /src | |
| parent | b23b0bf21e9b56a5af18a41940dc94589f26e68c (diff) | |
Add GitHub icon anchor to homepage navbar
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/navigation/Navbar.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/navigation/Navbar.js b/src/components/navigation/Navbar.js index fa2516f5..44458949 100644 --- a/src/components/navigation/Navbar.js +++ b/src/components/navigation/Navbar.js @@ -14,6 +14,16 @@ export const LoggedInSection = withRouter(props => ( <LoggedInSectionWithoutRoute {...props} /> )); +const GitHubLink = () => ( + <a + href="https://github.com/atlarge-research/opendc" + className="ml-2 mr-3 text-dark" + style={{ position: "relative", top: 7 }} + > + <span className="fa fa-github fa-2x" /> + </a> +); + const NavItemWithoutRoute = ({ route, location, children }) => ( <li className={classNames( @@ -48,6 +58,7 @@ const LoggedInSectionWithoutRoute = ({ location }) => ( ] ) : ( <NavItem route="login"> + <GitHubLink /> <Login visible={true} /> </NavItem> )} |
