Skip to content

My code for the Frontend Mentor challenge "Intro component with sign-up form." Click the link below to see it live!

Notifications You must be signed in to change notification settings

AndrewHuntington/intro-component-with-sign-up-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Intro component with sign up form solution

This is a solution to the Intro component with sign up form 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:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Receive an error message when the form is submitted if:
    • Any input field is empty. The message for this error should say "[Field Name] cannot be empty"
    • The email address is not formatted correctly (i.e. a correct email address should have this structure: name@host.tld). The message for this error should say "Looks like this is not an email"

Screenshot

Sign-up Form

Links

My process

Built with

  • TypeScript
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • React - JS library
  • React Hook Form - Form library

What I learned

The major take away from this project is a fundamental understanding of how to use React Hook Form and how to include type validation in HTML forms using TypeScript.

Another thing that I learned was how to incorporate .svg art into my project, as well as insert these assets into input fields using CSS pseudo selectors, like ::after and ::before.

Continued development

I hope to continue to further develope my skills with React and TypeScript, as well as learn more CSS tricks and techniques.

Useful resources

Author

Acknowledgments

Special thanks to ApplePieGiraffe and Alex Marshall from the Frontend Mentor Slack channel. ApplePieGiraffe's code and advice helped me add icons inside the inputs of my form, and Alex Marshall provided an alternate solution that I may use in the future.

About

My code for the Frontend Mentor challenge "Intro component with sign-up form." Click the link below to see it live!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages