-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
93 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
|
||
export default function Header() { | ||
return ( | ||
<nav className="navbar navbar-inverse navbar-fixed-top"> | ||
<div className="container"> | ||
<div className="navbar-header"> | ||
<button | ||
type="button" | ||
className="navbar-toggle collapsed" | ||
data-toggle="collapse" | ||
data-target="#navbar" | ||
aria-expanded="false" | ||
aria-controls="navbar" | ||
> | ||
<span className="sr-only">Toggle navigation</span> | ||
<span className="icon-bar"></span> | ||
<span className="icon-bar"></span> | ||
<span className="icon-bar"></span> | ||
</button> | ||
<a className="navbar-brand" href="#">eBird Hotspot Viewer</a> | ||
</div> | ||
<div id="navbar" className="collapse navbar-collapse"> | ||
<ul className="nav navbar-nav"> | ||
<li className="active"><a href="#">Home</a></li> | ||
<li><a href="#about">About</a></li> | ||
<li><a href="#contact">Contact</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router'; | ||
|
||
export default function App() { | ||
return ( | ||
<Link | ||
to="/hotspots" | ||
type="button" | ||
className="btn btn-primary" | ||
> | ||
View nearby hotspots | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './components/App.js'; | ||
import Home from './components/Home.js'; | ||
import HotspotList from './components/HotspotList.js'; | ||
import SightingsList from './components/SightingsList.js'; | ||
|
||
import { Router, Route, hashHistory, IndexRoute } from 'react-router'; | ||
|
||
ReactDOM.render(( | ||
<Router history={hashHistory}> | ||
<Route path="/" component={App}> | ||
<IndexRoute component={Home} /> | ||
<Route path="/hotspots" component={HotspotList} /> | ||
<Route path="/hotspot/:hotspotId" component={SightingsList} /> | ||
</Route> | ||
</Router> | ||
), document.getElementById('app')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters