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

              
                <div id="full-page">
  <header id="header">
    <div class="logo">
      <img
        id="header-img"
        src="https://www.emborg.com/Files/Images/Emborg/emborg_logo.png"
        alt="original emborg logo"
      />
    </div>
    <nav id="nav-bar"> 
      <ul>
        <li><a class="nav-link" href="#features">Features</a></li>
      <li><a class="nav-link"
        href="#about-us">About us</a></li>
      <li><a class="nav-link"
       href="#our-products">Our products</a></li>
       
      </ul>
    </nav>
  </header>
  
  <main>
    <section id="sweet">
    <h2>Healthy, nutritous recipes specially for you</h2>
    <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="btn"/>
      </form>
      </section>
    
    <img id="img"
     src="https://media.gettyimages.com/photos/yogurt-with-granola-and-berries-in-bowl-picture-id1077059528?s=2048x2048"
         alt="yoghurt"
         />
      
    <section id="features">
     <div class="grid">
       <div class="icon"><i class="fa fa-3x fa-fire"></i></div>
       <div class="desc">
         <h2>Features</h2>
         <h4>Our Source</h4>
          <p class="best">Emborg recipies are sourced from the choicest natural and fresh ingredients, giving you a healthy diet.
         </p>
         </div>
       </div>
     <div class="grid">
       <div class="icon"><i class="fa fa-3x fa-truck"></i></div>
       <div class="desc">
         <h4>Pay on delivery</h4>
           <p class="best">For any product you buy from us, you get to enjoy our pay on delivery plus free delivery services.
           </p>
           </div>
           </div>
         <div class="grid">
           <div class="icon"><i class="fa fa-3x fa-battery-full" aria-hidden="true"></i></div>
           <div class="desc">
             <h4>Quality Assurance</h4>
             <p class="best">We assure you of quality products made specifically to boost your health as our brand is tested and trusted
             </p>
             </div>
           </div>
         </section>
    
  <section id="about-us">
      <div class="details">
        <h2>About Us</h2>
        <p>Emborg is a company inspired by the need for good nutrition and good health to serve you with the best of recipes. We have been in the business of bringing you the best variants of premium quality recipes since generations. 
        </p>
      </div>
    </section>
    
    <section id="how-its-made">
      <iframe
        id="video"
        width="560" height="315" src="https://www.youtube.com/embed/M1tz3KvcxqE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
        </iframe>
    </section>
    
       <h2>OUR PRODUCTS</h2>
     <section id="our-products">
        <div class="smoothies">
        <img class="recipes" src="https://www.gimmesomeoven.com/wp-content/uploads/2014/04/Strawberry-Banana-Smoothie-4.jpg"
             alt="a jar of bannana smoothie"
             />
        <div class="box">
          <p class="title">Smoothies</p>
             <p>This is a combination of natural fruits made from organic farming.</p>
          </div>
        <h3>$5</h3>
        <button class="btn">Buy</button>
          
        </div>
      
    <div class="smoothies">
      <img class="recipes" src="https://www.hindustantimes.com/rf/image_size_960x540/HT/p2/2018/08/05/Pictures/_46261392-9893-11e8-81b1-0a49ed9acdc8.jpg"
           alt="A photo of yoghurt in a bowl"
           />
      <div class="box">
        <p class="title">Yoghurts</p>
           <p>Our yummy yoghurts are made with live and active cultures. They come in special variants and flavours</p>
        </div>
      <h3>$10</h3>
      <button class="btn">Buy</button>
      </div>
      
      <div class="smoothies">
        <img class="recipes" src="https://media.gettyimages.com/photos/cheesy-pepperoni-pizza-picture-id938742222?s=612x612"
             alt="a picture of pizza"
             />
        <div class="box">
          <p class="title">Pizza</p>
        <p>Go ahead and get our delicious pizza made specially for you. And don't forget to share with friends!</p>
          </div>
        <h3>$15</h3>
 <button class="btn">Buy</button>
       </div>
   </section>
  </main>
  
  <footer>
    <ul>
      <li><a href="#">privacy</a></li>
      <li><a href="#">terms</a></li>
      <li><a href="#">contact</a></li>
      </ul>
      <span>This is a mockup page, made with &#10084; by Miracle for <a href="freecodecamp.org" target="_blank">freecodecamp's project</a></span>
 </footer>
   
    
