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

Add Success Message for Newsletter Subscription with Auto-dismiss Functionality #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akshay0611
Copy link

Problem

There was no success message displayed after a user subscribes to the newsletter. This update addresses that issue.

Solution

  1. Added a success message that shows up upon form submission, thanking the user for subscribing.
  2. Used JavaScript's setTimeout() function to automatically hide the success message after 4 seconds.
  3. Ensured the success message is hidden by default and only shown after successful submission.

Testing

  • Test the subscription form by entering a valid email.
  • Ensure the success message appears after submission and disappears after 4 seconds.

This update improves the user experience by providing immediate feedback to the user upon submitting their email and it closes the Issue No #4 .

Screenshot 2025-01-29 at 11 44 21 AM

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.

1 participant