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>


<div id="page-wrap">
  <header id="header">
  <div class="logo">
    <img  id="header-img" src="https://i.imgur.com/91j6d5M.jpg" alt="koala icon">
  </div>
  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link" href="#About-us">
        About us</a></li>
      <li><a class="nav-link" href="#Design">
        Design</a></li>
      <li><a class="nav-link" href="#Products">
        Products</a></li>
      <li><a class="nav-link" href="#Packages">
        Packages</a></li>
    </ul>
  </nav>
</header>
  <body>
  <div id="body-wrap">
    <div id="About-us" class="AboutBox">
      <div class="AboutImg">
      <img id="AboutLorem" src="https://www.jqueryscript.net/images/Universal-Placeholder-Text-Lorem-Ipsum-Generator-getlorem.jpg" alt="Lorem Ipsum Image">
    </div>
      <div class="AboutTxt">
      <h3 class="aboutTit">About us</h3>
      <p> We are group friends who came up with the idea of making brand Koala Kežuala. Who doesnt like koalas? And glasses? Damn... <br><br>
        We love them and we wanted to make t-shirt; so here we are! </p>
    </div>
  </div>
    <div id="Design" class="DesignBox">
     <div class="DesignTxt">
       <h3>Design</h3>
       <p>We find inspiration in everything that is related to koalas: natural habitat, the way they move, eat, look, sleep and so on...<br><br><u> How to make it casual?? </u> Put on glasses and shirt!</p>
    </div>
    <div class="DesignImgBox">
      <div class="designimg">
      </div>
      <div class="designimg">
      </div>
      <div class="designimg">
      </div>
    </div>
  </div>
    <div id="Products" class="ProductsBox">
    <div class="ProdTxt">
      <h3>Products</h3>
      <p>Our design elements offer wide variety of products,whic can be seen below.
    </div>
    <div class="ProdImgBox">
      <div class="ProdImg">
      </div>
      <div class="ProdImg">
      </div>
      <div class="ProdImg">
      </div>
      <div class="ProdImg">
      </div>
      <div class="ProdImg">
      </div>
  </div>
  <div id="packageChoice" class="PackageBox">
  </div>
  </div>
  </div>
    <div id="Packages" class="PackagesBox">
      <div class="PckgTxt">
        <h3>Packages</h3><p>Choose your package:</p>
      </div>
      <div class=PckgsSelector>
        <div class="pckg">
          <p class="pckgHead">1-DAY<br>PACK</p>
          <p class="pckgBdy"><u>Includes following:</u><br><br>1 cool T-shirt of your<br>color and design choice<br><br>Paperbag packing<br><br>Free shipping</p>
          <p class="pckgDes">$ 9,95</p>
          <button id="buyButton" class="buyButton" type="Submit">Buy now!</button>
        </div>
        <div class="pckg">
          <p class="pckgHead">3-DAY<br>PACK</p>
          <p class="pckgBdy"><u>Includes following:</u><br><br>3 cool T-shirts of your<br>color and design choice<br><br>Paperbag packing<br><br>Free shipping</p>
          <p class="pckgDes">$ 24,95</p>
          <button id="buyButton" class="buyButton" type="Submit">Buy now!</button>
        </div>
        <div class="pckg">
          <p class="pckgHead">7-DAY<br>PACK</p>
          <p class="pckgBdy"><u>Includes following:</u><br><br>7 amazingly cool<br>T-shirt of your color<br>and design choice<br><br>Specially designed<br>carton box packing<br><br>Free shipping</p>
          <p class="pckgDes">$ 49,95</p>
          <button id="buyButton" class="buyButton" type="Submit">Buy now!</button>
        </div>
      </div>
    </div>
    <div id="VidBox" class="VidBox">
      <div class="VidDes">
        <p>If you are still not sure to buy or not, watch the video of funny koala:</p>
        <div class="VidDiv">
          <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/nD_intygBH8" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
      </div>
    </div>
    <div class="formsec">
        <p>If you would like to recieve info about our new products and offers,<br>enter your email addres and click subscribe button.</p>
      <form id="form" name="form" action="https://freecodecamp.com/email-submit">
        <input id="email" type="email" name="email" placeholder="Enter your email here" required>
        <input button id="submit" class="subbtn" type="submit" Value="SUBSCRIBE">
      </form>
    </div>
   </div>
  </body>
</div>
              
            
!

CSS

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

#page-wrap {
  background-color: #ccccff;
  justify-content: center;
  display: flex;
}
#header {
  position: fixed;
  top: 0;
  height: 65px;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #001752;
  box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.45);
}
.logo > img {
  width: 65px;
  margin-left: 25px;
  float: left;
  }
