Interactive interface for browsing global, full-resolution satellite imagery
Add tour-complete modal and update tour-in-progress modal
ZachTRice8aa2e923e5e1
diff --git a/web/css/tour.css b/web/css/tour.cssindex b36a752c4..b69c0c5bc 100644--- a/web/css/tour.css+++ b/web/css/tour.css@@ -8,6 +8,16 @@opacity: 1;}+.tour a {+ color: #00457b;+ font-weight: 600;+}++.tour a:hover {+ color: #2276ac;+ text-decoration: none;+}+/* .tour-start */.tour-start {@@ -15,7 +25,7 @@}.tour-start .modal {- overflow-y:auto;+ overflow-y: auto;}.tour-start .modal-dialog {@@ -33,6 +43,7 @@color: #fff;background-color: #00457b;border-radius: 0;+ padding: 8px 12px 7px;}.tour-start .modal-title {@@ -177,7 +188,7 @@.tour-in-progress .modal {left: auto;- top: 300px;+ top: 410px;overflow: visible;}@@ -309,16 +320,19 @@padding: 16px 20px 16px 20px;max-height: 248px;overflow-y: scroll;+ border-bottom: 2px solid #fff;}.tour-in-progress .modal-body p {font-size: 13px;line-height: 20px;+ font-weight: 300;margin-bottom: 16px;}.tour-in-progress .modal-footer {border-radius: 0 0 0 8px;+ padding: 12px;}.tour-in-progress .modal-body,@@ -384,7 +398,6 @@}.tour-in-progress .step-container {- color: #fff;display: flex;height: 40px;width: 220px;@@ -393,6 +406,7 @@}.tour-in-progress .step-previous {+ color: #fff;font-size: 40px;height: 40px;width: 40px;@@ -400,6 +414,7 @@}.tour-in-progress .step-counter {+ color: #fff;width: 132px;margin: auto;text-align: center;@@ -408,15 +423,47 @@.tour-in-progress .step-counter p {font-size: 22px;line-height: 24px;+ font-weight: 300;}.tour-in-progress .step-next {+ color: #fff;font-size: 40px;height: 40px;width: 40px;margin: auto;}+/* (Worst Bootstrap specificty ever) */+.tour-in-progress .step-previous:not([href]):not([tabindex]):hover,+.tour-in-progress .step-previous:not([tabindex]):hover,+.tour-in-progress .step-previous:hover,+.tour-in-progress .step-next:not([href]):not([tabindex]):hover,+.tour-in-progress .step-next:not([tabindex]):hover,+.tour-in-progress .step-next:hover {+ color: #fff;+ opacity: 0.75;+}++.tour-in-progress .step-previous.disabled:not([href]):not([tabindex]):hover,+.tour-in-progress .step-previous.disabled:not([href]):not([tabindex]):focus,+.tour-in-progress .step-previous.disabled:not([tabindex]):hover,+.tour-in-progress .step-previous.disabled:not([tabindex]):focus,+.tour-in-progress .step-previous.disabled:hover,+.tour-in-progress .step-previous.disabled:focus,+.tour-in-progress .step-previous.disabled,+.tour-in-progress .step-next.disabled:not([href]):not([tabindex]):hover,+.tour-in-progress .step-next.disabled:not([href]):not([tabindex]):focus,+.tour-in-progress .step-next.disabled:not([tabindex]):hover,+.tour-in-progress .step-next.disabled:not([tabindex]):focus,+.tour-in-progress .step-next.disabled:hover,+.tour-in-progress .step-next.disabled:focus,+.tour-in-progress .step-next.disabled {+ cursor: default;+ color: #ddd;+ opacity: 0.50;+}+/* .tour-complete */.tour-complete {@@ -428,21 +475,65 @@}.tour-complete .modal-dialog {+ border: 1px solid #333;+}+.tour-complete .modal-content {+ border: 0;+ border-radius: 0;+}+.tour-complete .modal-header {+ border-radius: 0;+ background-color: rgb(0, 69, 123);}-.tour-complete .modal-content {+.tour-complete .wildfire .modal-header {+ background-color: rgb(141, 59, 54);+}+.tour-complete .volcano .modal-header {+ background-color: rgb(165, 115, 75);+}+.tour-complete .snow .modal-header {+ background-color: rgb(90, 119, 132);}-.tour-complete .modal-header {+.tour-complete .sea-and-lake-ice .modal-header {+ background-color: rgb(50, 134, 151);+}+.tour-complete .iceberg .modal-header {+ background-color: rgb(56, 137, 173);}-.tour-complete .modal-title {+.tour-complete .water-color .modal-header {+ background-color: rgb(69, 125, 115);+}++.tour-complete .dust-and-haze .modal-header {+ background-color: rgb(160, 151, 88);+}++.tour-complete .severe-storm .modal-header {+ background-color: rgb(70, 90, 100);+}+.tour-complete .man-made .modal-header {+ background-color: rgb(62, 62, 62);+}++.tour-complete .critical .modal-header {+ background-color: rgb(88, 88, 88);+}+++.tour-complete .modal-title {+ color: #fff;+ font-size: 20px;+ line-height: 24px;+ font-weight: 300;}.tour-complete .modal-title .close {@@ -453,12 +544,22 @@}+.tour-complete .modal-body p {+ color: #333;+ font-size: 16px;+ line-height: 24px;+}+.tour-complete .modal-footer {}.tour-complete .modal-footer .btn {-+ font-size: 18px;+ line-height: 24px;+ font-weight: 300;+ padding: 2px 25px 4px;+ border-radius: 0;}.tour-complete .modal-footer .btn-primary {@@ -590,8 +691,7 @@}.tour-complete .modal-dialog {--+ max-width: 572px;}.tour-complete .modal-content {@@ -600,6 +700,7 @@}.tour-complete .modal-header {+ padding: 7px 12px 8px;}@@ -612,11 +713,21 @@}.tour-complete .modal-body {-+ padding: 15px;}.tour-complete .modal-footer {+ justify-content: center;+ border-top: none;+ padding: 8px 15px 15px;+ }+ .tour-complete .modal-footer > :not(:last-child) {+ margin-right: 10px;+ }++ .tour-complete .modal-footer > :not(:first-child) {+ margin-left: 10px;}.tour-complete .modal-footer .btn {@@ -624,11 +735,25 @@}.tour-complete .modal-footer .btn-primary {+ background-color: #133f90;+ border-color: #133f90;+ }+ .tour-complete .modal-footer .btn-primary:hover,+ .tour-complete .modal-footer .btn-primary:focus {+ background-color:#133f77;+ border-color: #133f77;}.tour-complete .modal-footer .btn-secondary {+ background-color: #f15521;+ border-color: #f15521;+ }+ .tour-complete .modal-footer .btn-secondary:hover,+ .tour-complete .modal-footer .btn-secondary:focus {+ background-color: #d54e21;+ border-color: #d54e21;}}diff --git a/web/modal02-in-progress.html b/web/modal02-in-progress.htmlindex b14d5a378..ef0ec9584 100644--- a/web/modal02-in-progress.html+++ b/web/modal02-in-progress.html@@ -2333,7 +2333,7 @@<div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title">Modal title</h5>+ <h5 class="modal-title">Story title</h5><i class="modal-icon" aria-hidden="true"></i><button type="button" class="close" aria-label="Close"><span aria-hidden="true">X</span></button></div>@@ -2358,14 +2358,14 @@</div><div class="modal-footer"><div class="step-container">- <a class="step-previous" aria-label="Previous">+ <a href="#" class="step-previous disabled" aria-label="Previous"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></i></a><div class="step-counter"><p>Step <span class="step-current">10</span>/<span class="step-total">10</span></p></div>- <a class="step-next" aria-label="Next">+ <a href="#" class="step-next" aria-label="Next"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></i></a></div>diff --git a/web/modal03-complete.html b/web/modal03-complete.htmlindex 1163f774b..103e41b7c 100644--- a/web/modal03-complete.html+++ b/web/modal03-complete.html@@ -2328,22 +2328,19 @@<div data-role="page" id="app"><div data-role="content"><!-- Based on "Backdrop" example: https://reactstrap.github.io/components/modals/ -->- <div id="tour" class="tour tour-finished">+ <div id="tour" class="tour tour-complete"><div class="modal fade show" role="dialog" tabindex="-1" style="display: block;"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title">Modal title</h5>+ <h5 class="modal-title">Story title</h5><button type="button" class="close" aria-label="Close"><span aria-hidden="true">X</span></button></div>- <div class="modal-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt- ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi- ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum- dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia- deserunt mollit anim id est laborum.+ <div class="modal-body">+ <p>You have now completed a story in Worldview. To view more stories, click the "More Stories" button below or, <a href="#">explore more events</a> within the app. Click the "Exit Tutorial" button or close this window to start using Worldview on your own.</p></div>- <div class="modal-footer"><button type="button" class="btn btn-primary">Do Something</button>- <button type="button" class="btn btn-secondary">Cancel</button>+ <div class="modal-footer"><button type="button" class="btn btn-primary">More Stories</button>+ <button type="button" class="btn btn-secondary">Exit Tutorial</button></div></div></div>