diff options
Diffstat (limited to 'frontend/site/projects/museum/views/nav.overlay.js')
| -rw-r--r-- | frontend/site/projects/museum/views/nav.overlay.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/frontend/site/projects/museum/views/nav.overlay.js b/frontend/site/projects/museum/views/nav.overlay.js index b8813f0..dc059f5 100644 --- a/frontend/site/projects/museum/views/nav.overlay.js +++ b/frontend/site/projects/museum/views/nav.overlay.js @@ -43,10 +43,21 @@ export default class NavOverlay extends Component { const { page_name } = this.props.match.params const pathPartz = page_name.split("-") const pathkey = pathPartz[0] + const path_chapter = pathPartz[1] // console.log(pathkey) if (pathkey === 'start') { this.setState({ showHome: false, + showFooter: false, + showArtist: false, + showCounter: false, + currentArtist: null, + artist: {}, + }) + } + else if (pathkey === 'home') { + this.setState({ + showHome: false, showFooter: true, showArtist: false, showCounter: false, @@ -68,7 +79,7 @@ export default class NavOverlay extends Component { showHome: true, showFooter: true, showArtist: true, - showCounter: pathkey === 'nilthamrong', + showCounter: pathkey === 'nilthamrong' && path_chapter !== "home", currentArtist: pathkey, artist: ARTISTS[pathkey], }, () => shouldShowFooter && this.quicklyShowFooter()) @@ -112,7 +123,7 @@ export default class NavOverlay extends Component { } goHome() { - history.push(`/last-museum/`) + history.push(`/last-museum/home/`) } render() { @@ -140,7 +151,9 @@ export default class NavOverlay extends Component { <div className="footer no-artist" ref={this.footerRef} /> ) )} + <TextOverlay location={this.props.location} match={this.props.match} /> </div> ) } } + |