#nav-bar {
  width: 100%;
  float: right;
}
nav > ul {
  display: flex;
  text-transform: uppercase;
  font-size: 20px;
  float: right;
  margin-right: 25px;
}
li {
  list-style: none;
  font-family: helvetica;
  font-weight: bold;
  margin: 20px;
}
a:link {
  text-decoration: none;
  color: rgba(255, 255, 255, 100%)
}
a:visited {
  text-decoration: none;
  color: rgba(255, 255, 255, 100%)
}
#body-wrap {
  background: white;
  width: 100%;
  max-width: 1300px;
}
h3 {
  font-family: Roboto;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  font-size: 30px;
  margin-bottom: 35px;
}
.AboutBox {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 25px;
  vertical-align: middle;
}
.AboutImg {
  border-radius: 15px;;
  box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.45);
  width: 35%;
  height: 275px;
}
#AboutLorem {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}
.AboutTxt {
  text-align: left;
  width: 40%;
  font-family: Helvetica;
  font-size: 20px;
  padding: 35px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
}

.DesignBox {
  width: 100%;
  height: auto;
  padding-top: 90px;
  padding-bottom: 25px;
  
}
.DesignImgBox {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding-top: 50px;
}
.designimg {
  background: #001752;
  width: 300px;
  height: 150px;
  border-radius: 12px;
}
.DesignTxt {
  text-align: center;
  width: 60%;
  font-family: Helvetica;
  font-size: 20px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
  margin: 0 auto;
}
.designimg:hover {
  animation-name: imghover;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes imghover {
  100% { 
    height: 190px;
    width:380px;
    background: navy;
  }
}

.ProductsBox {
  width: 100%;
  height: auto;
  padding-top: 90px;
  padding-bottom: 25px;
  
}
.ProdImgBox {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  margin: 0 auto;
}
.ProdImg {
  background: #001752;
  width: 180px;
  height: 240px;
  border-radius: 8px;
}
.ProdTxt {
  text-align: center;
  width: 60%;
  font-family: Helvetica;
  font-size: 20px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
  margin: 0 auto;
}
.ProdImg:hover {
  animation-name: prodresize;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  background: navy;
}
@keyframes prodresize {
  100% {
    height: 360px;
    width: 270px;
  }
}

/*PACKAGES BELOW*/

.PackagesBox {
  width: 100%;
  height: auto;
  padding-top: 90px;
  padding-bottom: 25px;
}
.PckgTxt {
  text-align: center;
  width: 60%;
  font-family: Roboto;
  font-size: 20px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
  margin: 0 auto;
}
.PckgsSelector {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  margin: 0 auto;
}
.pckg {
  background: #ccccFF;
  height: 180px;
  width: 25%;
  border: 3px solid #001752;
  border-radius: 15px;
  overflow: hidden;
}
.pckgHead {
  font-family: 'Bangers', cursive;
  text-align: center;
  font-size: 65px;
  color: #001752;
  margin-top: 26px;
  margin-bottom: 25px;
}
.pckgBdy {
  font-family: Helvetica;
  text-align: center;
  font-size: 20px;
  color: #001752;
}
.pckgDes {
  font-family: 'Bangers', cursive;
  text-align: center;
  margin-top: 20px;
  font-size: 45px;
  color: #ffd400;
  text-shadow: 0px 0px 7px navy;
}
.buyButton {
  width: 50%;
  background: #ffd400;
  height: 25px;
  border: 1px solid #001752;
  border-radius: 5px;
  color: #001752;
  font-family: Helvetica;
  text-transform: uppercase;
  position: relative;
  left: 65px;
  margin-top: 18px;
}
.pckg:hover {
  animation-name: expandprice;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
@keyframes expandprice {
  100% {
    height: auto;
    padding-bottom: 30px;
  }
}

/*PACKAGES ABOVE*/
/*VIDEO BELOW*/

.VidBox {
  width: 100%;
  height: auto;
  padding-top: 90px;
  padding-bottom: 25px; 
}
.VidDes {
  text-align: center;
  width: 60%;
  font-family: Roboto;
  font-size: 20px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
  margin: 0 auto;
}
.VidDiv {
  margin-top: 35px;
  margin-bottom: 35px;
}
/*VIDEO ABOVE*/
/*FORM BELOW*/
.formsec {
  width: 70%;
  text-align: center;
  font-family: Helvetica;
  font-size: 20px;
  color: rgba(0, 0, 0, 85%);
  text-shadow: 2px 2px 9px #a3a3a3;
  margin: 0 auto;
  margin-bottom: 20px;
}
#form {
  width: 300px;
  margin: 0 auto;
  margin-top: 15px;
  text-align: center;
}
#email {
  width: 280px;
  height: 25px;
  border: 1px solid #001752;
  border-radius: 3px;
  text-align: center;
  margin-bottom: 10px;
}
.subbtn {
  width: 280px;
  height: auto;
  border: 1px solid #001752;
  border-radius: 3px;
  text-align: center;
  background: #ffd400;
  color: #001752;
  font-family: 'Bangers', cursive;
  font-size: 25px;
  padding: 3px;
}
/*FORM ABOVE*/

@media (max-width: 600px) {
  header {
    position: absolute;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console