</div>
    
    
    
    
    
    
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

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

@media (max-width: 650px) {
  .logo > img {
    margin: 0 auto;
  }
}

.logo {
  width: 60vw;
}

.logo > img {
  width: 100%;
  height: 100px;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 20px;
}

header {
  position: fixed;
  top: 0;
  min-height: 75px;
  padding: 0px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #710e8f;
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
}


nav {
  font-weight: 400;
 
}
@media (max-width: 650px) {
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
   
  }
}

nav > ul {
  width: 35vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style-type: none; 
  }

 a{
  color: #ffff;
  text-decoration: none;
  text-transform: uppercase;
  }

@media (max-width: 650px) {
  nav > ul {
    flex-direction: column;
  }
}

a:hover{
  color: #ba840f;
  transition: background color 1s;
}

main{
  margin-top: 200px;
}

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


#sweet > h2 {
  margin-bottom: 20px;
  word-wrap: break-word;
}

#sweet input[type="email"] {
  max-width: 275px;
  width: 100%;
  padding: 5px;
}

#sweet input[type="submit"] {
  max-width: 95px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #e64343;
  border-radius: 20%
}

#sweet input[type="submit"]:hover {
  background-color: orange;
  transition: background-color 1s;
}

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

@media (max-width: 550px) {
  #features .icon {
    display: none;
  }
}

@media (max-width: 550px) {
  #features .desc {
    width: 100%;
    text-align: center;
    padding: 0;
    height: 150px;
  }
}

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

/*page image styling*/
#img{
  width: 100%;
  height: 500px;
}

/*features styling*/
#features{
  text-align: center;
  background-color: #FDF5F1;
  margin-top: 50px
}

h2{
  color: #710e8f;
  text-transform: uppercase;
  font-family: cursive;
  text-align: center;
  margin-top: 50px;
}

h4{
  font-family: sans-serif;
  color: #ba840f;
  }

/*about stylng*/
#about-us{
 text-align: center;
  margin-top: 40px;
}

p{
  margin-top: 10px;
}

/*video styling */
#how-its-made {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#how-its-made > iframe {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: block;
  margin: 0 auto;
}

/*product styling*/
#our-products {
  text-align: center;
}
#our-products .smoothies{
  margin-top: 30px;
  margin-bottom: 10px;
}
#our-products .recipes{
  height: 250px;
  width: 250px
 }
.box{
  height: 100px;
  width: 400px;
  background-color: #710e8f;
  color: #FFFFFF;
}
  
.btn{
  max-width: 95px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #e64343;
  border-radius: 30%;
  color: #FFFFFF;
  margin-bottom: 60px;
  }

.btn:hover{
  background-color: orange;
  transition: background-color 1s;
}

.title{
  padding-top: 10px;
  text-transform: uppercase;
}

@media only screen and (min-width: 1000px) {
  #our-products { 
   display: flex;
   flex-direction: row;
   justify-content: center;
   align-items: center;
   text-align: center;
 }
  main{
    margin-top: 100px;
  }
  h4{
    margin-top: 10px;
  }
  h2{
    text-align: center;
    margin-top: 20px;
  }
  .box{
    height: 100px;
    width: 100%;
    clear: both;
  }
  footer{
    width: 100%;
  }
  footer > span{
    display: flex;
    justify-content: center;
  }
 }

#full-page{
  background-color: #FDF5F1;
}

footer{
  position: fixed;
  bottom: 0px;
  background-color: #710e8f;
  color: #ba840f;
}

footer > ul{
  display: flex;
  justify-content: space-around;
  list-style: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console