2018-09-22 18:23:51 +00:00
|
|
|
import {
|
|
|
|
Navbar,
|
|
|
|
NavbarNav,
|
|
|
|
NavbarToggler,
|
|
|
|
Collapse,
|
|
|
|
Container
|
|
|
|
} from "mdbreact";
|
|
|
|
//import { Link } from "react-scroll";
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The header of the marketing page.
|
|
|
|
*/
|
|
|
|
class MarketingHeader extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = { showmenu: true };
|
|
|
|
this.state = {
|
|
|
|
collapse: false
|
|
|
|
};
|
2018-09-28 20:32:48 +00:00
|
|
|
|
2018-09-22 18:23:51 +00:00
|
|
|
this.onClick = this.onClick.bind(this);
|
|
|
|
this.handleNavbarClick = this.handleNavbarClick.bind(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
onClick() {
|
|
|
|
this.setState({
|
|
|
|
collapse: !this.state.collapse
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
handleNavbarClick() {
|
|
|
|
this.setState({
|
|
|
|
collapse: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2018-09-28 20:32:48 +00:00
|
|
|
<div>
|
2018-09-22 18:23:51 +00:00
|
|
|
<Navbar
|
|
|
|
dark
|
|
|
|
expand="md"
|
|
|
|
fixed="top"
|
|
|
|
id="mainNav"
|
|
|
|
scrolling
|
|
|
|
className="top-nav-collapse">
|
|
|
|
<Container hidden={this.state.showmenu}>
|
|
|
|
<a activeClass="active" className="navbar-brand" href="/">
|
|
|
|
<img alt="" className="logo1" src="./img/logo.png" width="100%" />
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
className="logo2"
|
|
|
|
src="./img/logo54.png"
|
|
|
|
width="100%"
|
|
|
|
style={{ display: "none" }}
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<NavbarToggler onClick={this.onClick} />
|
|
|
|
<Collapse isOpen={this.state.collapse} navbar>
|
|
|
|
<NavbarNav right />
|
|
|
|
</Collapse>
|
|
|
|
</Container>
|
|
|
|
</Navbar>
|
2018-09-28 20:32:48 +00:00
|
|
|
</div>
|
2018-09-22 18:23:51 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MarketingHeader;
|