This is a solution to the Intro component with sign up form challenge on Frontend Mentor.
Just a simple Sign UP form with the help of HTML5, CSS3 & JavaScript. [UPDATED]: Next.js
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"
- Any
- Live Site Solution URL: https://xitizupreti.github.io/intro-component-with-signup-form-master/
HTML Model then added CSS properties and finally used JS.
- Semantic HTML5 markup
- CSS custom properties
- JavaScript
- Flexbox
- Mobile-first workflow
- Next.js
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)
- 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.
- Website - XiTiZ
I am thankful to Google, Stack Overflow & ChatGPT.