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.
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
formis submitted if:- Any
inputfield 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"
- Any
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- Vanilla Javascript
- Utilizing
position: absoluteon an element within aposition: relativecontainer can help line up icons or pictures in relation to their container regardless of size - Abstracting functions in JS can help to reduce amount of copy-pasting
- Utilizing the built-in methods such as
document.querySelector,document.getElementByID,element.classList.removeor theelement.parentElement,element.innerTextproperties help to manipulate the dom elements dynamically through js
- Position absolute vs/with position relative
- Pseudo-elements
::before,::after - Dom-manipulation through JS
- Regexr - This helped me create regex to use for form validations.
- CSS Cheat Sheet - Great website for all things css, also has a html and js cheatsheet too.
- Website - Christopher d'Arcy
- Frontend Mentor - @cmdarcy
