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

              
                <html lang="en" >

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Product Landing Page</title>
  
    <link rel="stylesheet" href="css/style.css">
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>  
    
</head>
<body>

  <main>
  <!-- Header and nav bar --> 
  <header id="header">
     <div id="brand">
        <img id="header-img" src="http://res.cloudinary.com/stevec23/image/upload/v1531154764/Music-Trombone-icon.png" > 
        <p>Original&nbspTrombones</p>
     </div> 
     <nav id="nav-bar">
      <ul>
        <li> <a class="nav-link" href="#features-link"> Features</a></li>
        <li> <a class="nav-link" href="#demo-link"> Demo&nbspvideo</a></li>
        <li> <a class="nav-link" href="#pricing-link"> Pricing</a></li>
      </ul>
     </nav>
   </header> 
  
  <!-- form --> 
  <form id="form" action=" https://www.freecodecamp.com/email-submit" method="get" >
    
    <div id="form-fields">
          
    <p id="description">Handcrafted, home&#8209made masterpieces</p>
    
    
    <input type="email" id="email" name="email" size="33" placeholder="Enter your email" required />
                  
 <!-- Submit Button -->
   <input type="submit" id="submit" value="Get Started">
   
   </div>
  
  </form>
  
   <!-- Features -->
  <div id="features">
    <a class="anchor" id="features-link"></a>
    <div id="premium">
    <img  id="premium-img" src="http://res.cloudinary.com/stevec23/image/upload/v1531389469/premium_2.png">
        <div id="premium-text">
          <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 id="shipping">
    <img  id="shipping-img" src="http://res.cloudinary.com/stevec23/image/upload/v1531389748/fast_delivery.jpg">
        <div id="shipping-text">
          <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 id="quality">
    <img  id="quality-img" src="http://res.cloudinary.com/stevec23/image/upload/v1531389469/QA_icon.png">
        <div id="quality-text">
          <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>
    
  </div>
   

  <div id="demo-video">
    <a class="anchor" id="demo-link"></a>
      <h2 id="demo-text">
        Trombones in action  
      </h2>
      <iframe id="video" src="https://www.youtube.com/embed/ybBWwvdcDgI?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  </div>

  <div id="pricing-container">
    <div class="pricing-div">
        <h2 class="price-heading">
          Tenor Trombone
        </h2>   
        <h2 class="price">
          $600
        </h2> 
        <p class="price-text">Great value!</p>
        <p class="price-text">Perfect for beginners</p>
        <p class="price-text">Impress all your friends at parties</p>
        <p class="price-text">Start your journey now!</p>
        <button id="tenor-btn" class="price-button" type="button">Select</button>

    </div>
    <div class="pricing-div">
      <a class="anchor" id="pricing-link"></a>
        <h2 class="price-heading">
          Bass Trombone
        </h2>   
        <h2 class="price">
          $900
        </h2> 
        <p class="price-text">Fantastic value at this price!</p>
        <p class="price-text">For the coolest trombonist</p>
        <p class="price-text">Get those bass notes you've dreamed of</p>
        <p class="price-text">Play those weddings now!</p>
        <button id="tenor-btn" class="price-button" type="button">Select</button>

    </div>


    <div class="pricing-div">
        <h2 class="price-heading">
          Valve Trombone
        </h2>   
        <h2 class="price">
          $1200
        </h2> 
        <p class="price-text">Best value!</p>
        <p class="price-text">For the discerning musician</p>
        <p class="price-text">Orchestra class instrument</p>
        <p class="price-text">Add this fine piece to your collection now!</p>
        <button id="tenor-btn" class="price-button" type="button">Select</button>

    </div>
     
  </div>

  <!-- Footer -->
  <footer id="footer"> 
    <div class="footer-links">
    <a href="#"> Privacy</a>
    <a href="#"> Terms</a>
    <a href="#"> Contact</a>
    </div>
    <p id="copyright">
      Copyright Original Trombones 2018
    </p>
  </footer>
  
  
</main>
</body>

</html>


              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Ubuntu:300');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:900')
@import url('https://fonts.googleapis.com/css?family=Heebo:900');

body {
  
	font-family: 'Ubuntu', sans-serif;
	width: 100%;
	background-color: #dae0e6;
	margin: 0; 
  
  	}
main
{
	width: 100%;
	margin: 0 auto;
}


