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 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">
  <div class="container">
    <div class="head">
      <div id="branding"><img id="header-img" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSVk8kMkBhcaio4DEBOwB85azcWJy7FG0X3FTenSnbVqFxsGSSQ0w" alt="icon"></div>
      <nav id="nav-bar">
        <ul>
          <li class="current"><a class="nav-link" href="#home">home</a></li>
          <li><a class="nav-link" href="#pack-sec">Packages</a></li>
          <li><a class="nav-link"href="#work-sec">Work</a></li>
        </ul>
      </nav>
    </div>
  </div>
</header>
<div id="home">
<section id="showcase">
  <div class="container">
    <h1>Professional Baking Services</h1>
    <button class="button">Order Today</button>
  </div>
</section>
<section id="newsletter">
  <div class="container">
    <h1>Get Your Free Quote Today</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="Get Started" class="button">
   </form>
  </div>
</section>
<section id="boxes">
  <h3> Our Promise To You</h3>
  <div class="box">
    <img src="https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678134-sign-check-512.png" alt="check-icon">
    <h4>Quality Product</h4>
    <p>With over 10years of baking professional experience you will always recieve the premium quality</p>
  </div>
  <div class="box">
    <img src="https://cdn0.iconfinder.com/data/icons/free-daily-icon-set/512/Dollar-128.png" alt="dollar-icon">
    <h4>Affordable Prices</h4>
    <p>We go by the philosophy that a slice of haven does not have to break your wallet, with us you recieve premium at affordable prices.</p>
  </div>
  <div class="box">
    <img src="https://cdn1.iconfinder.com/data/icons/ios-11-glyphs/30/delivery-128.png" alt="truck-icon">
    <h4>Free Delivery</h4>
    <p>We All About Your convience, you dont even have to leave the house, we come to you for free!</p>
  </div>
</section>
</div>
<div id="pack-sec">
  <section id="packages">
    <div class="box">
      <div class=inner-box>
      <h3>Birthday Package</h3>
      <p>Have a birthday party to plan? Leave the sweet treat to us! Our birthday package includes the following</p>
      <ul>
        <li> 48 custom-made cupcakes</li>
        <li> A medium birthday-cake</li>
        <li> Our sweet-treat tray of your choice</li>
      </ul>
      </div>
       <button class="button">Select</button>
    </div>
    <div class="box">
      <h3>Wedding Package</h3>
      <div class=inner-box>
      <p>We provide you wedding perfect cakes all the time. Basic package includes the following but can be modified to fit wedding size:</p>
      <ul>
        <li> 100 custom-made cupcakes / pop-cakes</li>
        <li> A Large custom-made Wedding-cake</li>
        <li> 5x sweet-treat tray of your choice</li>
      </ul>
        
      </div>
       <button class="button">Select</button>  
    </div>
    <div class="box">
    <h3>Function Package</h3>
      <div class=inner-box>
      <p>For your next event try our function package because your sweet-tooth can't wait for the next birthday or wedding. Package includes:</p>
      <ul>
        <li> 100 custom-made cupcakes / pop-cakes</li>
        <li> 50 brownies mini blocks</li>
        <li> Medium size - cheese cake/ chocolate cake/ red velvet cake/ caramel deluxe cake</li>
        <li> 2x sweet-treat tray of your choice</li>
      </ul>
      </div>
       <button class="button">Select</button>   
    </div>
  </section>
</div>

<div id="work-sec">
      <h3>Work</h3>
  <section id="work">
    <img class="img" src="https://images.pexels.com/photos/433527/pexels-photo-433527.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="cake">
    <img class="img" src="https://images.pexels.com/photos/461295/pexels-photo-461295.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="picture of cake">
    <img class="img" src="https://images.pexels.com/photos/2144200/pexels-photo-2144200.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="picture of cake">
    <img class="img" src="https://images.pexels.com/photos/2230/restaurant-coffee-chocolate-dessert.jpg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="picture of cake">
    <img class="img" src="https://images.pexels.com/photos/585581/pexels-photo-585581.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="picture of cake">
 </section>
</div>


 <section class="video">
    <h3>Feeling advanturous? Watch this!</h3>
    <video id="video" width="420" height="290" controls>
      <source src="https://youtu.be/-OzWJzScONo" type="video/mp4">
    </video>
  </section>
<br>
<br>

<footer><span>Best Bake. &copy; 2019 Created by: Nomanna</span> 
    <ul>
        <li><a href="#">Privacy</a></li>
        <li><a href="#">Terms</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
</footer>

  <!-- 

              
            
!

CSS

              
                body{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5em;
    padding: 0;
    margin: 0;
    background-color: rgb(250, 242, 248);
  overflow-x: hidden;
}
section ul li{
  list-style: none;
  line-height: 1.7em
}

.container{
    width: 80%;
    margin: auto; /* will move the content to the middle*/
    overflow: hidden;   
}

