See the Pen Product landing page by Ty Mick (@TyMick) on CodePen.
View this project in its own window, or view the source on GitHub or CodePen.
Product landing page
I created this page as a requirement for my freeCodeCamp Responsive Web Design Certification, using W3.CSS. I modeled it some after their example but I was inspired more by W3School’s Parallax Template. And my own (now defunct) Lens Captions homepage, which I’d built with Shopify’s website builder. It fulfills the following user stories:
- My product landing page should have a
headerelement with a correspondingid="header". - I can see an image within the
headerelement with a correspondingid="header-img". A company logo would make a good image here. - Within the
#headerelement I can see anavelement with a correspondingid="nav-bar". - I can see at least three clickable elements inside the
navelement, each with the classnav-link. - When I click a
.nav-linkbutton in thenavelement, I am taken to the corresponding section of the landing page. - I can watch an embedded product video with
id="video". - My landing page has a
formelement with a correspondingid="form". - Within the form, there is an
inputfield withid="email"where I can enter an email address. - The
#emailinput field should have placeholder text to let the user know what the field is for. - The
#emailinput field uses HTML5 validation to confirm that the entered text is an email address. - Within the form, there is a submit
inputwith a correspondingid="submit". - When I click the
#submitelement, the email is submitted to a static page (use this mock URL: https://www.freecodecamp.com/email-submit) that confirms the email address was entered and that it posted successfully. - The navbar should always be at the top of the viewport.
- My product landing page should have at least one media query.
- My product landing page should utilize CSS flexbox at least once.