blob: e3c44d5b3bad0640063b0c084edf46a53df1675f (
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
|
import React, { Component } from 'react'
import actions from 'site/actions'
import "./home.css"
export default class Home extends Component {
state = {
open: false,
}
constructor(props) {
super(props)
this.handleClick = this.handleClick.bind(this)
}
componentDidMount() {
const roadblock = document.querySelector('.roadblock')
if (roadblock) roadblock.style.display = "none"
}
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 OPOKO
</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>
)
}
}
|