2018-10-02 16:48:13 -04:00
|
|
|
import React, { Fragment } from 'react';
|
2018-09-09 17:22:44 -04:00
|
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
|
|
|
|
import Logo from './logo';
|
|
|
|
import './header.css';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Main Header
|
|
|
|
*/
|
2018-10-02 16:48:13 -04:00
|
|
|
const Header = (props) => (
|
|
|
|
<header className="main-header">
|
|
|
|
<nav className="navbar navbar-light navbar-expand-md">
|
|
|
|
<Logo />
|
|
|
|
<ul className="navbar-nav ml-auto">
|
|
|
|
<li className="nav-item">
|
|
|
|
<a className="nav-link" href="https://pages.colouring.london">Hello</a>
|
|
|
|
</li>
|
2019-04-10 09:17:58 -04:00
|
|
|
<li className="nav-item">
|
|
|
|
<a className="nav-link" href="https://pages.colouring.london/buildingcategories">Data Categories</a>
|
|
|
|
</li>
|
2018-10-02 16:48:13 -04:00
|
|
|
<li className="nav-item">
|
2018-11-29 17:00:53 -05:00
|
|
|
<NavLink to="/view/age.html" className="nav-link">View Maps</NavLink>
|
2018-10-02 16:48:13 -04:00
|
|
|
</li>
|
2018-10-25 06:18:42 -04:00
|
|
|
<li className="nav-item">
|
2018-11-29 17:00:53 -05:00
|
|
|
<NavLink to="/edit/age.html" className="nav-link">Add/Edit Data</NavLink>
|
2018-10-25 06:18:42 -04:00
|
|
|
</li>
|
2019-04-10 09:48:51 -04:00
|
|
|
<li className="nav-item">
|
2019-04-10 09:17:58 -04:00
|
|
|
<a className="nav-link" href="https://pages.colouring.london/about">More about</a>
|
2018-10-02 16:48:13 -04:00
|
|
|
</li>
|
|
|
|
<li className="nav-item">
|
|
|
|
<a className="nav-link" href="https://pages.colouring.london/whoisinvolved">Who's Involved?</a>
|
|
|
|
</li>
|
|
|
|
<li className="nav-item">
|
|
|
|
<a className="nav-link" href="https://discuss.colouring.london">Discuss</a>
|
|
|
|
</li>
|
|
|
|
{
|
|
|
|
props.user?
|
|
|
|
(
|
|
|
|
<li className="nav-item">
|
|
|
|
<NavLink to="/my-account.html" className="nav-link">My account (Logged in as {props.user.username})</NavLink>
|
|
|
|
</li>
|
|
|
|
):
|
|
|
|
(
|
|
|
|
<Fragment>
|
2018-09-09 17:22:44 -04:00
|
|
|
<li className="nav-item">
|
|
|
|
<NavLink to="/login.html" className="nav-link">Log in</NavLink>
|
|
|
|
</li>
|
|
|
|
<li className="nav-item">
|
|
|
|
<NavLink to="/sign-up.html" className="nav-link">Sign up</NavLink>
|
|
|
|
</li>
|
2018-10-02 16:48:13 -04:00
|
|
|
</Fragment>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
);
|
|
|
|
|
2018-09-09 17:22:44 -04:00
|
|
|
export default Header;
|