Interactive interface for browsing global, full-resolution satellite imagery
Fix tour complete bd color #1576
Benjamin King81115512cba4
diff --git a/web/css/modal.css b/web/css/modal.cssindex adfeb6e7c..1aebb1f77 100644--- a/web/css/modal.css+++ b/web/css/modal.css@@ -25,3 +25,6 @@list-style-type: disc;margin: 2px 0 2px 20px;}+.modal-dialog.light .modal-content {+ background-color: #dcdcdc;+}\ No newline at end of filediff --git a/web/css/tour.css b/web/css/tour.cssindex 91ad8fc85..39ea6ce28 100644--- a/web/css/tour.css+++ b/web/css/tour.css@@ -66,7 +66,9 @@-webkit-transform: translate(0, 0);}-.tour-start .modal-dialog .modal-content {+.tour-complete .modal-dialog .modal-content,+.tour-start .modal-dialog .modal-content+{background-color: #eee;border: 0;border-radius: 0;diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.jsindex 2901eb87e..024816960 100644--- a/web/js/components/layer/product-picker/product-picker.js+++ b/web/js/components/layer/product-picker/product-picker.js@@ -161,7 +161,7 @@ class ProductPicker extends React.Component {isOpen={isOpen}toggle={this.toggle.bind(this)}backdrop={true}- className="custom-layer-dialog"+ className="custom-layer-dialog light"autoFocus={false}><ModalHeader toggle={this.toggle.bind(this)}>diff --git a/web/js/components/tour/modal-tour-complete.js b/web/js/components/tour/modal-tour-complete.jsindex d64644c48..ce8f51f40 100644--- a/web/js/components/tour/modal-tour-complete.js+++ b/web/js/components/tour/modal-tour-complete.js@@ -6,29 +6,62 @@ class ModalComplete extends React.Component {render() {let readMoreLinks = this.props.currentStory.readMoreLinks;let list;- if (readMoreLinks && (Array.isArray(readMoreLinks) && readMoreLinks.length)) {+ if (+ readMoreLinks &&+ (Array.isArray(readMoreLinks) && readMoreLinks.length)+ ) {list = (<React.Fragment><p>Read more about this story at the links below:</p><ul>- {readMoreLinks.map((linkId, i) =>- <li key={i} index={i}><a href={linkId.link} target="_blank">{linkId.title}</a></li>- )}+ {readMoreLinks.map((linkId, i) => (+ <li key={i} index={i}>+ <a href={linkId.link} target="_blank">+ {linkId.title}+ </a>+ </li>+ ))}</ul></React.Fragment>);}return (<div>- <Modal isOpen={this.props.modalComplete} toggle={this.props.toggleModalComplete} wrapClassName='tour tour-complete' className={this.props.className} backdrop={'static'} fade={false} keyboard={true}>- <ModalHeader toggle={this.props.toggleModalComplete} charCode="">Story Complete</ModalHeader>+ <Modal+ isOpen={this.props.modalComplete}+ toggle={this.props.toggleModalComplete}+ wrapClassName="tour tour-complete"+ backdrop={'static'}+ fade={false}+ keyboard={true}+ >+ <ModalHeader toggle={this.props.toggleModalComplete} charCode="">+ Story Complete+ </ModalHeader><ModalBody>- <p>You have now completed a story in Worldview. To view more stories, click the "More Stories" button below to explore more events within the app. Click the "Exit Tutorial" button or close this window to start using Worldview on your own.</p>+ <p>+ You have now completed a story in Worldview. To view more stories,+ click the "More Stories" button below to explore more events+ within the app. Click the "Exit Tutorial" button or close this+ window to start using Worldview on your own.+ </p>{list}</ModalBody><ModalFooter>- <button type="button" className="btn btn-primary" onClick={this.props.resetTour}>More Stories</button>- <button type="button" className="btn btn-secondary" onClick={this.props.toggleModalComplete}>Exit Tutorial</button>+ <button+ type="button"+ className="btn btn-primary"+ onClick={this.props.resetTour}+ >+ More Stories+ </button>+ <button+ type="button"+ className="btn btn-secondary"+ onClick={this.props.toggleModalComplete}+ >+ Exit Tutorial+ </button></ModalFooter></Modal></div>