Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop Up Modal #1197

Merged
merged 12 commits into from
May 21, 2024
Merged

Pop Up Modal #1197

merged 12 commits into from
May 21, 2024

Conversation

dhochbaum-dcp
Copy link
Contributor

@dhochbaum-dcp dhochbaum-dcp commented Apr 4, 2024

This PR adds a pop-up modal to the site to display on page load. It has:

  • The option to not show the modal again when the user closes the window, or when the user checks the checkbox and closes the window - currently, the latter is used
    • If you have checked the box and closed the window, you can enter window.localStorage.clear() in the developer console and refresh to be able to see it again
  • A slideshow of new features

Completes #1196

Copy link

netlify bot commented Apr 4, 2024

Deploy Preview for labs-zola ready!

Name Link
🔨 Latest commit 5b36ef1
🔍 Latest deploy log https://app.netlify.com/sites/labs-zola/deploys/664cbf60b2a15f0008d8cbf4
😎 Deploy Preview https://deploy-preview-1197--labs-zola.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dhochbaum-dcp dhochbaum-dcp marked this pull request as ready for review May 20, 2024 16:56
@dhochbaum-dcp dhochbaum-dcp requested a review from a team as a code owner May 20, 2024 16:56

@action toggleModal() {
this.openModal = !this.openModal;
// Uncomment this when done so that the message only shows the first time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these 3 commented lines now? I'd rather they not land in develop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed them, although I don't really understand why. They make it easy for any developer in the future to switch between showing the modal once, showing the modal until the user hits the checkbox, or always showing the modal. What's the drawback?

@dhochbaum-dcp dhochbaum-dcp merged commit 82c2274 into develop May 21, 2024
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants