Skip to content

Milleus/fm-base-apparel-landing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Base Apparel coming soon page solution

This is a solution to the Base Apparel coming soon page 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:
    • The input field is empty
    • The email address is not formatted correctly

Screenshot

Desktop view

desktop view

Mobile view

mobile view

Links

My process

Built with

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

What I learned

  • Using Constraint Validation APIs
  • Email typeMismatch allows email addresses without a top-level domain, i.e. x@y is a valid email
  • Using patternMismatch to accept only emails with top-level domain
  • Setting novalidate with JavaScript instead of HTML allows for native form validation fallback when JavaScript fails
  • Considerations for full-height images and larger viewports

Useful resources

Author

Releases

No releases published

Packages

No packages published