This is a solution to the Newsletter sign-up form with success message challenge on Frontend Mentor.
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
The base page on mobile:
The base page with an email error on mobile:
The success page on mobile:
The base page on desktop:
The base page with an email error on desktop:
The base page on desktop with the button's active state:
The success page on desktop:
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- SvelteKit