import React, { Component } from 'react' import { connect } from 'react-redux' import actions from 'site/actions' import "./home.css" class Home extends Component { constructor(props) { super(props) this.handleClick = this.handleClick.bind(this) this.state = { open: false, hidden: this.props.interactive, showCurtain: true, } } componentDidMount() { const roadblock = document.querySelector('.roadblock') if (roadblock) roadblock.style.display = "none" setTimeout(() => { this.setState({ showCurtain: false }) }, 100) } handleClick(e) { e && e.preventDefault() if (this.state.open) { actions.site.interact() this.setState({ hidden: true }) } else { this.setState({ open: true }) } } render() { return (