summaryrefslogtreecommitdiff
path: root/frontend/site/projects
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-04-29 14:53:57 +0200
committerJules Laplace <julescarbon@gmail.com>2021-04-29 14:53:57 +0200
commitd31a4ae6d634ac86325ccbe424110525c14a5589 (patch)
tree3c07f264649ce74747327d8e35c1d61dd1d6e0b1 /frontend/site/projects
parent51288f81110850e346e6303115a0780b3d4668b4 (diff)
final fixes?
Diffstat (limited to 'frontend/site/projects')
-rw-r--r--frontend/site/projects/museum/app/roadblock.css3
-rw-r--r--frontend/site/projects/museum/constants.js2
-rw-r--r--frontend/site/projects/museum/views/artists.css4
-rw-r--r--frontend/site/projects/museum/views/artists.js6
-rw-r--r--frontend/site/projects/museum/views/jakrawal.links.js43
-rw-r--r--frontend/site/projects/museum/views/nav.overlay.js2
-rw-r--r--frontend/site/projects/museum/views/titles.overlay.js4
7 files changed, 30 insertions, 34 deletions
diff --git a/frontend/site/projects/museum/app/roadblock.css b/frontend/site/projects/museum/app/roadblock.css
index 2bf6c38..d6796d3 100644
--- a/frontend/site/projects/museum/app/roadblock.css
+++ b/frontend/site/projects/museum/app/roadblock.css
@@ -13,6 +13,7 @@
align-items: center;
justify-content: space-between;
z-index: 2;
+ cursor: pointer;
}
.roadblock-byline {
font-family: "Druk Wide";
@@ -23,6 +24,7 @@
width: 100vw;
text-align: center;
line-height: 1.1;
+ cursor: pointer;
}
.roadblock-title {
font-family: "Druk";
@@ -33,6 +35,7 @@
text-align: center;
line-height: 0.7;
transition: top 0.2s cubic-bezier(0,0,0,1);
+ cursor: pointer;
}
.roadblock-title span {
margin-left: -2vh;
diff --git a/frontend/site/projects/museum/constants.js b/frontend/site/projects/museum/constants.js
index aca9ef1..4cbf383 100644
--- a/frontend/site/projects/museum/constants.js
+++ b/frontend/site/projects/museum/constants.js
@@ -146,7 +146,7 @@ export const ARTISTS = {
bio: {
en: `
<p>
- Nicole Foreshew (b. 1982) lives and works Urunga, New South Wales, Wiradjuri Nation. Nicole Foreshew is a Wiradjuri artist, writer and curator. Her practice incorporates mediums including photography, video and sculpture through which she maintains an ongoing thematic exploration of her heritage through contemporary and innovative frameworks. Foreshew has exhibited widely in Australia and internationally, including Primavera 2017: Young Australian Artists, MCA (2017); Mulunma (Within, Inside), Manly Art Gallery and Museum (2016); Old Land New Marks, Dubbo Regional Gallery (2016); Sixth Sense, National Art School Gallery, National Art School, Sydney (2016); Shimmer, Tarnanthi, Festival of Contemporary Aboriginal and Torres Strait Islander Art, Adelaide, South Australia (2015); Wiradjuri Ngurambanggu, Murray Art Museum Albury (2015); Hereby Make Protest, Carriageworks, Sydney (2014); Shadowlife, Bendigo Art Gallery (2013); Born in Darkness Before Dawn, a major public artwork commission for Place Projections, Eora Journey, a City of Sydney arts initiative, (2013) and Maamungun Compatriots, Lalit Kala Akademi, New Delhi, India (2012). Foreshew is the recipient of a number of public commissions, including Wynscreen, Transport for NSW, Wynyard Walk, Sydney (2017) and Eora Journey, City of Sydney (2014). In 2014 she was awarded a NSW Aboriginal Art Fellowship from Arts NSW to undertake her work titled Grounded: Earth’s materials, processes and structures, which won the prestigious NSW Aboriginal Parliamentary Prize. In 2015 Foreshew was Curatorial Fellow at the Museum of Contemporary Art Australia, and guest curator for Primavera 2015, the MCA’s annual exhibition of young Australian artists aged 35 and under. Her works are held in a number of state and regional galleries across Australia including the Murray Art Museum, Albury, Museum of Contemporary Art Australia, Sydney and National Gallery of Australia, Canberra.
+ Nicole Foreshew (b. 1982) lives and works in Urunga, New South Wales, Wiradjuri Nation. Nicole Foreshew is a Wiradjuri artist, writer and curator. Her practice incorporates mediums including photography, video and sculpture through which she maintains an ongoing thematic exploration of her heritage through contemporary and innovative frameworks. Foreshew has exhibited widely in Australia and internationally, including Primavera 2017: Young Australian Artists, MCA (2017); Mulunma (Within, Inside), Manly Art Gallery and Museum (2016); Old Land New Marks, Dubbo Regional Gallery (2016); Sixth Sense, National Art School Gallery, National Art School, Sydney (2016); Shimmer, Tarnanthi, Festival of Contemporary Aboriginal and Torres Strait Islander Art, Adelaide, South Australia (2015); Wiradjuri Ngurambanggu, Murray Art Museum Albury (2015); Hereby Make Protest, Carriageworks, Sydney (2014); Shadowlife, Bendigo Art Gallery (2013); Born in Darkness Before Dawn, a major public artwork commission for Place Projections, Eora Journey, a City of Sydney arts initiative, (2013) and Maamungun Compatriots, Lalit Kala Akademi, New Delhi, India (2012). Foreshew is the recipient of a number of public commissions, including Wynscreen, Transport for NSW, Wynyard Walk, Sydney (2017) and Eora Journey, City of Sydney (2014). In 2014 she was awarded a NSW Aboriginal Art Fellowship from Arts NSW to undertake her work titled Grounded: Earth’s materials, processes and structures, which won the prestigious NSW Aboriginal Parliamentary Prize. In 2015 Foreshew was Curatorial Fellow at the Museum of Contemporary Art Australia, and guest curator for Primavera 2015, the MCA’s annual exhibition of young Australian artists aged 35 and under. Her works are held in a number of state and regional galleries across Australia including the Murray Art Museum, Albury, Museum of Contemporary Art Australia, Sydney and National Gallery of Australia, Canberra.
</p>
`,
de: `
diff --git a/frontend/site/projects/museum/views/artists.css b/frontend/site/projects/museum/views/artists.css
index 312407a..66c7005 100644
--- a/frontend/site/projects/museum/views/artists.css
+++ b/frontend/site/projects/museum/views/artists.css
@@ -84,8 +84,8 @@
text-shadow: 0 0 5px #FF790D;
cursor: pointer;
}
-.page-artists .artist-detail-name,
-.page-artists .artist-detail-name:hover {
+.page-artists .artist-detail-name a,
+.page-artists .artist-detail-name a:hover {
text-decoration: none;
}
.page-artists .nav-arrow {
diff --git a/frontend/site/projects/museum/views/artists.js b/frontend/site/projects/museum/views/artists.js
index fe07598..b6af721 100644
--- a/frontend/site/projects/museum/views/artists.js
+++ b/frontend/site/projects/museum/views/artists.js
@@ -129,9 +129,11 @@ const ArtistDetail = ({ artist, index, isCurrent, language, onClose }) => {
<Link to={`/thelastmuseum/${artist.start}`} className="artist-right-inner" />
</div>
<div className="artist-detail-name">
- <Link to={artist.homepage} target="_blank">{artist.name}</Link>
+ <a href={artist.homepage} target="_blank">{artist.name}</a>
+ </div>
+ <div onClick={onClose} className="artist-close">
+ <img src="/thelastmuseum/static/img/close-orange.png" />
</div>
- <img src="/thelastmuseum/static/img/close-orange.png" onClick={onClose} className="artist-close" />
<div className="artist-location">{artist.location[language]}</div>
</div>
)
diff --git a/frontend/site/projects/museum/views/jakrawal.links.js b/frontend/site/projects/museum/views/jakrawal.links.js
index 90c4871..2447728 100644
--- a/frontend/site/projects/museum/views/jakrawal.links.js
+++ b/frontend/site/projects/museum/views/jakrawal.links.js
@@ -5,25 +5,13 @@ import './jakrawal.links.css'
import { history } from "site/store"
-const JAKRAWAL_TEXTS = [
- "<i>Wildfires</i> occur frequently during the dry season in northern Thailand’s high mountains. The source of fire is not natural but arson.",
- "In the past it was hypothesized that local people set the fires to clear land for agricultural use, or for hunting.",
- "There were efforts to solve the problem at the community level, but the fires only became more severe.",
- "Strangely, the blazes often occurred in the national park—an area difficult for villagers to access.",
- "During the wildfire suppression efforts of May 2020, a group of scholars and volunteers discovered important evidence that would change the original hypothesis.",
- "They found several instances of improvised devices made of clothes pegs connected to a small battery by a power cable.",
- "Combustion was triggered by a small clod of clay positioned in the middle between the pegs, acting as a timer. After melting in the heat the wires attached to the batteries would ignite.",
- "Villagers who were interviewed said that this was not a technique that they were familiar with.",
- "Although we cannot know the intention of the burners, it is likely that the park’s natural resources are being used to benefit some group of people. And the poor have always been condemned.",
-]
-
const RESET_STATE = {
left: null,
right: null,
vertical: false,
+ curtain: false,
lateralLink: null,
verticalLink: null,
- text: null,
hovering: false,
}
@@ -77,24 +65,28 @@ class JakrawalLinks extends Component {
this.autoadvanceTimeout = setTimeout(this.goVertical, AUTOADVANCE_TIMEOUT)
this.setState({
...RESET_STATE,
+ curtain: true,
verticalLink: "home",
})
+ clearTimeout(this.timeout)
+ this.timeout = setTimeout(() => {
+ this.setState({ vertical: true })
+ }, VERTICAL_TIMEOUT)
return
}
const partz = page_partz[1].split("")
const isOnA = partz[0] === 'a';
const lateralLink = (isOnA ? 'b' : 'a') + partz[1]
- const verticalLink = partz[0] + (parseInt(partz[1]) + 1)
- const text = JAKRAWAL_TEXTS[parseInt(partz[1]) - 1]
+ const verticalLink = lateralLink === 'a8' ? "home" : partz[0] + (parseInt(partz[1]) + 1)
this.setState({
left: !isOnA,
right: isOnA,
lateralLink,
verticalLink,
- text,
+ curtain: true,
hovering: false,
})
- if (!lastParams || lastParams.page_name !== ('nilthamrong' + lateralLink)) {
+ if (!lastParams || lastParams.page_name !== ('nilthamrong-' + lateralLink)) {
clearTimeout(this.autoadvanceTimeout)
this.autoadvanceTimeout = setTimeout(this.goVertical, AUTOADVANCE_TIMEOUT)
clearTimeout(this.timeout)
@@ -111,16 +103,20 @@ class JakrawalLinks extends Component {
this.setState({ hovering: false })
}
goLateral() {
- history.push(`/thelastmuseum/nilthamrong-${this.state.lateralLink}/`)
+ history.push(`/thelastmuseum/nilthamrong-${this.state.lateralLink}`)
}
goVertical() {
this.setState({ vertical: false })
- history.push(`/thelastmuseum/nilthamrong-${this.state.verticalLink}/`)
+ if (this.state.verticalLink === 'home') {
+ history.push(`/thelastmuseum/home`)
+ } else {
+ history.push(`/thelastmuseum/nilthamrong-${this.state.verticalLink}`)
+ }
}
render() {
- const { left, right, vertical } = this.state
- if (!this.props.interactive || (!left && !right && !vertical)) return null
+ const { left, right, vertical, curtain } = this.state
+ if (!this.props.interactive || (!left && !right && !vertical && !curtain)) return null
return (
<div>
<div className="jakrawal-curtain" />
@@ -137,8 +133,3 @@ const mapStateToProps = state => ({
})
export default connect(mapStateToProps)(JakrawalLinks)
-
-/*
- {text && <div className={hovering ? "jakrawal-text hovering" : "jakrawal-text"} dangerouslySetInnerHTML={{ __html: text }}></div>}
- {text && <div className="jakrawal-text-icon" onMouseEnter={this.handleEnter} onMouseLeave={this.handleLeave}><img src="/thelastmuseum/static/uploads/3/cursor/The_Last_Museum_-_Symbols-103.png"/></div>}
- */ \ No newline at end of file
diff --git a/frontend/site/projects/museum/views/nav.overlay.js b/frontend/site/projects/museum/views/nav.overlay.js
index bf43c52..37d30d3 100644
--- a/frontend/site/projects/museum/views/nav.overlay.js
+++ b/frontend/site/projects/museum/views/nav.overlay.js
@@ -168,7 +168,7 @@ class NavOverlay extends Component {
nextPage.tiles.forEach(tile => {
if (tile.type === 'video' && !this.preloaded[tile.settings.url]) {
this.preloaded[tile.settings.url] = true
- preloadVideo(tile.settings.url)
+ preloadVideo(tile.settings.url, { canplaythrough: true })
.then(video => {
// console.log("preloaded", video.src)
// video.src = null
diff --git a/frontend/site/projects/museum/views/titles.overlay.js b/frontend/site/projects/museum/views/titles.overlay.js
index bf7bb97..32e7344 100644
--- a/frontend/site/projects/museum/views/titles.overlay.js
+++ b/frontend/site/projects/museum/views/titles.overlay.js
@@ -99,9 +99,9 @@ class TitlesOverlay extends Component {
showHeadphones() {
if (!this.headphonesRef.current) return
- this.titleTimeout = setTimeout(() => {
+ this.headphonesTimeout = setTimeout(() => {
this.headphonesRef.current.style.opacity = 1
- this.titleTimeout = setTimeout(() => {
+ this.headphonesTimeout = setTimeout(() => {
this.headphonesRef.current.style.opacity = 0
setTimeout(this.showTitle, TITLE_SHOW_DELAY)
}, HEADPHONES_HIDE_DELAY)