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>

<header id="header">
  <img src="https://i.postimg.cc/h4HBdHJQ/logo.png" id="header-img" alt="Burger Party logo">
  <nav id="nav-bar">
    <a href="#packages" class="nav-link">Packages</a>
    <a href="#order" class="nav-link">Order</a>
    <a href="#newsletter" class="nav-link">Subscribe</a>
  </nav>
</header>

<main>
  <div class="intro">
    <h1>Burger Party</h1>
    <p>Because it's not a party unless it's a burger party.</p><br>
    <iframe id="video" width="400" height="300" src="https://www.youtube.com/embed/B8YGMGaOUAM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>
  <div class="packages" id="packages">
    <h2>Packages</h2>
    <div class="packages-list">
      <div>
        <h3>Sleepover</h3>
        <p>A simple burger party package for a party of five people. Enjoy five BP burgers of your choice along with five classic BP iced tea!</p>
        <a href="#">Sleep Over</a>
      </div>
      <div>
        <h3>Party</h3>
        <p>A party package good for 10 people. Enjoy ten BP burgers of your choice along with ten classic BP iced tea! We'll throw in a side of fries for each.</p>
        <a href="#">Throw a Party</a>
      </div>
      <div>
        <h3>Celebration</h3>
        <p>Don't want to run out of burgers? Our celebration package boasts an all-you-can-eat feast. Pick a meal and we'll multiply it!</p>
        <a href="#">Celebrate!</a>
      </div>
     </div>
  </div>
  <div class="order" id="order">
    <h2>Dining alone?</h2>
    <p>One-man parties are the hype these days, so don't even worry. You can choose whichever meal you like from our Burger Party menu.</p>
    <br>
    <a href="#">Place an order</a>
  </div>
  <div class="newsletter" id="newsletter">
    <h2>Subscribe to our newsletter</h2>
    <p>Be notified about our newest promos. We also send out a new burger recipe every week!</p><br>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input type="email" id="email" name="email" placeholder="MyEmail@site.com" required>
      <input type="submit" id="submit" value="Subscribe">
    </form>
  </div>
</main>

<footer>
  <p>&copy; Burger Party 2020</p>
</footer>


              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Oxygen&display=swap');

:root {
  font-family: 'Oxygen', sans-serif;
  font-size: 16px;
}
html, body, main, footer {
  margin: 0; 
  padding: 0;
}
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  
  background: black;
  height: auto;
  width: 100%;
  position: fixed;
}
header > * {
  margin: 8px;
}
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}
footer {
  background: black;
  color: #d3761d;
  height: 200px;
  line-height: 200px;
  text-align: center;
  margin-top: -15px;
}

.intro {
  background: #d3761d;
  border: 1px solid #d3761d;
  padding: 130px 50px 50px 50px;
  text-align: center;
}
.packages, .newsletter, .order {
  padding: 50px 100px;
  text-align: center;
}
.packages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.packages-list > * {
  background: rgba(245, 245, 245, 1);
  border-radius: 8px;
  margin: 5px;
  padding: 15px;
  width: 30%;
  flex-basis: 250px;
  flex-grow: 1;
}
@media (max-width: 768px) {
  .packages-list > * {
    width: 100%;
  }
}
.order {
  background: #d3761d;
}
.order a,.packages a, input[type="submit"] {
  background: hsla(29, 85%, 40%, 1);
  border: none;
  border-radius: 8px;
  box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.1);
  color: inherit;
  letter-spacing: 1px;
  padding: 8px 16px;
  text-decoration: none;
  text-transform: uppercase;
}
.packages a {
  background: black;
  color: white;
  line-height: 3em;
}
a:hover {
  transform: scale(1.2);
}
.newsletter {
  background: rgba(245, 245, 245, 1);
}
input[type="email"] {
  border: none;
  border-radius: 8px;
  box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.1);
  padding: 8px 8px;
}
input[type="email"]:focus {
  outline: none;
  box-shadow: 1px 1px 8px 1px hsla(29, 85%, 50%, 1);
}
input[type="submit"]:hover {
  cursor: pointer;
}
              
            
!

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