Back

Newsletter Sign Up Form

A signup form for a fake newsletter service, with error and success modals differently on mobile compared to desktop, challenge by Frontend Mentor.

vuetailwindcssastro

Links

Media

Desktop

Desktop

Desktop Active

Desktop Active

Mobile

Mobile

Mobile Active

Mobile Active

The challenge

Users should be able to:

  • Add their email and submit the form
  • See a success message with their email after successfully submitting the form
  • See form validation messages if:
    • The field is left empty
    • The email address is not formatted correctly
  • View the optimal layout for the interface depending on their device’s screen size
  • See hover and focus states for all interactive elements on the page

What I learned

  • Styling bullet points with background-image gives more control over styling with list-style-type and list-style-position or ::marker.
  • No way to have a <picture> equivalence for <svg> apparently, and default to using img tag for SVGs. Not as fast as using inline SVGs, but still great to use media queries with.

Continued development

I took a bit too long with the responsive design. I need a lot of practice here.

Useful resources