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

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

<!DOCTYPE html>
<html>

<body>
  <header id="header">
    <div class="nav-menu">
      <!--Page's Top Nav Menu-->
      <nav id="nav-bar">
        <img id="header-img" src="https://img.icons8.com/plasticine/100/000000/matcha-tea.png" alt="matcha tea cup logo">
        <ul class="nav-list">
          <li><a class="nav-link" href="#about-matcha">About Matcha</a></li>
          <li><a class="nav-link" href="#benefits-matcha">Benefits</a></li>
        <!--Benefits of Matcha-->
          <li><a class="nav-link" href="#video"> Using Matcha</a></li>
        <!--How to use Matcha-->
          <li><a class="nav-link" href="#buy-matcha">Buy</a></li>
        </ul>
      </nav>
    </div>
  </header>
  <div class="background-matcha white-text">
    <!--Background Matcha picture with text-->
    <p class="h1-header">Match A Matcha</p>
    <p class="organic-matcha"><strong>THE BEST ORGANIC MATCHA AVAILABLE</strong></p>
  </div>
  <div> <!--About Matcha-->
    <h2 id="about-matcha">What is Matcha?</h2>
    <p class="matcha-paragraph"><strong>Matcha is another form of green tea. However, instead of the traditional method of seeping tea leaves, Matcha tea is simply green tea leaves ground up which turns into a powder. Since Matcha is a powder, you can also add it to anything you want while cooking.</strong></p>
    <p class="matcha-paragraph-two matcha-paragraph"><strong>Matcha tea leaves are grown until there are a few weeks left before they are harvested and are then covered with shade. This method causes the leaves to turn a darker shade of green and also increases it's health benefits. Only the best tea leaves are handpicked to make Matcha.</strong></p>
  </div>
  
  <div id="benefits-matcha" class="benefits">
    
    <!--Benefits of Matcha-->
    <h3 class="h3-background">Benefits of Matcha</h3>
    <ul class="benefits-list">
      <li class="benefit-list-items">High Amounts Of Antioxidants</li>
      <li class="benefit-list-items">Great For Your Skin</li>
      <li class="benefit-list-items">Can Help Arthritis</li>
      <li class="benefit-list-items">Reduces Inflammation</li>
      <li class="benefit-list-items">Supports Heart Health</li>
    </ul> 
  </div>
  </div>
  <div class="pink-background">
  <div  class="matcha-video-back">
    <iframe class="matcha-video" id="video" width="560" height="315" src="https://www.youtube.com/embed/yQ5TfiTYpaI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>
  <div id="buy-matcha" class="buy"><!--Buy Matcha-->
    <div class="culinary-grade grade-box">
      <p class="buy-grades"><strong>Culinary Grade</strong></p>
      <p class="buy-prices"> $9/Ounce </p>
      <ul class="grade-list">
        <li class="grade-items">More Bitter Than Ceremonial Grade</li>
        <li class="grade-items">Great For Desserts, Lattes, Baked Goods, etc</li>
        <li class="grade-items">Duller Green Compared To Ceremonial</li>
        <li class="grade-items">Great To See If You Like The Taste Of Matcha</li>
      </ul>
      <button name="select-button" class="select-button" type="submit">Select</button>
    </div>
    <div class="ceremonial-grade grade-box">
      <p class="buy-grades"><strong>Ceremonial Grade</strong></p>
      <p class="buy-prices"> $24/ounce </p>
      <ul class="grade-list">
        <li class="grade-items">Used For Making Pure Matcha Tea</li>
        <li class="grade-items">Taste Is Less Bitter Compared to Culinary Grade</li>
        <li class="grade-items">Smoother Texture and Flavor</li>
        <li class="grade-items">Powder is a Brighter Green</li>
      </ul>
      <button name="select-button" class="select-button" type="submit">Select</button>
    </div>
    
    <div class="matcha-kit grade-box">
      <p class="buy-grades"><strong>Matcha Starter Kit</strong></p>
      <p class="buy-prices">$30</p>
      <ul class="grade-list">
        <li class="grade-items">Get 1 Ounce of Both Grades Of Matcha</li>
        <li class="grade-items">Comes With Free Traditional Matcha Whisk</li>
        <li class="grade-items">Great If You Want The Full Matcha Experience</li>
      </ul>
      <button name="select-button" class="select-button" type="submit">Select</button>
    </div>
  </div>
  </div>
  <div class="email-form">
    <!--Email Form-->
    <p><strong>Find your Matcha Match today</strong></p>
    <form id="form" action= "https://www.freecodecamp.com/email-submit">
      <input name="email" id="email" type="email" placeholder="Enter your email address">
      <input class="submit-button" id="submit" type="submit">
      
    </form>
  </div>
  </div>
  </div>
</body>
<footer class="footer">
  <p class="end">Created by ConnieQ</p>