.button{
    height: 38px;
    background-color: rgb(128, 20, 38);
    border: 0;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
}
.button:hover{
    background-color: whitesmoke;
    color: grey;
    font-size: 17px;
    cursor: pointer;
}
header{
    background-color: rgb(172, 31, 120);
    opacity:0.9;
  color: whitesmoke;
    padding-top: 5px;
    min-height: 75px;
    border-bottom: pink 3px solid;
  position: fixed;
  top: 0;
  width:100%;  
}
#header-img{
  border-radius:100px;
}
header a{
    color: whitesmoke;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul{
    list-style: none;
    padding: 0;
    margin: 0;
    
}
header li{
   float: left;
   display: inline;
  padding: 0px 20px 0px 20px;
    
}

header #branding{
    float: left;
}

header nav{
    float:right;
    margin-top: 40px;
}
header .current a{
    color: #ffebcd;
    font-weight: bold;
}
header a:hover{
    color: black;
    font-weight: bolder;
}
#header-img{
    width: 95px;
    height: 87px;
}
#showcase{
    min-height: 550px;
    background: url('https://images.pexels.com/photos/1028714/pexels-photo-1028714.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500') no-repeat 0px -90px;
  background-size: cover;
    text-align: center;
    color:white;
}
#showcase h1{
    margin-top:150px;
    font-size: 55px;
    background-color: black;
    padding: 25px;
    opacity:
    width:85%;
    line-height: 55px;
}
#showcase p{
    font-size: 30px; 
}
#newsletter{
    padding: 20px;
    background-color: rgb(172, 31, 120); 
}
#newsletter h1{
    float: left;
}
#newsletter form{
    float: right;
    margin-top: 20px;
}
#newsletter input[type="email"]{
    padding:4px;
    height:25px;
    width: 250px;
}
#boxes{
  width:100%;
}
h4{
  font-size: 18px;
}
#boxes h3{
  margin-top: -2px;
  padding: 50px 0 50px 0;
  font-size: 22px;
  background: white;
  width:100%;
  text-align: center;
}
#boxes p{
  width:80%;
  margin-left: 40px;
}
 #boxes .box{
     float: left;
     width:30%;
     padding-right: 35px;
     text-align: center;
      margin-bottom: 40px;
      margin-top: 40px;
   font-size: 14px;
 }
 #boxes .box img{
width: 60px;
 }
#work .box{
  margin: auto;
  width:90%;
  margin-bottom: 150px;
  text-align:center;
}
.video{
  text-align:center;
  padding: 0px 0 40px 0;
   background: pink;
}
#video{
  border-radius: 50px
}
.video h3{
  padding: 20px;
  font-size: 22px;
  background: white;
  text-align: center;
}
#packages{
  margin:auto;
  margin-top:10px;
  text-align: center;
  width:90%;
  display:flex;
  justify-content: center;
} 

  
#packages .box{
  border-right: 1px grey solid;
  padding: 15px;
  border-top:2px grey solid;
  border-left: 2px grey solid;
  
}

#packages h3{
  color:whitesmoke;
  background: purple;
  border-right: 6px white solid;
  padding: 10px 0px 10px 0px;
}
#work{ 
  width:100%;
  display:flex;
  justify-content: center;
}
#work-sec h3{
  padding: 30px;
  font-size: 22px;
  background: white;
   margin-top:100px;
  text-align: center;
}
#work-done{
    text-align: center;
    padding: 20px;
  }

.img{
  width:260px;
  border-radius: 30px;
  padding:0 20px 30px 0px;
}
div.box2{
  width:200px;
}
footer {
  margin-top: 0px;
  background-color: #ccc;
  padding:20px;
}

footer ul {
  display: flex;
  justify-content: center;
  
}

footer ul li{
  padding:0 10px;
  list-style:none;
    color:black;
}
a {
  color: black;
  text-decoration: none;
}

footer span{
  display: flex;
  justify-content: center;
  font-size: 13px;
  color: #444;
}
@media (max-width: 700px){
  

  #header-img{
display:none;
  }
  
  #header a{
    font-size: 12px;
  }
  #header{
    padding-top:0;
    opacity: 0.8;
  }
  
  #showcase h1{
    font-size: 27px;
    border-radius:80px;
  }
  #showcase p{
    display:none;
  }
  form{
    width: 90%;
  }
  #boxes .box{
   
   
      margin-bottom: 10px;
      margin-top: 20px;

 }
  
  #boxes{
    display:flex;
    flex-direction:column;
    width: 100%;
    margin: auto; /* will move the content to the middle*/
    overflow: hidden;
  }
  #boxes .box{
    width: 100%;
    padding: 8px;
    font-size:13px;
  }

 #packages{
    display:flex;
    flex-direction:column;
    width: 90%;
    margin: auto; /* will move the content to the middle*/
    overflow: hidden;
  }
  #packages.box{
    width: 90%;
    padding: 8px;
    font-size: 13px;
  }
  
#showcase{

    min-height: 550px;
    background: url('https://images.pexels.com/photos/1028714/pexels-photo-1028714.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500') no-repeat -88px 0px;
  background-size: cover;
    text-align: center;
    color:white;
}
  #work{
    display:flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #work img{
    text-align: center;
    padding: 20px;
  }
  .img{
  
  width:80%;
  padding:5px;
}
  

}
              
            
!

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