Skip to content

Newsletter webpage with email validation, built with Tailwind CSS

Notifications You must be signed in to change notification settings

TeeHigh/Newsletter

Repository files navigation

Frontend Mentor - Newsletter sign-up form with success message solution

This is a solution to the Newsletter sign-up form with success message challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

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

Screenshot

Code script Desktop view Mobile view Mobile view with frame

Links

My process

Started off with html and installed tailwind library Included javascript and creating website UI

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Tailwind - CSS library

What I learned

I learnt the mobile first workflow with tailwind and javascript regular expression which was used in the email validation and can be used to test input for validation.

I learnt how to create a modal window.

I also learnt how to break functions into different components.

Author

Acknowledgments

Help with regex and validation (https://www.youtube.com/@edsHTML)

Releases

No releases published

Packages

No packages published