</footer>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Open+Sans");
@import url("https://fonts.googleapis.com/css?family=Pacifico");
@import url('https://fonts.googleapis.com/css?family=Lobster');
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.h1-header {
  font-size: 60px;
  text-align: center; 
  padding-top: 10%;
}
h2{
  text-align: center;
  font-size: 40px;
}
h3{
  text-align: center;
  font-size: 60px;
  margin-top: 100px;
  color: #ffffff;
  font-family: Lobster, sans-serif;
}
header{
  display: block;
}
.white-text {
  color: #ffffff;
}
.nav-menu {
  display: block;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  position: fixed;
  width: 100%;
  margin: -60px 0px;
}
.nav-list{
  list-style:none;
  display: flex;
  justify-content: flex-end;
  margin-top: -50px;
}
.nav-link {
  text-decoration: none;
  color: black;
  padding: 3em;
}
.background-matcha {
  background: url(http://i66.tinypic.com/vz7k37.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /*padding: 200px;*/
  max-width: 100%;
  height: 50%;
  
  
}
.organic-matcha{
  font-size: 27px;
  text-align: center;
  padding-bottom: 10%;
}
.matcha-paragraph{
  width: 800px;
  margin: auto;
  font-size: 20px;
}
.matcha-paragraph-two{
  margin-top: 20px;
}
.benefits-div{
  display: flex;
  flex-direction: row;
}
.second-img{
  width: 50%;
  height: 120%;
  margin-top: 90px;
}
.benefits{
  display: flex;
  flex-direction: column;
  background: url(http://i64.tinypic.com/4j4xuu.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 100px;
  height: 600px;
}

.benefits-list{
 margin: auto;
 margin-top: -10px;
 color: #ffffff;
 list-style: none;
 font-family: Lobster, sans-serif;
}
.benefit-list-items{
  padding: 5px;
  font-size: 30px;
}
.matcha-video{
  padding-top: 200px;
  display: block;
  margin: auto;
}
.matcha-video-back{
  margin: -15px;
}
.pink-background{
  background-color: #d99b77;
  
}
.buy{
  margin-top: 100px;
  display: flex;
  justify-content: center;
  padding-top: 30px;
  
}
.buy-grades{
  font-size: 20px;
}
.buy-prices{
  font-size: 23px;
  
}
.grade-box{
  border-color: black;
  border-style: solid;
  border-width: 1px;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 10px;
}
.grade-list{
  margin-top: -10px;
  margin-bottom: 20px;
}
.grade-items{
  list-style: none;
  padding-right: 30px;
  margin-top: 15px;
}

.select-button{
  width: 30%;
  height: 40px;
  margin: auto;
  margin-bottom: 10px;
  background-color: #69bf64;
  border-style: solid;
  border-color: none;
  border-width: 0px;
}
.email-form {
  text-align: center;
  font-size: 25px;
}
.submit-button {
  display: block;
  margin: auto;
  margin-top: 20px;
  height: 30px;
  width: 100px;
  background-color: #69bf64;
  border-style: solid;
  border-color: #d3d3d3;
  border-width: 1px;
}
.footer{
  background-color: rgba( 0, 0, 0, .15);
  margin-top: 40px;
}
.end{
  padding: 20px;
  text-align: center;
}

#email {
  height: 20px;
  width: 250px;
}
#about-matcha{
  padding-top: 90px;
}
@media screen and (max-width: 600px) {
  .background-matcha{
     padding-top: 100%;
  }
  .h1-header{ 
    font-size: 10vw;
    width: 100%;
    min-width: 80%;
    /*margin-left: -250px;*/
    padding-top: 0;
    top: 30%;
    position: absolute;
  }
  header{
    width: 95%;
  }
  .organic-matcha{
    display: block;
    text-align: center;
    font-size: 5vw;
    margin-left: 5%;
    position: absolute;
    top: 55%;
  }
  .nav-menu{
    position: fixed;
    height: 30%;
    display: flex;
    z-index: 1;
  }
 #header-img{
   margin-top: 30px;
   height:30%;
   width: 15%;
   
  }
  .nav-list{
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: column;
    display: inline-block;
    margin-top: 20%;
    margin-left: 30px;
    height: 3%;
    font-size: 4vw;
  }
  .nav-link{
    width: 100%;
    padding: 3px;
  }
  
 
  .background-matcha{
    background: url(http://i66.tinypic.com/vz7k37.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 100%;
    display: inline-block;
    height: auto;
    margin-top: -10%;
    position: relative;
    top: 100px;
  }
  .matcha-video{
    width: 90%;
    margin: auto;
  }
  .matcha-paragraph{
    width: 90%;
  }
  .buy{
    display: flex;
    flex-direction: column;
  }
  #about-matcha{
    padding-top: 70%;
    display: block;
  }
}
@media screen and (max-width: 467px) {
  h1{ 
    /*margin-left: -170px;*/
    font-size: 10 vw;
    text-align: center;
  }
  .background-matcha{
    background: url(http://i66.tinypic.com/vz7k37.jpg);
    background-size: 170%;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -150px;
  }
  .organic-matcha{
      /*margin-left: -170px;*/
    text-align: center;
    font-size: 5 vw;
  }
  #about-matcha{
    margin-top: 5px;
    width: 100%;
  }
}
@media screen and (max-width: 319px) {
  .background-matcha{
    background: url(http://i66.tinypic.com/vz7k37.jpg);
    background-size: 90%;
    background-width: 320px;
}
 
              
            
!

JS

              
                
              
            
!
999px

Console