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>

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">

<!-- Header & Nav Bar-->

<div>
  <header id="header">
    <div class="logo">
      <img id="header-img" src="https://cdn.shopify.com/s/files/1/1500/2678/files/barista-icons_espresso-machine-alternative_2x_6796778a-76d0-4aad-b4f4-a7d7eeb237ed_large.png?v=1489541180" alt="Coffee Logo">
    </div>
    
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#About">About</a></li>
        <li><a class="nav-link" href="#coffee-video">Coffee</a></li>
        <li><a class="nav-link" href="#buy">Store</a></li>
      </ul>
    </nav>
  </header>
  
  <div>
    <section id=mail >
      <h2 id="coffee-heading">Green Coffee Roasters</h2>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input name="email" id="email" type="email" placeholder="Enter your email address" required></form>    
        <form id="form"><input id="submit" type="submit" value="Learn More" class="btn">
      </form>
    </section>
    
    <div class="container">
      <section id="About">
        <div class="grid">
          <div class="icon">
            <i class="fas fa-coffee fa-3x">
            </i>
          </div>
          
          <div class="desc">
            <h2>About</h2>
            <p>Our coffee is craft roasted in small batches to guarantee our customers the freshest coffee possible. We use roast profile technology to ensure consistency of every roast, every day.</p>
          </div>
        </div>
        
        <div class="grid">
          <div class="icon">
            <i class="fas fa-book fa-3x">
            </i>
          </div>
          <div class="desc">
            <h2>Our Coffee</h2>
            <p>Coffees come in half pound or one pound bags, are 100% Arabica and are some of the finest coffees in the world.</p>
          </div>
        </div>
        
        <div class="grid">
          <div class="icon">
            <i class="fa fa-3x fa-truck"></i>
          </div>
          <div class="desc">
            <h2>Shipping</h2>
            <p>Our coffees are packaged in nitrogen flushed, vacuum sealed one-way valve bags within hours of roasting. We roast to order as much as humanly possible and never ship coffee that’s been roasted more than five days prior to your order shipping date.</p>
          </div>
        </div>
      </section>
      
      <section id="coffee-video">
        <iframe id="video" width="560"  height="315" src="https://www.youtube.com/embed/-eGHUPOjMts" frameborder="0" >
        </iframe>
      </section>
      
      <section id="buy">
        <div id="single-origin">
          <div class="level">
            Single Origin Colombia
          </div>
          <h2>$19.99</h2>
          <ol>
            <li>Citrus</li>
            <li>Balance</li>
            <li>Spice</li>
          </ol>
          <button class="button">Buy</button>
        </div>
        <div id="espresso">
          <div class="level">
            Espresso Blend
          </div>
          <h2>$14.99</h2>
          <ol>
            <li>Intense</li>
            <li>Chocolate</li>
            <li>Floral</li>
          </ol>
          <button class="button">Buy</button>
        </div>
        <div id="Ethiopia">
          <div class="level">
             Washed Ethiopia
          </div>
          <h2>$19.99</h2>
          <ol>
            <li>Floral</li>
            <li>Clean</li>
            <li>Black Tea</li>
          </ol>
          <button class="button">Buy</button>
        </div>
      </section>
    </div>
  </div>
  
  
  <footer>MyCoffeeCo</footer>
</div>
              
            
!

CSS

              
                /* GOOGLE FONT*/

@import url('https://fonts.googleapis.com/css?family=Righteous');

body{
  font-family: 'Righteous', cursive;
  background-color: #ffffff;
  margin: 0 auto;
  font-weight: 400; 
  color: #000000;
}

/* HEADER & NAV BAR */

nav{
  display: flex;
  width: 40rem;
  flex-direction: row;
}

nav ul{
  display: flex;
  margin: 0 auto;
}

nav ul li{
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  pading-left: 1em;
  padding-right: 2em;
}

nav ul li a{
  color: #000000;
  text-decoration: none;
}

nav ul li a:hover{
  text-shadow: -7px 0px 4px #414044;  
}

/* HEADER */
#header{
  position: fixed;
  background-color: #ffff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  top:0;
}

#header-img{
  display: block;
  height: 50px;
  margin-left: 50px;
}

/* LINKS */
#About{
  margin-top: 0em;
  background-image: url(#);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#mail{
  background-image: url("https://images.unsplash.com/photo-1536319229365-83318cdc7b83?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80");
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#coffee-heading{
  font-size: 5rem;
  padding-top: 25rem;
  padding-bottom:10rem;
  height: 4rem;
  text-align: center;
}

#submit{
  margin-bottom: 5rem;
}

input[type="email"] {
  display: flex;
  flex-direction: column;
  width: 9.5rem;
  padding: 0.625rem 3.125rem;
  border: 0.1rem solid #c09f80;
  border-radius: 0.3rem;
  cursor: pointer;
  color: #565656;
  font-family: 'Righteous', cursive;
  margin-top: 10em;
}

input[type="submit"] {
  height: 3.1rem;
  width: 8.5rem;
  background-color: #ffffff;
  border: 0.1rem solid #c09f80;
  border-radius: 0.8rem;
  font-weight: 900;
  font-family: 'Righteous', cursive;
  color: #76323f;
  margin-top: 1rem;
  text-transform: uppercase;
}
  
/* FEATURES */

.container{
  width: 100%;
  max-width:1000px;
  margin: 0 auto;
}

.grid{
  display: flex;
  text-align: center;
}
.desc{
  display:flex;
  flex-direction: column;
  align-items:center;
  height: 125px;
  width: 80vw;
  padding: 5px;
  margin-top: 0em;
}

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

/* VIDEO */

#coffee-video {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin-bottom: 5rem;
}

/* STORE */

#buy{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: center;
  }
  
#single-origin, #espresso, #Ethiopia {
    display: flex;
    flex-direction:column;
    align-items:center;
    text-align: center;
    margin: 30px;
    border: 3px solid #000000;
    border-radius: 10px;
    padding: 3px;
    width: calc(100%  / 3);
}

.level {
      background-color: #ddd;
      color: black;
      padding: 15px 0;
      width: 100%;
      text-transform: uppercase;
    }
    
    h2 {
      margin-top: 20px;
    }

button{
      border: 0;
      margin: 15px 0;
      padding: 16px 31px;
      border-radius: 28px;
      background-color: #f1c40f;
      font-size: 18px;
      font-weight: 400;
}

button:hover{
  cursor: pointer;
  background-color:#d1990c;
  transition: 0.8s; 
}
/* MEDIA QUIERES */

@media (max-width: 1000px) {
  nav  ul {
    flex-wrap: wrap;
  }
              
            
!

JS

              
                
              
            
!
999px

Console