diff --git a/app/components/default-modal.js b/app/components/default-modal.js
new file mode 100644
index 00000000..2ffc7f88
--- /dev/null
+++ b/app/components/default-modal.js
@@ -0,0 +1,31 @@
+import Component from '@ember/component';
+
+const TOTAL_SLIDES = 7;
+
+export default Component.extend({
+ tagName: '',
+ open: true,
+ slideNumber: Math.floor(Math.random() * TOTAL_SLIDES) + 1, // start on a random slide
+
+ actions: {
+ toggleModal() {
+ this.toggleProperty('open');
+ },
+ nextSlide() {
+ if (this.slideNumber < TOTAL_SLIDES) {
+ this.set('slideNumber', this.slideNumber + 1);
+ } else {
+ // comment out the line below to disable infinite looping
+ this.set('slideNumber', 1);
+ }
+ },
+ prevSlide() {
+ if (this.slideNumber > 1) {
+ this.set('slideNumber', this.slideNumber - 1);
+ } else {
+ // comment out the line below to disable infinite looping
+ this.set('slideNumber', TOTAL_SLIDES);
+ }
+ },
+ },
+});
diff --git a/app/controllers/application.js b/app/controllers/application.js
index 84799092..d85a094b 100644
--- a/app/controllers/application.js
+++ b/app/controllers/application.js
@@ -200,6 +200,19 @@ export default class ApplicationController extends Controller.extend(
return values.every(({ changed }) => changed === false);
}
+ @tracked
+ openModal = !window.localStorage.hideMessage;
+
+ @tracked
+ dontShowModalAgain = false;
+
+ @action toggleModal() {
+ this.openModal = !this.openModal;
+ if (this.dontShowModalAgain) {
+ window.localStorage.hideMessage = true;
+ }
+ }
+
@action
async toggleLeftSideMenuVisibility() {
this.leftSideMenuVisibilty = !this.leftSideMenuVisibilty;
diff --git a/app/styles/app.scss b/app/styles/app.scss
index d0865094..c9833f87 100644
--- a/app/styles/app.scss
+++ b/app/styles/app.scss
@@ -21,6 +21,7 @@
@include foundation-close-button;
@include foundation-menu;
@include foundation-label;
+@include foundation-reveal;
@include foundation-switch;
@include foundation-visibility-classes;
@include foundation-float-classes;
@@ -46,7 +47,7 @@
@import 'modules/_m-maps';
@import 'modules/_m-noui';
@import 'modules/_m-search';
-
+@import 'modules/_m-reveal-modal';
@import 'ember-power-select';
@import 'layouts/_l-print';
diff --git a/app/styles/modules/_m-reveal-modal.scss b/app/styles/modules/_m-reveal-modal.scss
new file mode 100644
index 00000000..c4997975
--- /dev/null
+++ b/app/styles/modules/_m-reveal-modal.scss
@@ -0,0 +1,97 @@
+// --------------------------------------------------
+// Module: Reveal Modal
+// --------------------------------------------------
+
+#reveal-modal-container {
+ z-index: 3;
+}
+
+@include breakpoint(1280px up) {
+ .mobile-header,
+ .mobile-body {
+ display: none;
+ }
+}
+
+
+.reveal-overlay {
+ padding: 1rem;
+
+ @include breakpoint(medium) {
+ padding: 8rem 1rem;
+ // position: absolute;
+ }
+}
+
+.reveal-overlay-target {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+}
+
+.reveal {
+ border: 0;
+ box-shadow: 0 0 0 rem-calc(4) rgba(0,0,0,0.1);
+ top: 0;
+ border-radius: 5px;
+ padding-top: 40px;
+
+ &:focus {
+ outline: none;
+ }
+}
+
+/* Slideshow container */
+.slideshow-container {
+ position: relative;
+ /* should we keep this? */
+ min-height: 10rem;
+}
+
+/* Next & previous buttons */
+.slideshow-prev, .slideshow-next {
+ cursor: pointer;
+ position: absolute;
+ top: 50%;
+ width: auto;
+ padding: 16px;
+ margin-top: -22px;
+ color: white;
+ font-weight: bold;
+ font-size: 48px;
+ transition: 0.6s ease;
+ border-radius: 0 3px 3px 0;
+ user-select: none;
+ background-color: rgba(0,0,0,0.1);
+}
+
+/* Position the "next button" to the right */
+.slideshow-next {
+ right: 0;
+ border-radius: 3px 0 0 3px;
+}
+
+/* On hover, add a black background color with a little bit see-through */
+.slideshow-prev:hover, .slideshow-next:hover {
+ background-color: rgba(0,0,0,0.8);
+}
+
+.slideshow-content {
+ text-align: center;
+ margin-bottom: 1rem;
+}
+
+.slide {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ padding-top: 1rem;
+ background-color: lightgray;
+}
+
+.slide img {
+ height: 350px;
+}
\ No newline at end of file
diff --git a/app/templates/application.hbs b/app/templates/application.hbs
index d52c5a91..0222c4cc 100644
--- a/app/templates/application.hbs
+++ b/app/templates/application.hbs
@@ -1,3 +1,4 @@
+
+ Mobile support for ZoLa will be added in the future. + For the best experience, please use a browser with a minimum width of + 1280px. +
--}} ++ Access what you're looking for more quickly using your search history. +
++ Select two tax lots for side-by-side comparison. +
++ Bookmark your selected layers to return to later. +
++ Get the information you need faster by using the new links to sites related to the selected tax lot. +
++ Sum the area or distance of multiple measurements. +
++ See more of the map by hiding the layers menu. +
++ Turn off all layers with the click of a button. +
+