Skip to content

xitizupreti/intro-component-with-signup-form-master

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.

Table of contents

Overview

Just a simple Sign UP form with the help of HTML5, CSS3 & JavaScript. [UPDATED]: Next.js

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: [email protected]). The message for this error should say "Looks like this is not an email"

Screenshot

Mobile SS Desktop SS Active states

Links

My process

HTML Model then added CSS properties and finally used JS.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • JavaScript
  • Flexbox
  • Mobile-first workflow
  • Next.js

Continued development

box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit;

::placeholder{} => To change placeholder color

as an advantage with filter:drop-shadow you can generate shadow around irregular shapes or images, whereas box-shadows generates a rectangular shadow.

display: block/none (useful while toggle)

Useful resources

  • Section Vs Div - This helped me understand their difference. I liked this pattern and will use it going forward.
  • CSS Outline - This amazing article helped me finally understand CSS Outline. I'd recommend it to anyone still learning this concept.
  • Pattern in Input field - I didn't know about this attribute till working on this project.
  • JavaScript RegExp test() - This article helped me understand about pattern test in email input fields.
  • JavaScript Object.assign() - This was very important for me to create style in one variable and use it anywhere.

Author

Acknowledgments

I am thankful to Google, Stack Overflow & ChatGPT.

About

Signup Form (Next.js+FireBase)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published