Skip to content

Commit

Permalink
fixup! refactor end of narrative styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
kairstenfay committed Jan 29, 2020
1 parent 78d9de5 commit f4db3fb
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/components/narrative/MobileNarrativeDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import React from "react";
import { connect } from "react-redux";
import queryString from "query-string";
import { changePage, EXPERIMENTAL_showMainDisplayMarkdown } from "../../actions/navigation";
import { MobileBannerTop, MobileBannerBottom, MobileContentContainer } from "./styles";
import {
linkStyles,
MobileBannerTop,
MobileBannerBottom,
MobileContentContainer,
EndOfNarrative
} from "./styles";
import Tree from "../tree";
import Map from "../map/map";
import MainDisplayMarkdown from "./MainDisplayMarkdown";
Expand Down Expand Up @@ -113,18 +119,20 @@ class MobileNarrativeDisplay extends React.Component {
Previous
</MobileBannerTop>
<MobileContentContainer height={contentHeight+bannerHeight}>
<h1>End of Narrative</h1>
<a style={{...linkStyles, textAlign: "center"}}
onClick={() => this._goToPage(0)}
>
Jump to the beginning
</a>
<br />
<a style={{...linkStyles, textAlign: "center"}}
onClick={this.exitNarrativeMode}
>
Explore the data
</a>
<EndOfNarrative>
<h1>End of Narrative</h1>
<a style={{...linkStyles}}
onClick={() => this._goToPage(0)}
>
Jump to the beginning
</a>
<br />
<a style={{...linkStyles}}
onClick={this.exitNarrativeMode}
>
Explore the data
</a>
</EndOfNarrative>
</MobileContentContainer>
</>
);
Expand Down

0 comments on commit f4db3fb

Please sign in to comment.