import React from "react"; import { Button, Collapse } from "mdbreact"; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; // Custom components import AppHeader from '../AppHeader'; import Footer from '../Footer'; /** * Marketing page component. */ class MarketingPage extends React.Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.onClick1 = this.onClick1.bind(this); this.onClick2 = this.onClick2.bind(this); this.onClick3 = this.onClick3.bind(this); this.onClick4 = this.onClick4.bind(this); this.state = { collapse: false, accordion: false, width: 0, height: 0 }; this.updateWindowDimensions = this.updateWindowDimensions.bind(this); } componentDidMount() { this.updateWindowDimensions(); window.addEventListener('resize', this.updateWindowDimensions); } componentWillUnmount() { window.removeEventListener('resize', this.updateWindowDimensions); } updateWindowDimensions() { this.setState({ width: window.innerWidth, height: window.innerHeight }); } toggle() { this.setState({ collapse: !this.state.collapse }); } onClick1() { let state = ""; if (this.state.accordion !== 1) { state = 1; } else { state = false; } this.setState({ accordion: state }); } onClick2() { let state = ""; if (this.state.accordion !== 2) { state = 2; } else { state = false; } this.setState({ accordion: state }); } onClick3() { let state = ""; if (this.state.accordion !== 3) { state = 3; } else { state = false; } this.setState({ accordion: state }); } onClick4() { let state = ""; if (this.state.accordion !== 4) { state = 4; } else { state = false; } this.setState({ accordion: state }); } render() { const whiteSpaceheight = (this.state.height > 602) ? this.state.height - 602: 0; return (
{/* Add dynamic white spaces */}
); } } export { MarketingPage };