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>
<script src="https://kit.fontawesome.com/69936b5eb2.js" crossorigin="anonymous"></script>
<div id="page-wrapper">
<header id="header"> Lacuni Cosmetiques
<div class="logo">
<img id="header-img"
     src="http://cliparts.co/thumbnail/6Tr/o7k/6Tro7kr6c.jpg"
     alt="lipstick clipart logo"/>
  </div>
  
  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link"
  href="#about">About</a></li>
      <li><a class="nav-link"
  href="#clean">Clean Makeup?</a></li>
      <li><a class="nav-link"
  href="#prices">Shop</a></li>
       </ul>
      </nav>
      </header>

<div class="container"></div>
<section id="hero">
  <h2>Cruelty free, vegan makeup</h2>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input name="email" id="email" type="email" placeholder="Subscribe to our newsletter."/>
  <input id="submit" type="submit" value="Subscribe" class="btn" />
  </form>
  </section>
  <div class="container">
    <section id="about">
         <div class="grid">
           <div class="icon"><i class='fas fa-palette' style='font-size:48px;color:red'></i></div>
           <div class="desc">
        <h2>Hand made from the finest vegan ingredients.</h2>
          <p>
            At Lacuni Cosmetiques, we believe our makeup and brushes should be cruelty free and vegan. Our makeup is made with the finest vegan ingredients and hand made and pressed in our facilities. 
             </p>
           </div>
         </div>
  <div class="grid">
    <div class="icon"><i class='fas fa-paint-brush' style='font-size:48px;color:red'></i></div>
    <div class="desc">
      <h2>Finest Vegan Brushes</h2>
      <p>
        Our brushes are 100% Vegan plant based fibers on every brush that rival animal hair based brushes.
      </p>
    </div>
      </div>
      <div class="grid">
        <div class="icon">
          <i class='fas fa-gift' style='font-size:48px;color:red'></i></div>
        <div class="desc">
          <h2> Personally Packaged For You</h2>
          <p>
            We customize each order and package for you. No one item or accessory is identical and we etch you name on every item you order.
          </p>
        </div>
      </div>
    </section>
       <section id="clean">
                <iframe id="video"
                        width="560" height="315" src="https://www.youtube.com/embed/y4km0QFCqJM"  allowfullscreen="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      
    </section>
    </section>
             <section id="prices">
               <div class="product" id="eyeshadow"><div class="level">Lacuni Signature Eyeshadow Pallette</div>
                 <h2>$47</h2>
                 <ol>
                   <li>High Pigment</li>
                   <li>Low Fallout</li>
                   <li>Long Lasting</li>
                 </ol>
                 <button class="btn">Select</button>
               </div>
               <div class="product" id="brushes"><div class="level">Lacuni Signature Brush Set</div>
                 <h2>$35</h2>
                 <ol>
                   <li>20 Brush Set</li>
                   <li>Quality Tested</li>
                   <li>Easy to Clean</li>
                 </ol>
                 <button class="btn">Select</button>
               </div>
               <div class="product" id="lips"><div class="level">Lacuni Signature Lipsticks</div>
                 <h2>$20</h2>
                 <ol>
                   <li>High Pigment</li>
                   <li>All Day Wear</li>
                   <li>Smudge Proof</li>
                 </ol>
                 <button class="btn">Select</button>
               </div>
                </section>
    <footer>
      <ul>
        <li><a href="#">Privacy</a></li>
        <li><a href="#">Terms</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
      <span>Copyright 2019, Lacuni Cosmetiques</span>
    </footer>
  </div>
</div>

              
            
!

CSS

              
                @import
  "https://fonts.googleapis.com/css?family=Oswald&display=swap";

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

body {
  background-color: #000000;
  font-family: 'Oswald', sans-serif;
  color: #eee
}
#page-wrapper {
  position: relative;
}

li {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
  
}
.container {
  max-width: 1000px;
  width: 100%;
    margin: 0 auto;
}

.btn {
  padding: 0 2opx;
  height: 40px;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  border: 3px white solid;
  border-radius: 2px;
  color: #eee;
  background: transparent;
  curser: arrow;
}

.grid {
  display: flex;
}
header {
   position: fixed;
  top: 0;
  min-height: 75px;
  padding: 0px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  color: black;
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
}

.logo {
  width: 60vw;
}
@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
}


.logo > img {
  width: 205;
  height: 100%;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 20px;
}
@media (max-width: 650px) {
  .logo > img {
    margin: 0 auto;
  }
}

nav {
  
  top: 0;

  color: white;
}
@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;

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

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

#about{
 margin-top: 30px;
}

#about .icon {
  display: flex;
  align: center;
  justify-content: center;
  height: 125px;
  width: 20vw;
  color: red;
}
@media (max-width: 550px){
  #about .icon {
    display: none;
  }
}
#about .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 125px;
  width: 80vw;
  padding: 5px;
}

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

#clean {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#clean > iframe {
  max-width: 560px;
  width: 100%;
}

#prices {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100%  / 3);
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
}
.product > .level {
  background-color: #eee;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
}
.product > h2 {
  margin-top: 15px;
}

.product > ol {
  margin: 15px 0;
}

.product > ol > li {
  padding: 5px 0;
}

@media (max-width: 800px) {
  #prices {
    flex-direction: column;
  }
  .product {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}
footer {
  margin-top: 30px;
  background-color: white;
  padding: 20px;
}

footer > ul {
  display: flex;
  justify-content: flex-end;
}

footer > ul > li {
  padding: 0 10px;
}

footer > span {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
  color: black;
}
              
            
!

JS

              
                
              
            
!
999px

Console