Skip to content

AltaOfficial/frontendmentor3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Links

My process

  • Adding needed colors/fonts to stylesheet and other common practices
  • Stuctured HTML pages
  • Stuctured CSS for mobile first
  • Stuctured CSS for desktop
  • Added interactive animations
  • Programmed javascript to handle email validation
  • Edited README

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Javascript

What I learned

I learned doing this project that transitions don't work with gradients in CSS, there are most likely workarounds but I'm sad it's not built in 😕, I also learned that using textContent over innerText or inner HTML can prevent XSS attacks and that the attribute bracket in CSS applies for more than just selecting elements by type.

Continued development

I really like the result of this project but when it came to aligning and position the elements it took longer than id like it to, so in the future id like to work on more projects that challenge me in that way.

Useful resources

  • Resource 1 - This helped me figure out how to move the image container to the other side in desktop mode.
  • Resource 2 - Helped me figure out how to position the dismiss button at the bottom.
  • Resource 3 - Needed help centering the dismiss button on the success page.

Author

About

Newsletter sign-up form with success message

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published