Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 3 months ago

Responsive Newsletter Sign-Up Form with Success Modal Using HTML, CSS

accessibility, sass/scss, van-js
Abdulgafar-Riro•310
@Abdulgafar-Riro
A solution to the Newsletter sign-up form with success message challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

What I’m Most Proud Of: I’m especially proud of how I implemented a fully responsive layout that maintains visual consistency across different screen sizes. The use of SCSS helped keep the styles organized and scalable, and the JavaScript form validation provided smooth user interaction with instant feedback. Also, the animated success modal added a nice touch of interactivity and user satisfaction.

What I Would Do Differently Next Time: Next time, I’d consider:

Adding accessibility enhancements, such as ARIA labels and better keyboard navigation support.

Implementing form validation using HTML5 constraints alongside JavaScript for better fallback.

Using a utility-first CSS framework like Tailwind to speed up styling.

Incorporating localStorage to remember user inputs on page refresh.

What challenges did you encounter, and how did you overcome them?

Challenges I Encountered and How I Overcame Them:

  1. Responsive Design Adjustments: Ensuring the layout looked good on all screen sizes was tricky, especially for the form elements. I overcame this by using flexbox and media queries to adjust spacing, alignment, and font sizes dynamically.

  2. Form Validation Logic

  3. Modal Display

  4. Maintaining Clean Code Structure: As the project grew, keeping the codebase organized became important. I used SCSS nesting and comment blocks to structure the styles.

What specific areas of your project would you like help with?

How to implement react and CSS frameworks into my projects

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Abdulgafar-Riro's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License