{"size": 1465, "ext": "js", "max_stars_repo_path": "src/containers/LandingPage/LandingPage.js", "max_stars_repo_name": "MobileDev418/react_redux_master", "max_stars_repo_stars_event_min_datetime": "2019-06-06T02:24:14.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-06T02:24:14.000Z", "max_issues_repo_path": "src/containers/LandingPage/LandingPage.js", "max_issues_repo_name": "MobileDev418/react_redux_master", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/containers/LandingPage/LandingPage.js", "max_forks_repo_name": "MobileDev418/react_redux_master", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.7254901961, "max_line_length": 111, "alphanum_fraction": 0.6443686007}
import React, {Component, PropTypes} from 'react';

import {Header, Btn, ModalWindow,
        LandingFeature} from '../../components';

import { ModalTypes } from '../../constants';
import { showModal } from '../../actions';
import { connect } from 'react-redux';

@connect()
export default class LandingPage extends Component {

  constructor(props) {
    super(props);
  }

  render() {

    return (
      <div className='b-page b-page_landing b-landing'>
        <Header/>
        <div className='b-page__content'>
          <Btn secondary onClick={this.openModalWindow.bind(this, ModalTypes.LOGIN)}>Login</Btn>
          <Btn primary onClick={this.openModalWindow.bind(this, ModalTypes.SIGNUP)}>Register</Btn>
          <Btn secondary onClick={this.openModalWindow.bind(this, ModalTypes.RECOVER)}>Recover password</Btn>
          <Btn primary onClick={this.openModalWindow.bind(this, ModalTypes.RESETPASSWORD)}>Reset password</Btn>
          <Btn secondary onClick={this.openModalWindow.bind(this, ModalTypes.TOS)}>Terms of service</Btn>
          <Btn primary onClick={this.openModalWindow.bind(this, ModalTypes.PP)}>Privacy policy</Btn>
        </div>

        <LandingFeature/>

        <div className='container'>
          <div className='b-page__content'>

          </div>
        </div>
      </div>
    );

  }


  openModalWindow(type, e) {
    if(e) e.target.blur(); // remove focus from button
    
    this.props.dispatch(showModal(type));

  }

}