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>
<head><link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet">
  <meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<header id="header">
  <nav id="nav-bar">
   <div class="nav-grid">  
    <div class="img">
      <a class="nav-link" href="#videoTxt"><img class="logoImg" id="header-img" src="https://proxy.duckduckgo.com/iu/?u=http%3A%2F%2Fwww.clipartbest.com%2Fcliparts%2F4i9%2Fokx%2F4i9okxEET.jpeg&f=1" alt="logo" height="auto" width="120"></a>
    <a class="logoTxt" href="#videoTxt">We Make Water<sup>TM</sup></a>
    </div>
    <div class="nav">
      <a class="nav-link" href="#Pricing">Pricing</a>
    </div>
    <div class="nav1">
      <a class="nav-link" href="#Contact">Contact</a>
    </div>
</div>
    </nav>
</header>
<div class="main">
  <div class="headline">
    <h2 class="versatile">Endlessly Versatile</h2>
  </div>
  <div class="blurb">
    <p>Dihydrogen Monoxide can exist as solid, liquid or gas.  Using our proprietary WaterMax<sup class="tm">TM</sup> technology, we can produce water in any quantity, any state of matter.</p>
    <p>Ask about our latest products, PLASMA<sup class="tm">TM</sup> and SUPERSTATES<SUP>TM</sup>.</p>
  </div>
</div>


<section id="AV">
  <div class="video">
    <div class="vidTxt">
      <h2 id="videoTxt">Learn about our states of matter</h2>
    </div>
    <div>
      <iframe id="video" src="https://www.youtube.com/embed/tuE1LePDZ4Y" frameborder="0" align="middle" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
  </div>
</section>

<section id="Pricing">
  <h2 class="priceTxt">Pricing</h2>
  <div class="priceContainer">
    <ul class="price">
        <div class="price-table">
          <div class="white-text">
            <li class="state">Solid</li>
          </div>
          <li class="instructions">Maintain at 0<sup>o</sup> C or lower. Manufacturer Not liable for melt or puddles.</li>
            <li class="features">$100 per m<sup>3</sup></li>
            <li class="features">Density 0.99704 g/mL</li>
            <li class="features">Refractive index 1.333</li>
        </div>

        </ul> 
        <ul class="price">
        <div class="price-table">
          <div class="white-text">
            <li class="state">Liquid</li>
          </div>
            <li class="instructions">Will always take the shape of its container or your money back.</li>
            <li class="features">$125 per m<sup>3</sup></li>
            <li class="features">Density 0.9167 g/mL</li>
            <li class="features">Refractive index 1.309</li>
        </div>

        </ul> 
        <ul class="price">
        <div class="price-table">
          <div class="white-text">
            <li class="state">Gas</li>
          </div>
            <li class="instructions">Invisible. Lots of molecules.  Expands and contracts with temperature.</li>
            <li class="features">$185 per 1000 molecules</li>
            <li class="features">Density inverse to volume</li>
            <li class="features">Condensible to liquid</li>
        </div>

        </ul> 
      </div>  
</section>

<section id="Contact">
    <form id="form" action="https://www.freecodecamp.com   
        /email-submit">
              <h2 class="emailTxt">You can be first</h2>
      <div class="emailContainer">

        <div class="email">
        <input name="email" id="email" type="email" 
        placeholder="Your email address" required/>
        </div>
        <div class="submit">
        <input id="submit" type="submit" value="Contact Us" 
        class="btn"></input>
        </div>
      </div>
      </form> 
</section>

              
            
!

CSS

              
                
