Skip to content

cmdarcy/9-4-IntroCompwSignup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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

Desktop View

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Vanilla Javascript

What I learned

  • Utilizing position: absolute on an element within a position: relative container 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.remove or the element.parentElement, element.innerText properties help to manipulate the dom elements dynamically through js

Continued development

Concepts I Encountered that I would like to explore further...

  • Position absolute vs/with position relative
  • Pseudo-elements ::before, ::after
  • Dom-manipulation through JS

Useful resources

  • 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.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published