Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              	<head>
		<!-- script for testing app -->
		<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

		<!-- Script to use Font Awesome 5 Icons -->
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">

	</head>

	<!-- header -->

	<header id="header">
	
	<div id="logo">
		<img id="header-img" src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" alt="Original Trombones Logo">
	</div>
	
	<nav id="nav-bar">
		<ul>
			<li><a class="nav-link features" href="#features">Features</a></li>
			<li><a class="nav-link how" href="#works">How it Works</a></li>
			<li><a class="nav-link pricing" href="#pricing">Pricing</a></li>
		</ul>
	</nav>
		
	</header>
	
	<!-- start of main content -->

<body>

<div id="page-wrapper">
	
	<main>
		
		<div id="hero">
		<h1>Handcrafted, home-made masterpieces</h1>
			<form id="form" method="GET" action="https://www.freecodecamp.com/email-submit">
				<h3>Sign up to our mailing list</h3><p>
				<input type="email" id="email" name="email" required placeholder="Enter your email">
				<input id="submit" type="submit">
			</form>
			</div>
	
				<!-- flex grid -->
		<section id="features">
		<div class="container">
			
			<div class="icon">
				<i class="fas fa-fire" style="font-size:48px;color:orange;"></i>
			</div>
			
			<div class="description">
				<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 class="icon">
				<i class="fas fa-truck" style="font-size:48px;color:orange;"></i>
			</div>
			
			<div class="description">
				<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 class="icon">
				<i class="fas fa-battery-full" style="font-size:48px;color:orange;"></i>
			</div>
		
			<div class="description">
				<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="works">
	<div>
		<h2>See how it works</h2>
		<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/y8Yv4pnO7qc?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
	</div>
</section>

<section id="pricing">
	<div class="price-table">
	
		<div class="tenor">
			<div class="type">Tenor Trombone</div>
		<h3>$600</h3>
		Lorem ipsum.<br>
Lorem ipsum.<br>
Lorem ipsum dolor.<br>
Lorem ipsum.<br>
	<button class="price-btn">Select</button>
		</div>
	
	<div class="bass">
		<div class="type">Bass Trombone</div>
	<h3>$900</h3>
Lorem ipsum.<br>
Lorem ipsum.<br>
	Lorem ipsum dolor.<br>
Lorem ipsum.<br>
	<button class="price-btn">Select</button>
		</div>
	
<div class="valve">
	<div class="type">Valve Trombone</div>
	<h3>$1200</h3>
Plays similar to a Trumpet<br>
Great for Jazz Bands<br>
Lorem ipsum dolor.<br>
Lorem ipsum.<br>
	<button class="price-btn">Select</button>
		</div>
		
		</div>
		</section>
		
	</main>
	
</div>
		
		</body>

<footer>
	
		<div id="nav-bar-footer">
		<ul>
			<li><a class="nav-link privacy" href="#">Privacy</a></li>
			<li><a class="nav-link terms" href="#">Terms and Conditions</a></li>
			<li><a class="nav-link contact" href="#">Contact</a></li>
			</ul>
	</div>	
	<span>Copyright 2019, Original Trombones</span>	
		</footer>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Lato:400,700';

body {
	background-color: #eee;
	font-family: 'Lato', sans-serif;
/* 	position: relative; */
}

a {
	color: black;
	text-decoration: underline;
}

a:hover {
	text-decoration: underline;
	color: orange;
}

/* header */

#header {
	top: 0px;
	min-height: 75px;
	position: sticky;
	background-color: grey;
	width: 100%;
	padding: 0px 20px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	z-index: 100;
	}
	
#header-img {
	width: 300px;
}
	
li {
	list-style: none;
}

ul {
	width: 35vw;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

/* hero heading */

#hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	}

h1 {
	margin-bottom: 5px;
}

input[type="email"] {
	max-width: 400px;
	width: 100%;
	padding: 5px;
	height: 30px;
}

input[type="submit"] {
	max-width: 200px;
	height: 30px;
	width: 100%;
	padding: 5px;
	background-color: orange;
	margin: 10px;
	border: 0;
}

/* main */

#page-wrapper {
	z-index: 0;
	max-width: 1000px;
	width: 100%;
	background-color: white;
	border-radius: 8px;
	margin: 0 auto;
	}

.container {
	width: 80%;
	display: grid;
	grid-template-columns: 30% 70%;
	margin-top: 5px;
	margin-bottom: 20px;
}

.icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.description {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 20px;
	}

h2 {
	padding: 0px;
	margin: 0px;
}

p {
	padding: 0px;
	margin: 0px;
}

/* See how it works section */

#works {
	margin: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 80px;
	}

#video {
	padding-top: 20px;
}

/* Pricing tables */

.price-table {
	width: 80%;
	display: grid;
	grid-template-columns: 33.3% 33.3% 33.3%;
/* 	margin-top: 5px;
	margin-bottom: 20px; */
	margin: 5px auto 20px auto;
	text-align: center;
	border-radius: 3px;
}

.type {
	background-color: #d3d3d3;
	padding: 15px;
	font-weight: bold;
	text-transform: uppercase;
}

.tenor, .bass, .valve {
	border: 1px solid black;
	border-radius: black;
	margin: 10px;
}

.price-btn {
	background-color: orange;
	border-radius: 4px;
	margin: 10px;
  border: 0px solid;
	height: 40px;
	width: 60%;
	font-size: 1em;
}

/* Footer  */

footer {
	min-height: 50px;
	background-color: light-grey;
	width: 100%;
	padding: 0px 20px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	z-index: 0;
	}

  span {
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    font-size: 0.9em;
    color: #444;
  }

/* media query */

@media only screen and (max-width: 600px) {
	
	#header {
    background-color: blue;
		flex-direction: column;
		padding: 20px;
		}	
	ul li {
		margin: 20px;
	}
	.price-table {
/* 	width: 80%;
	display: grid; */
	grid-template-columns: 100%;
/* 	margin: 5px auto 20px auto;
	text-align: center;
	border-radius: 3px; */
}
	#nav-bar-footer {
	background-color: light-grey;
	width: 80%;
	display: grid;
	}
  span {
    margin-top: 100px;
    font-size: 0.9em;
    color: #444;
		display: flex;
    justify-content: center;
  }
}
            
          
!
            
              // coded by @atjonathan
const projectName = 'product-landing-page';
localStorage.setItem('example_project', 'Product Landing Page');
// REPLACE CDN WITH GITCDN!!!
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console