Product landing page feedback


<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

  </head>

  <body>
    <div class="page-wrapper">
 <header id="header">
  <div class="logo">
    <img 
      id="header-img" 
      src="https://upload.wikimedia.org/wikipedia/commons/9/99/LEI0440_Leica_IIIf_chrom_-_Sn._580566_1951-52-M39_Blitzsynchron_front_view-6531_hf-.jpg" 
      alt="Picture of a Leica camera">

    <span class="shop-name">Aperture Alley</span>
  </div>

  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link" href="#features">Features</a></li>
      <li><a class="nav-link" href="#models">Models</a></li>
      <li><a class="nav-link" href="#pricing">Pricing</a></li>
    </ul>
  </nav>
</header>


        <div class="container">

          <section id="hero">
        <h2>Optical masterpieces</h2>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input id="email" placeholder="Enter your email" type="email" name="email"/ required>
        <input id="submit" type="submit"/>

        </form>
          


        <section id="features">
          <div class="grid">
            <div class="icon"><i class="fa fa-3x fa-camera-retro"></i></div>
            <div class="desc">
              <h2>Aspherical glass (ASPH)</h2>
              <p>
                Leica’s ASPH lenses are designed to keep your photos sharp and vibrant, even at the edges. Thanks to their smart curved glass, you get pro-level clarity and contrast in a compact lens that’s perfect for everyday shooting.
              </p>
            </div>
        <div class="icon"><i class="fa-solid fa-hammer fa-3x"></i></div>
            <div class="desc">
              <h2>Robust</h2>
              <p>
                Leica’s ASPH lenses are designed to keep your photos sharp and vibrant, even at the edges. Thanks to their smart curved glass, you get pro-level clarity and contrast in a compact lens that’s perfect for everyday shooting.
              </p>
            </div>


        </section>
        <section id="models">
          <iframe
            id="video"
            height="315"
            src="https://www.youtube.com/embed/JcPwDQXG9Go"
            frameborder="0"
            allowfullscreen
        
          ></iframe>
        </section>

        <section id="pricing" class="flex-container" >
          <div id="m3" class="product">
            <div class="level">Leica M3</div>
            <h2>£1700</h2>
            <ol>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum dolor.</li>
              <li>Lorem ipsum.</li>
            </ol>
            <button class="btn">Select</button>
          </div>
          <div class="product" id="m6">
            <div class="level">Leica M6</div>
            <h2>£2400</h2>
            <ol>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum dolor.</li>
              <li>Lorem ipsum.</li>
            </ol>
            <button class="btn">Select</button>
          </div>
          <div class="product" id="r6">
            <div class="level">Leica R6</div>
            <h2>£500</h2>
            <ol>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum.</li>
              <li>Lorem ipsum dolor.</li>
              <li>Lorem ipsum.</li>
            </ol>
            <button class="btn">Select</button>
          </div>

          
        </section>
            

        
      </div>
    </body>



.flex-container {
  display: flex;
  justify-content: space-around;
}

body {
  background-color:#9cc2ff;
  font-family:sans-serif;
}

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}



.logo {
  display: flex;
  align-items: center;
}



#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #bbd3fa;
  position: sticky; 
  top: 0;
  z-index: 1000; /* keeps it above other sections */
  border-bottom: 10px solid #9fb2d1;
  border-radius:5px
}



#header-img {
  width: 60px;  
  height: auto;
  border-radius: 8px;
  border: 10px solid black;
  
}

.shop-name {
  margin-left: 10px;
  font-size: 22px;
  font-weight: bold;
}


#nav-bar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

#nav-bar a {
  text-decoration: none;
  font-weight: bold;
  color: black;
}


Please start by testing your html with an html validator: Ready to check - Nu Html Checker

there are a few things to fix.

1 Like

okay thanks for the link!

  • It’s good practice to add meta tags in your head element for charset and viewport.
  • You have a lot of unused classes and ids in your code.
  • Consider adding an intro section at the top of the page.
  • Consider putting the email form in a footer element or a section at the bottom of the page with a blurb that says something like, “Please enter your email to sign up for our newsletter.” If you go with a footer, it would be cool to match the design of your header.
  • You do not need z-index in your #header selector.
  • Consider adding a * selector to remove default padding and margins and take full control of the spacing.
  • I’d love to see you add some style to those buttons and play a bit more with CSS grid and flex to get control of your features and pricing sections.

I had never heard of a Leica camera until I looked at your web page, so I googled it. It sounds like a high-end product that is sturdy, handcrafted, and long-lasting…so there should be plenty of marketing verbiage to put into an intro. Thank you for sharing. Good job!

1 Like

Thank you so much for taking the time out to give me such detailed feedback! Really appreciate the kind words!