body {
  background-image: url(https://proxy.duckduckgo.com/iu/?u=http%3A%2F%2Fwallup.net%2Fwp-content%2Fuploads%2F2016%2F01%2F169819-water-waves-nature-blue-sea-sunset-sunlight.jpg&f=1);
  background-size: contain;
  background-repeat: no-repeat; 
  color: white;
  margin: 0;
  font-family: 'Righteous', cursive;
}

@media (max-width: 600px) {
  body {
    background-image: url(https://proxy.duckduckgo.com/iu/?u=https%3A%2F%2Fwallpapershome.com%2Fimages%2Fwallpapers%2Fsea-2160x3840-5k-4k-wallpaper-ocean-water-wave-sunset-sky-rays-sun-402.jpg&f=1);
  }
}

/* Navbar Grid */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-auto-rows: minmax(100px, auto);
    grid-row-gap: 5em;
    grid-template-areas: 
      "hd hd hd hd hd nav nav nav1 nav1";
    background-color: #666699;
    position: fixed;
    width: 100%;
    top: 0;
}

@media (max-width: 600px) {
  .nav-grid {
    height: 3.5em;
  }
}

@media (min-width: 600px) and (max-width: 1000px) {
  .nav-grid {
    height: 5em;
    font-size: 0.7em;
  }
}

/* Intro Grid */

.main {
   margin-top: 10em;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-auto-rows: minmax(100px, auto);
    grid-row-gap: 1em;
    grid-template-areas: 
      "hl hl hl hl hl hl hl hl hl"
      "blb blb blb blb blb blb blb blb blb"
      "blb blb blb blb blb blb blb blb blb";
}

@media (max-width: 600px) {
.main {
    grid-row-gap: 1em;

  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .main {
    grid-row-gap: 0.1em;
    top: 10%;
  }
}

.img {
    grid-area: hd;
}

.headline {
    grid-area: hl;
}

.blurb {
    grid-area: blb;
    text-align: center;
    font-size: 1.6em;
  line-height: 3em;  
}

@media (max-width: 600px) {
  .blurb {
    font-size: 1em;
    line-height: 1em;
    text-shadow: 0.07em 0 black, 0 0.07em black, -0.07em 0 black, 0 -0.07em black;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .blurb {
    font-size: 1em;
    margin-bottom: -20px;
    line-height: 1em;
    text-shadow: 0.07em 0 black, 0 0.07em black, -0.07em 0 black, 0 -0.07em black;
  }
}

.nav {
  grid-area: nav;
}

.nav1 {
  grid-area: nav1;
}

h2 {
      text-align: center;
    font-size: 4em;
}

@media (max-width: 600px) {
  h2 {
    font-size: 2em;
  }
}

@media (min-width: 600px) and (max-width: 1000px) {
  h2 {
    font-size: 2em;
  }
}

a {
  text-decoration: none;
  font-size: 1.5em;
  color: white;
}

@media (max-width: 600px) {
  a {
  font-size: 1em;
}
}

sup {
  font-size: 0.5em;
}

.logoImg {
  border-radius: 50%;
  width: 4em;
  height: auto;
}

@media (max-width: 600px) {
  .logoImg {
  width: 3em;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .logoImg {
    width: 3em;
  }
}

.logoTxt {
  color: #fff;
  text-decoration: none;
  font-family: 'Righteous', cursive;
  font-size: 1.5;
  margin: 10px;
} 

@media (max-width: 600px) {
  .logoTxt {
    font-size: 0.5em;
  }
}

/* Video Section */

#AV {
  margin-top: 20%;
  margin-bottom: -0.05%;
  height: 800px;
  width: 100%;
  border-top: 2px solid;
  background-image: 
    linear-gradient(
      to bottom,
    #004d66, #ccf2ff
    );
}

@media (max-width: 600px) {
#AV {
  margin-top: 2%;
  height: 600px;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  #AV {
    margin-top: -12%;
    height: 600px;
  }
}

.video {
  display: flex;
  flex-direction: column;
  align-items: center;
}
      

iframe {
  height: 35em;
  width: 60em;
  border-radius: 5px;
  box-shadow: 10px 10px 10px 5px #00264d;

}

@media (max-width: 600px) {
iframe {
  height: 18em;
  width: 22em;
}
}

@media (min-width: 601px) and (max-width: 1000px) {
iframe {
  height: 18em;
  width: 30em;
}
}

/* Price Section */

#Pricing {
  margin-top: -2.7%;
  height: 500px;
  background-color: #666699;
}

@media (max-width: 600px) {
#Pricing {
  margin-top: -9%;
  height: 1100px;
  }
}

@media (min-width: 600px) and (max-width: 1000px) {
#Pricing {
  border-top: 3px solid;
  margin-top: -4%;
  height: 1100px;
}
}

.priceContainer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  margin-left: -50px;
}

@media (max-width: 600px) {
.priceContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 700px;
}
}

.priceTxt {
  text-align: center;
  font-size: 4m;
  padding: 50px 0px 0px 0px;
}

@media (max-width: 600px) {
  .priceTxt{ 
    padding-bottom: 2em;
    font-size: 2.6em;
  }
}

ul {
  list-style: none;
}

.price-table {
  background-color: #fff;
  height: auto;
  width: 300px;
  border-radius: 5px 5px 0 0;
  box-shadow: 10px 10px 10px 5px #00264d;
}

@media (max-width: 600px) {
.price-table {
  width: 250px;
  margin-top: 50px;
  margin-left: 60px;
}
}

@media (min-width: 600px) and (max-width: 1000px) {
  .price-table {
    width: 100%
  }
}

.price-table:hover {
  border: 1px solid #999;
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);  
}

.white-text {
  background-color: #000;
  margin: auto;
  border-radius: 5px 5px 0 0;
}

.state {
  font-size: 40px;
}

.instructions {
  font-size: 10px;
  color: #595959;
  border-bottom: 1px solid #cccccc;
  padding: 10px;

  
}
  

.features {
  color: #000;
  text-align: center;
  margin: 0 auto;  
  border-bottom: 1px solid #cccccc;
  font-size: 15px;
  padding: 10px;
}

/* Email Section*/

#Contact {
  border-top: 3px solid;
  height: 200px;
  width: auto;
  background-color: #f0f0f5;
}

@media (max-width: 600px) {
#Contact {
  border-top: 4px solid;
}
}

@media (min-width: 601px) and (max-width: 1000px) {
  #Contact {
    margin-top: 2.3%;
  }
}

.emailTxt {
  color: black;
  font-size: 3em;
}
  
  
  .emailContainer {
    margin-top: -5%;
    padding: 2em;
    padding-top: 4em;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
    
@media (max-width:600px) {
    .emailContainer {
      flex-direction: column;
      text-align: center;
      background-color: #f0f0f5;
      
  }
}

input[type="email"] {
  box-sizing: border-box;
  outline: none;
  display: block;
  width: 100%;
	padding: 10px;
	border: none;
	border-bottom: 1px solid #ddd;
	background: transparent;
	margin: 10px;
  font: 16px Arial, Helvetica, sans-serif;
	height: 45px; 
}

 @media (max-width:600px) {
    input[type="email"] {
      width: 90%;
      margin-left: 15px;
  }
}

input[type="submit"] {
  max-width: 200px;
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 0.6em;
  height: 40px;
  width: 100px;
  margin: 10px;
  
  margin-left: 40px;
  border: 0px solid #000;
}

input[type="submit"]:hover {
  background: #ff9966;
}
              
            
!

JS

              
                
              
            
!
999px

Console