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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<header id="header">
  <a id="back-to-top"></a>
  <a name="back-to-top"></a>
  <nav id="nav-bar">
    <img src="https://i.imgur.com/O5l1XTa.png?1" title="source: imgur.com" alt="logo" id="header-img" />
    <a href="#back-to-top" class="nav-link">Back to top</a>
    <a href="#reviews" class="nav-link">Reviews</a>
    <a href="#product" class="nav-link">Product</a>
  </nav>
  <div class="everything-not-a-nav"></div>
  <div id="first-scroll">
    <div class="text-contain">
      <h1 class = "margined">The
        best lemonade you'll ever taste.</h1><br>
      <h1 class = "margined">Guaranteed.</h1>
    </div>
  </div>

  <a id="product"></a>
  <div id="second-scroll">
    <div class="text-contain">
      <h1>Our fresh lemonade contains:</h1>
      <div class="ingredient-flexbox">
        <div><img src="https://www.chipotle.com/content/dam/chipotle/global-site-design/en/menu/ingredients/lemon-juice/grid/lemon@3x.png" id="lemon" alt="lemon">
          <p class="lato-paragraph" id="lemon-p"> Our lemonade is made from only the finest lemons from USDA certified organic, high quality farms. We wish that you will get the best experience possible from your drink.</p>
        </div>
        <div><img src="https://gamepedia.cursecdn.com/arksurvivalevolved_gamepedia/4/43/Cane_Sugar_%28Primitive_Plus%29.png" class="ingredient-image" alt="sugar">
          <p id="cane-sugar">Our sugar contains natural molasses which gives it a complex flavor and brown appearance. We only use organic sugar from the most trusted producers.</p>
        </div>
        <div><img src="https://geraniumodorant.com/wp-content/uploads/2016/04/scents-mint.png" alt="mint" class="ingredient-image">
          <p id="mint"> We source peppermint from the rolling hills and fertile soils of California, where it receives beautiful sunlight and develops a complex flavor.</p>
        </div>
      </div>

    </div>

  </div>
  <div id="third-scroll"><a id="reviews"></a>
    <div class="text-contain">
      <h1> Just look at these happy reviews!</h1>
      <div id="review-flexbox">
        <div><img src="https://content-static.upwork.com/uploads/2014/10/01073427/profilephoto1.jpg" alt=" A woman profile picture" class="profile-pic">
          <p>By @alice-miller <br><br>I give this 10/10. My 7-year-old daughter needed some lemonade for her party, but when I checked in the pantry, I noticed our lemons were moldy. In desperation, we bought lemonade from here. At first I was a bit suspicious
            about this, but after I had some, my doubts vanished. It was much better than what I could make. Please buy this!</p>
        </div>
        <div><img src="https://cdn.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png" alt="default profile" class="profile-pic">
          <p>By @the-human-potato<br><br>A solid 9/10 for me. One afternoon, I was really bored and did not know what to do. When an advertisement for lemonade, my favorite drink, came up on my phone, it looked promising. I clicked it and ordered a box of
            12 bottles. When it came, I was surprised by the good, fresh quality and minty taste. I will definitely recommend this.</div>
        <div><img src="https://i0.wp.com/zblogged.com/wp-content/uploads/2019/02/FakeDP.jpeg?resize=567%2C580&ssl=1" alt="a young man" class="profile-pic">
          <p>By @san-fran-stan<br><br>9.5/10; My buddies and I were going hiking and we were hot, sweaty and thirsty. We sat on top of a rock when suddenly, my buddy @jerome-13 pulls out bottles of the lemonade. The mintiness immediately hit me, and the
            complex, sweet flavor just complemented it. I definitely recommend this drink.</p>
        </div>
      </div>
    </div>
  </div>
  <div id="fourth-scroll">
    <div class="text-contain">
      <h1>How about we show you a lemonade recipe video to tide you over?</h1><iframe id="video" src="https://www.youtube-nocookie.com/embed/MbCAiWBhAjo" allowfullscreen></iframe>
    </div>
  </div>
  <div id="fifth-scroll">
    <div class="text-contain">
      <div class = "center">
      <h1>Interested? Type email here.</h1>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input name="email" id="email" type="email" placeholder="Enter your email address" required />
        <input id="submit" type="submit" value="Let's go!" class="btn" />
      </form>
    </div>
    </div>
  </div>
              
            
!

CSS

              
                body {
  font-family: Montserrat, sans-serif;
  margin: 0px;
}
@media (max-width: 800px) {
  body {
    background-position: center;
  }
}
#nav-bar {
  text-decoration: none;
  background-color: white;
  width: 100%;
  z-index: 1;
  margin-top: 0px;
  position: fixed;
}
#nav-bar a {
  text-decoration: none;
  color: black;
  float: right;
  padding: 25px 22px;
  z-index: 3;
  background-color: white;
}
#nav-bar a:hover {
  background-color: lightgray;
}
img {
  height: 48px;
}

