blob: 1520c11276edd1130bb968a97513888207cc8c8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
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 (
<div className={this.state.hidden ? "home hidden open" : this.state.open ? "home open" : "home"} onClick={this.handleClick}>
<div className="home-byline byline-top">KW PRESENTS</div>
<div className="home-title title-1">THE L<span>AST</span></div>
<div className="home-title title-2">MUSEUM</div>
<div className="home-artists artists-left">
NICOLE FORESHEW<br />
JULIANA CERQUEIRA LEITE<br />
NORA AL-BADRI
</div>
<div className="home-artists artists-right">
CHARLES STANKIEVECH<br />
JAKRAWAL NILTHAMRONG<br />
ZOHRA OPOKU
</div>
<div className="home-byline byline-bottom">CURATED BY NADIM SAMMAN</div>
<div className="home-message">
Lorem ipsum dolor sit amet, pro ea errem nonumes, gubergren deterruisset sit eu. Quo nostrud definitiones ex, sea dicant accommodare ei, te vix habeo minim voluptatum.
</div>
<div className={this.state.showCurtain ? "curtain" : "curtain hidden"} />
</div>
)
}
}
const mapStateToProps = state => ({
interactive: state.site.interactive,
})
export default connect(mapStateToProps)(Home)
|