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

              
                <head>
  <!--script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script-->
  <script src="https://kit.fontawesome.com/64ea6313f5.js" crossorigin="anonymous"></script>
</head>
<div id="main-container">
  <header id="header">
    <div class="logo">
      <img id="header-img" src="https://0x0.st/-riv.png" alt="make my cake logo"/>
    </div>
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#features">Features</a></li>
        <li><a class="nav-link" href="#tour">Tour</a></li>
        <li><a class="nav-link" href="#pricing">Pricing</a></li>
      </ul>
    </nav>
  </header>
  <div class="container">
    <section id="subscription">
      <h2>Backed with lots of love and cream</h2>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" id="email" name="email" placeholder="Enter your email here" required/>
        <input type="submit" id="submit" value="Get Started"/>
      </form>
    </section>
  </div>
  <div class="container">
    <section id="features">
      <div class="flex-layout" id="features-start">
        <div class="icons"><i class="fas fa-4x fa-rupee-sign"></i></div>
        <div class="desc">
          <h2>No Cost Delivery</h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
        </div>
      </div>
      <div class="flex-layout">
        <div class="icons"><i class="fas fa-4x fa-home"></i></div>
        <div class="desc">
          <h2>Homemade Essence</h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
        </div>
      </div>
      <div class="flex-layout">
        <div class="icons"><i class="fas fa-4x fa-laugh-beam"></i></div>
        <div class="desc">
          <h2>Authentic Reviews</h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
        </div>
      </div>
    </section>
    <section id="tour">
      <iframe id="video" width="620" height="320" src="https://www.youtube.com/embed/tgbNymZ7vqY" frameborder="0">
      </iframe>
    </section>
    <section id="pricing">
      <div class="product" id="celeb">
        <div class="level">Celebration Cake</div>
        <ul>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
        </ul>
        <button class="btn">$80</button>
      </div>
      <div class="product" id="pestries">
        <div class="level">Pastries</div>
        <ul>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
        </ul>
        <button class="btn">$50</button>
      </div>
      <div class="product" id="party">
        <div class="level">Party Cake</div>
        <ul>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
          <li>Lorem ipsum.</li>
        </ul>
        <button class="btn">$90</button>
      </div>
    </section>
  </div>
    <footer>
      <div id="social">
        <ul>
          <li class="fb"><i class="fab fa-2x fa-facebook-square"></i></li>
          <li class="twitter"><i class="fab fa-2x fa-twitter-square"></i></li>
          <li class="whatsapp"><i class="fab fa-2x fa-whatsapp-square"></i></li>
        </ul>
      </div>
      <p>At Post Kurlap | Pin 415411 | <a href="tel:+919021117986"> Ph +919021117986</a></p>
      <p>Home Made Cakes © 2020. All Rights Reserved.</p>
    </footer>
</div>
              
            
!

CSS

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 110px; /* height of sticky header */
}
#main-container{
 overflow: hidden;
}

body {
  background-color: #F7F0DC;
  font-family: 'Comfortaa', cursive;
}

li {
  list-style: none;
}

.nav-link, a {
  color: #000;
  text-decoration: none;
}

#header {
  position: fixed;
  top: 0;
  background-color: hsl(146, 71%, 72%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 75px;
}

@media (max-width: 600px) {
  #header {
    position: static;
  }
  
  html {
  scroll-padding-top: 120px;
  }
}

.logo {
  width: 60vw;
}

#header-img {
  width: 100%;
  height: 100%;
  width: 12vw;
  margin-left: 40px;
}

@media (max-width: 650px) {
  #header-img {
    width: 50vw;
    margin-left: 15px;
  }
}

#nav-bar > ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 36vw;
  margin-right: 25px;
  font-size: 1.2rem;
}

@media (max-width: 650px) {
  #nav-bar > ul {
    flex-direction: column;
    align-items: flex-start;
  }
  #nav-bar > ul > li {
    padding: 5px;
    margin-left: 30px;
  }
}

#subscription {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 100px;
}

@media (max-width: 650px) {
  #subscription {
    margin-top: 30px;
  }
}

#subscription > h2 {
  margin-bottom: 20px;
  margin-top: 20px;
}

#email {
  height: 40px;
  width: 300px;
  padding: 10px;
  border: 0;
  border-radius: 15px;
  font-weight: 600;
  background: hsl(39, 75%, 75%);
  color: #000;
  text-align: center;
}

#submit {
  width: 100%;
  max-width: 150px;
  height: 35px;
  border: 0;
  border-radius: 10px;
  margin: 20px 20px 15px 20px;
  background: hsl(5, 70%, 65%);
  color: #F7F0DC;
  cursor: pointer;
}

.flex-layout {
  display: flex;
  flex-direction: row;
}

@media (max-width: 650px) {
  .flex-layout {
   flex-wrap: wrap; 
  }
}

#features {
  margin-top: 30px;
}

.desc {
  display: flex;
  width: 80%;
  height: 130px;
  flex-direction:column;
  justify-content: center;
  align-items: flex-start;
  margin: auto;
}

@media (max-width: 650px) {
  .desc {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    padding: 0;
    height: 150px;
    margin: auto;
    align-items: center;
  }
}

.icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 130px;
  width: 10vw;
  margin: auto;
  color: hsl(340, 95%, 70%);
}

@media (max-width: 650px) {
  .icons {
    font-size: 0.6rem;
    width: 50%;
    text-align: center;
    height: 50px;
    margin: auto auto -40px auto;
    align-items: center;
  }
}

#tour {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

#pricing {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 80px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid hsl(5, 70%, 65%);
  border-radius: 5px;
  overflow: hidden;
  width: 25%;
  margin-bottom: 50px;
}

.product > .level {
  font-size: 20px;
  font-weight: 600;
  padding: 15px 0;
  width: 100%;
  background-color: hsl(5, 70%, 65%);
  color: #F7F0DC;
}

.product > ul {
  margin: 20px 0;
}

.product > ul > li {
  padding: 15px;
}

.product > .btn {
  width: 100%;
  font-size: 25px;
  font-weight: 400;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  background: hsl(5, 70%, 65%);
  color: #F7F0DC;
}

@media (max-width: 650px) {
  #pricing {
   flex-direction: column;
   align-items: center;
  }
  
  .product {
    width: 80%;
    margin-bottom: 15px;
  }
}

footer {
  text-align: center;
  width: 100%;
  background-color: hsl(39, 75%, 75%);
  margin-top: 30px;
}

#social > ul{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#social > ul >li{
  padding: 10px;
}

footer > p {
  padding: 5px;
}

 .fb {
  color: #4267B2;
}

.twitter {
  color: #1DA1F2;
}

.whatsapp {
  color: #128C7E;
}
              
            
!

JS

              
                
              
            
!
999px

Console