#navbar {
  position: fixed;
  width: 100%;
  top: 0;
}
.everything-not-a-nav {
  padding-top: 48px;
}
#first-scroll {
  background-color: white;
  background-image: url(https://i0.wp.com/images-prod.healthline.com/hlcmsresource/images/AN_images/lemon-health-benefits-1296x728-feature.jpg?w=1155&h=1528);
  padding: 40px;
  height: 100vh;
}
.text-contain {
  background-color: white;
  padding: 30px;
  margin: auto;
  height: 80%;
  box-shadow: #555555 0.3em 0.3em 1em;
}
.text-contain h1 {
 line-height: calc(40vh);
  font-size: 40px;
}
@media (min-height: 600px) {
  font-size: 80px;
}
}
.yellow {
  color: yellow;
  display: inline;
  animation-name: yellow;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
@keyframes yellow {
  0% {
    color: yellow;
  }
  50% {
    color: rgb(180, 255, 40);
  }
  100% {
    color: yellow;
  }
}
#second-scroll {
  background-color: white;
  background-image: url(https://assets.simplyrecipes.com/wp-content/uploads/2006/06/lemonade-640-dm.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px;

}
@media (min-height: 600px) {
  height: 100vh;
}
.ingredient-flexbox {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-between;
  width: calc(100vw - 80px);
}
.ingredient-flexbox > div {
  width: 23%;
  padding: 10px;
  background-color: rgb(245, 245, 245);
  margin: 3%;
  box-shadow: 5px 7px 10px #c8c8c8;
}
#lemon {
  width: 100%;
  height: auto;
  margin: auto;
  margin-top: -10px;
}

.ingredient-image {
  width: 100%;
  height: auto;
  margin: auto;
}
#lemon-p {
  margin-top: -30px;
}
#cane-sugar {
  margin-top: -30px;
}
#mint {
  margin-top: -20px;
}
p {
  font-size: 80%;
}
@media (max-width: 700px) {
  .ingredient-flexbox {
    flex-direction: column;
  }
  .ingredient-flexbox > div {
    width: 70%;
    margin: auto;
    margin-bottom: 15px;
  }
  .ingredient-image {
    width: 50%;
    height: auto;
    margin: auto;
  }

  #lemon {
    width: 50%;
    height: auto;
    margin: auto;
  }
  p {
    font-size: 12pt;
  }
  #nav-bar > a {
    width: 100%;
    display: block;
    text-align: center;
    position: relative;
  }
  #nav-bar {
    position: relative;
  }
  .everything-not-a-nav {
    padding-top: 260px;
  }
  h1 {
    font-size: 24px;
  }
}
#third-scroll {
  background-color: white;
  background-image: url(https://sosweetpartyshop.com/wp-content/uploads/2018/05/lemonade-and-sunshine-lemon-circles-table-confetti-drink-labels-party-decorations-you-are-my-sunshine-pink-lemonade-party-set-of-12-5b017c96.jpg);
  padding: 40px;
}
#review-flexbox {
  display: flex;
  flex-direction: column;
}
#review-flexbox > div {
  width: 80%;
  padding: 10px;
  background-color: rgb(245, 245, 245);
  margin: 3%;
  box-shadow: 5px 7px 10px #c8c8c8;
}
.profile-pic {
  height: 60px;
  float: left;
  border-radius: 50%;
  margin-right: 2%;
}
#fourth-scroll {
  background-color: white;
  background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcStaAPhWlZAOOyER_WJ4PoHh_SFZcIJtLVu8bdtroACjwN14NOs);
  padding: 40px;
  background-repeat: no-repeat;
  background-size: cover;
}
iframe {
  width: 60vw;
  margin: auto;
  height: 40vw;
}
#fifth-scroll {
  background-image: url(
    https://assets.bonappetit.com/photos/57ace0f51b334044149752a2/16:9/w_1000,
    c_limit/LEMONADE.jpg
  );
  padding: 40px;
  background-repeat: no-repeat;
  background-size: cover;
}

#email {
  font-family: Lato, sans-serif;
  height: 30px;
  padding: 0px 10px;
  width: 160px;
}
#submit {
  display: block;
  background-color: rgb(255, 255, 0);
  width: 80px;
  height: 40px;
  
  margin: 10px auto;
  border: 0px;
  border-bottom: 10px solid rgb(210, 210, 0);
}
@keyframes submit {
  0% {border-bottom: 100%;}
  100% {border-bottom: 0px; background-color: rgb(200, 220, 0);}
}
#submit:hover {
  animation-name: submit;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
    border-bottom: 10px solid rgb(210, 210, 0);
}
.center {
  text-align: center;
}
.margined {
  margin-left: 2em;
  font-size: 3em;
  height: 1em;
}
/*If you read through all of this css, you're great. Comment please!*/
              
            
!

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