Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- 

Hello Camper!

Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<div class="main">
     <header id="header">
     <div class="logo">
      <img 
           id="header-img"       alt="lespaul's logo"        src="https://upload.wikimedia.org/wikipedia/commons/b/b8/Gibson_LP_Classic.png" width="100" height="100"a/>
    </div>
  <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#features">Features</a></li>
        <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 class="form">
        <h2>Handcrafted, Homemade masterpieces</h2>
          <form id="form" action="https://www.freecodecamp.com/email-submit">
            <input type="email"
            placeholder="enter your email address"
            name="email"
                   id="email"
                   required/>
            <input id="submit" type="submit" value="Get started" class="btn"/>
          </form>
          </div>
  <div id="features">
    <div class="card">
      <div class="icon"><i class="fa fa-3x fa-fire"></i></div>
      <div class="content">
        <h2>Premium materials</h2>
        <p>
          Our guitars use the best wood which is source locally, This will increase the longetivity of your purchase.</p>
            </div>
      <div class="card">
      <div class="icon"><i class="fa fa-3x fa-truck"></i></div>
      <div class="content">
        <h2>Fast Shipping</h2>
        <p> We make sure you recieve your guitar as soon as we have finished
            making it. We also provide free returns if you are not satisfied.
          </p>
        </div>
        <div class="card">
          <div class="icon"><i class="fa fa-3x fa-battery-full"> </i></div>
        <div class="content">
        <h2>Quality Assurance</h2>
        <p> We make sure you recieve your guitar as soon as we have finished
            making it. We also provide free returns if you are not satisfied.
          </p>
          </div>
          <section id="how it works">
            <iframe
             id="video"
              <iframe width="800" height="315" src="https://www.youtube.com/embed/_XmF1zv39jc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 
    <div id="pricing"> 
      <div class="card">
        <h2>Electric Guitar</h2>
        <strong>$600</strong>
        <p>lorem ipsum</p>
          <p>Lorem ipsum.</p>
          <p>Lorem ipsum dolor.</p>
        <p>Lorem ipsum </p>
        <button>Select </button>
      </div>
          <div class="card">
        <h2>Semi Acoustic Guitar</h2>
        <strong>$900</strong>
        <p>lorem ipsum</p>
          <p>Lorem ipsum.</p>
          <p>Lorem ipsum dolor.</p>
        <p>Lorem ipsum </p>
        <button>Select </button>
        </div>
      <div class="card">
        <h2> Acoustic Guitar</h2>
        <strong>$1200</strong>
        <p>lorem ipsum</p>
          <p>Lorem ipsum.</p>
          <p>Lorem ipsum dolor.</p>
        <p>Lorem ipsum </p>
        <button classs="btn"> Select </button>
      </div>
      <footer>
        <ul>
          <li><a href="#">privacy</a>
             </li>
          <li><a href="#">Terms</a></li>
          <li><a href="#">contact</a></li> </ul>
        <p>copyright 2016,original LespaulGuitars</p>
      </footer>
  </div>
        </div>
              
            
!

CSS

              
                body
{font-family:"lato", sans-serif;
background-color:#eeeeee;
  
}
.main{
display:flex;
  flex-direction:column;
  max-width:1260px;
  margin:0 auto;
  padding:0 300px;
  position:relative;
  background-color:grey;
  border-radius:5px;
  
}
#header{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:1px 280px;
  position:fixed;
  left:0;
  right:0;
  top:0;
  background-color:white;
}

.logo{
  display:flex;
  margin:10px;  
}  
.logo-img{
  width:100%;
}
#nav-bar ul{
  text-align:center;
  padding:0;
}
#nav-bar ul li {
  display:block;
  margin-bottom:20px;
}
#nav-bar ul li a{
  color:black;
  font-size:20px;
  text-decoration:none;
}

.form{
  align-items:center;
  max-width:100%;
  display:flex;
  flex-direction:column;
  margin-top:200px;
}
.form form{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top:-5px;
   }
.form form input{
  display:block;
  text-align:center;
}
.form form input:first-child{
 width:300px;
background-color:white;
padding:5px;
 
  
}
.form form input:last-child{
 max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #f1c40f; 
  
}
.form>h2{
  margin-bottom:-20px;
}
#features
{
  max-width:100%;
  margin:0 auto;
  display:flex;
  flex-direction:row;
  justify-content:center;
  }
#features .card .icon{
  color:yellow;
}   

#how-it-works{
  max-width:100%;
  margin:50px auto;
}
#pricing{
   width;100%;
  display:flex;
  flex-direction:column;
}
#pricing .card{
  display:flex;
  flex-direction:column;
  margin:30px auto;
  margin-bottom:20px;
  border:2px solid #000;
  max-width:340px;
  width:120%;
  border-radius:4px;
  text-align:center;
  align-items:center;
  }
#pricing .card h2{background-color:grey;
  color:black;
  padding:9px;
  width:92%;
  text-transform:uppercase;
  font-weight:bold;
  margin:0;
  margin-bottom:25px; 
}
#pricing .card strong
{
  font-size:24px;
}
#pricing .card button
{
  border:0;
  margin-button:30px 0;
  margin:15px 0;
  background-color:yellow;
  border:none;
  border-radius:2px;
  font-size:24px;
  }
footer{
  padding:5px auto;
  margin-top:10px;
  text-align:center;
  background-color:#ddd;
  }
footer>ul{
  padding:0;
}
footer>ul li {
  display:inline;
}
footer >ul li:not(last-child){
  margin-right:10px;
}
footer >ul li a {
  color:#000;
  text-decoration:none;
}
@media(min-width:500px)
{
  #features .card .icon {display:block;
}
  #features .card .content{
    text-align:left;
  }
  @media (min-width:600px){
    flex-direction:row;
    left:5%;
    right:5%;
  }
  #nav-bar ul {
    width:190%;
    display:flex;
    justify-content:flex-end;
  }
  #nav-bar ul li{
    display:inline;
    margin-right:50px;
  }
  #nav-bar ul li:last-child{
    margin-right:0;
  }
  @media (min-width:800px)
    #pricing{
      flex-direction:row;
      align-self:center;
  }
  #pricing .card:not(last-child){
    
  


  

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console