summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-12-14 11:15:41 +0100
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-12-14 11:15:41 +0100
commit897bc3bdbfcb5fda896bb21282d84f4cabba4038 (patch)
tree2e86300a29844dcd032caf8c6b0da830961fae9b
parentb23b0bf21e9b56a5af18a41940dc94589f26e68c (diff)
Add GitHub icon anchor to homepage navbar
-rw-r--r--package.json6
-rw-r--r--src/components/navigation/Navbar.js11
2 files changed, 14 insertions, 3 deletions
diff --git a/package.json b/package.json
index 7e802606..d607e7c5 100644
--- a/package.json
+++ b/package.json
@@ -22,17 +22,17 @@
"classnames": "^2.2.5",
"husky": "^0.14.3",
"konva": "^1.7.2",
- "lint-staged": "^4.3.0",
+ "lint-staged": "^6.0.0",
"node-sass-chokidar": "^0.0.3",
"npm-run-all": "^4.1.2",
- "prettier": "^1.8.2",
+ "prettier": "^1.9.2",
"prop-types": "^15.6.0",
"react": "^16.1.0",
"react-document-title": "^2.0.3",
"react-dom": "^16.1.0",
"react-fontawesome": "^1.6.1",
"react-google-login": "^3.0.2",
- "react-konva": "^1.6.2",
+ "react-konva": "^1.6.4",
"react-redux": "^5.0.5",
"react-router-dom": "^4.2.2",
"react-scripts": "^1.0.14",
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>
)}