/* brand and nav bar*/
header {
	position: sticky;
	top: 0;
	background-color: #eeeeef;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav  {
	display: flex;
	justify-content: space-between;
	align-items: center;
	
}
nav ul {
	display: flex;
	list-style-type: none; /* remove bullets*/
	padding: 0;
	align-self: flex-end;
	

}

nav a {
	text-decoration: none; /* remove underline*/
	padding: 0.3em 0.5em 0.3em 0.5em;
	display: inline-block;
	color: black;
}

nav a:hover {
	background-color: #a9d9d9;
	

} 

#brand {
	justify-content: space-between;
	padding: 0;
	display: flex;
	align-items: center;
	}

#header-img {
	vertical-align: middle;
	margin: 0 10px 0 10px;

}

#brand p{
	font-size: 2em;
	font-family: 'Playfair Display', serif;
	margin: 15px 15px 15px 0;
	color: green;
}

/* anchor offset for internal jumps*/
a.anchor {
    display: block;
    position: relative;
    top: -75px;
    visibility: hidden;
}

/* form*/

#form {
	margin-top: 50px;
}

#form-fields {
	width: 70%;
	margin: auto;
	text-align: center;

}
#description {
	font-weight: bold;
	font-size: 1.5em;
	font-family: 'Heebo', sans-serif;
	}

#email {
	margin-bottom: 10px;
	border-radius: 4px;
}

#submit, .price-button {
	display: block;
	margin: auto;
	padding: 0.5rem 1.5rem 0.5rem 1.5rem;
	color: white;
	background-color: #50b5e4;
	border-radius: 10px;
	border-style: none;
	margin-bottom: 50px;

}

/* features*/
#features {
	width: 70%;
	margin: auto;
	margin-top: 5px;
}
#premium, #shipping, #quality {
	display: flex;
	justify-content: space-between;
	
}

#features img {
	width: 48px;
	height: 48px;
}

#premium-text, #shipping-text, #quality-text {
	width: 85%;
	text-align: left;
	margin-left: 20px;

}

#premium h2, #shipping h2, #quality h2 {
	margin-top: 0;
	font-family: 'Heebo', sans-serif;
}


/* trombone video*/
#demo-video {
	text-align: center;

}
#demo-text  {
	margin-top: 50px;
	font-family: 'Heebo', sans-serif;
}
iframe {
	display: block;
	height:30vw;
	margin: auto;
}

/* pricing*/
#pricing-container {
	display: flex;
	justify-content: space-around;

}

.pricing-div {
	margin: 4vw;
	border: black 1px solid;
	width: 30%;
	text-align: center; 

}

.price-heading {
	background-color: lightgray;
	margin: 0;
	padding: 15px;
}

.price  {
	font-weight: bold;
	color: green;
}

/* footer*/

#footer {
	text-align: right;
	background-color: #eeeeef;
	margin-top: 40px;
	padding-top: 10px;
	padding-right: 5vw;
	font-size: 0.75em;

}

#footer a {
	text-decoration: none;
	color: black;
	padding: 0 10px 0 10px;

}

#copyright {
	margin: 5px 0 0 0; 
	padding: 0 0 10px 0;
}

/* breakpoint medium screen */

@media screen and (max-width: 720px) {
	
	nav ul {
		flex-direction: column;
		align-items: center;

	}
	nav a {
		padding: 0.2em;
			}

#brand img {
	height: 75%;
	width: 75%;
}

#brand p{
	font-size: 1.7em;
	margin: 1rem 0 1rem 0;
	color: green;
}

	#pricing-container  {
		flex-direction: column;
		align-items: center;
		}
	
	.pricing-div {
		width: 50vw;
	}

}

/* breakpoint small screen */
@media screen and (max-width: 480px) {
		header {
		flex-direction: column;
		align-items: center;
		
	}
		
	nav ul {
		margin: auto;
	}

	#brand p {
		font-size: 1.5em;
	}

	#description {
		font-size: 1.2em;
	}

	input {

	}

	#premium-img, #shipping-img, #quality-img {
		display: none;
	}

	#premium-text, #shipping-text, #quality-text {
		text-align: center;
		margin: auto;
		font-size: 0.90em;
	}

iframe {
	height:60vw;
	width: 90vw;
	
}
	
.pricing-div {
		width: 80vw;
	}

}




              
            
!

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