Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
I don’t know how to solve this
Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element’s id. e.g. #footer ).

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>product landing page</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
     <link rel="stylesheet" href="styles.css">
    </head>
  <body>
      <div class="bg"id="page-wrapper">
        <header id="header">Original Trombones
        <img id="header-img" src="https://cdn-icons-png.flaticon.com/512/143/143669.png" alt="cdn-icons" width="30" height="20">
      <nav id="nav-bar">
        <ul>
          <li  ><a class="nav-link" href="https://product-landing-page.freecodecamp.rocks/#Features" >Features
        </a>
  
    <li><a class="nav-link"href="#How_it_works">How It Works</a></li>
   <li ><a class="nav-link" href="#Pricing">Pricing</a></li>
   </ul>
   </nav> 
      </header>
      
      </div>
     
      <div class="container"></div>
      <section id="hero">
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <h1 class="title">Handcrafted, home-made masterpieces</h1>
           <input name="email" type="email" id="email" placeholder="Enter your email address">
         <input  id="submit" type="submit" value="Get Started">
        </form>
        </section>
        <div class="container">
          <section id="Features">
            <div class="grid">
              <div class="icon">
                <i class="fa fa-fire" aria-hidden="true"></i>
               </div>
               <div class="desc">
                 <h2>Premium Materials</h2>
                 <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.<p>
         </div>
         </div>
         <div class="grid">
           <div class="icon">
             <i class="fa fa-truck" aria-hidden="true"></i>
             </div>
             <div class="desc">
                 <h2>Fast Shipping</h2>
                 <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
                 </div>
                 </div>
                 <div class="grid">
                   <div class="icon">
      <i class="fa fa-battery-full" aria-hidden="true"></i>
      </div>
      <div class="desc">
        <h2>Quality Assurance</h2>
        <p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument</p>
        </div>
        </div>
        </section>
        <section id="How_it_works">
          <iframe id="video" height="315" src="https://www.youtube-nocookie.com/embed/y8Yv4pnO7qc?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen=""></iframe>
          </section>
          <section id="Pricing" >
            <div id="tenor">
              <div class="level">Tenor Trombone</div>
              <h2>$600</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 id="bass">
              <div class="level">Bass Trembone</div>
              <h2>$900</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="value">
              <div class="level">Value Trembone</div>
              <h2>$1200</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>
            <footer>
              <ul>
                <li><a href="#">Privarcy</a></li>
                <li><a href="#">Terms</a></li>
                <li><a href="#">Contact</a></li>
                </ul>
                <span>Copy right 2016,Original Trombons</span>
                </footer>
                </div>
                </div>
      </body>
      </html>
* {
  background-color: lightgrey;
}
#nav-bar{
  position:fixed;
  top:0;

}

h2, p {
  font-family: 'Raleway', sans-serif;
}
a {
  text-decoration: none;
  color: purple;
}
#hero {
  grid-column: 1 / -1;
  position: relative;
  text-align: center;
}
header {
justify-content: flex-end;
position: positioned;
display: flex;
flex-direction: row;
flex-wrap: none;
width: 100%;
top: 0;
left: 0;
  padding: 1em;

}
ul{
  margin:0;
  padding:0;
  list-style:none;
}

ul li{
  float:left;
  text-align:canter;
  margin-left:25
}
@media only screen and (max-width: 720px) {
 #page-wrapper{
   background-color: #333;
  overflow: hidden;

 }
  i {
    color: white;
  }
  #submit {
    background-color: white;
  }
  input {
    font-weight: bold;
    font-size: 15;
  }
}
.grid{
  display:flex;
}

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

I don’t think the tests are going to accept this one. The link needs to go to an id on your page, not on another page.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.