diff options
| author | Georgios Andreadis <G.Andreadis@student.tudelft.nl> | 2017-12-14 11:23:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-14 11:23:06 +0100 |
| commit | 4d08462eb8d662ea153c6183c9aca318a3c51390 (patch) | |
| tree | 2e86300a29844dcd032caf8c6b0da830961fae9b /src/components | |
| parent | b23b0bf21e9b56a5af18a41940dc94589f26e68c (diff) | |
| parent | 897bc3bdbfcb5fda896bb21282d84f4cabba4038 (diff) | |
Merge pull request #60 from atlarge-research/feature/59/github-icon
Add GitHub icon anchor to homepage navbar
Diffstat (limited to 'src/components')
| -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> )} |
