diff --git a/2-react-router/src/index.html b/2-react-router/src/index.html index b1e5930e..fb553f71 100644 --- a/2-react-router/src/index.html +++ b/2-react-router/src/index.html @@ -14,6 +14,7 @@ +
diff --git a/2-react-router/src/js/components/layout/Nav.js b/2-react-router/src/js/components/layout/Nav.js index b768499b..8e4a437e 100644 --- a/2-react-router/src/js/components/layout/Nav.js +++ b/2-react-router/src/js/components/layout/Nav.js @@ -15,7 +15,7 @@ export default class Nav extends React.Component { } render() { - const { location } = this.props; + // const { location } = this.props; const { collapsed } = this.state; // const featuredClass = location.pathname === "/" ? "active" : ""; // const archivesClass = location.pathname.match(/^\/archives/) ? "active" : ""; @@ -35,14 +35,14 @@ export default class Nav extends React.Component { diff --git a/2-react-router/src/overrides.css b/2-react-router/src/overrides.css new file mode 100644 index 00000000..d7df76fc --- /dev/null +++ b/2-react-router/src/overrides.css @@ -0,0 +1,4 @@ +.navbar-inverse .navbar-nav a.active { + color: #ffffff; + background-color: #022f5a; +}