summaryrefslogtreecommitdiff
path: root/src/components/navigation/Navbar.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <G.Andreadis@student.tudelft.nl>2017-12-14 11:23:06 +0100
committerGitHub <noreply@github.com>2017-12-14 11:23:06 +0100
commit4d08462eb8d662ea153c6183c9aca318a3c51390 (patch)
tree2e86300a29844dcd032caf8c6b0da830961fae9b /src/components/navigation/Navbar.js
parentb23b0bf21e9b56a5af18a41940dc94589f26e68c (diff)
parent897bc3bdbfcb5fda896bb21282d84f4cabba4038 (diff)
Merge pull request #60 from atlarge-research/feature/59/github-icon
Add GitHub icon anchor to homepage navbar
Diffstat (limited to 'src/components/navigation/Navbar.js')
-rw-r--r--src/components/navigation/Navbar.js11
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>
)}