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

              
                <!--<!DOCTYPE html>-->
<html>
<head>
    <title>Product Landing Page Project</title>
    <link rel="stylesheet" type="text/css" href="productLandingPageGrid.css" media="screen" />  <!--- need to delete this for codepen-->
    <link href="https://fonts.googleapis.com/css?family=Cinzel|Lato" rel="stylesheet">
</head>
<body>
    <div class="container">

     <div class="header">
            <nav id="nav-bar">
                    <a class="nav-link" href="#video">How it works</a>
                    <a class="nav-link" href="#info">Info</a>
                    <a class="nav-link" href="#pricing">Pricing</a>
                </nav>
        <h1>Fake Shoe Factory</h1> 
        <header id="header">
         <div class="logo">  
          <img id="header-img" src="https://pics.clipartpng.com/Black_Elegant_Men_Shoes_PNG_Clipart-378.png" alt="shoe image" width="100"/>  <!-- company logo should go here --> 
         </div>
        </header>
     </div>

     <div class="content">
        <div>
           <!-- <iframe id="video" height="315"
               src="https://www.youtube.com/watch?v=LsoPlVzlbJE" type="video/mp4" frameborder="0">
            </iframe> -->
            <iframe id="video" "width="560" height="315" src="https://www.youtube.com/embed/LsoPlVzlbJE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
        </div>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <label class="contact-label">Subscribe to the newsletter</label><br>
          <input type="email" id="email" name="email" placeholder="Enter your email address"> <!-- validation missing -->
          <input type="submit" id="submit" value="Subscribe" href="">
        </form>
     </div>
    
     <div class="content2" id="info">
         <div>
         <div class="icon"></div>
         <div class="text"><h2>Materials</h2><p>You can use this and<br> that to clean your shoes</p></div>
         </div>
         <div>
         <div class="icon"></div>
         <div class="text"><h2>How to do it</h2><p>Try it at night,<br> after dinner</p></div>
         </div>
         <div>
         <div class="icon"></div>
         <div class="text"><h2>Where to find it</h2><p>Somewhere on planet Earth.<br> Probably.</p></div>
         </div>
     </div>

     <div class="content3" > <!-- this should be a nested grid -->
       <div id="pricing">
           <div class="box">
           <h2>Version1</h2>
           <p>Very cheap</p>
           </div>
           <div class="box">
           <h2>Version2</h2>
           <p>Not so cheap</p>
           </div>
           <div class="box">
           <h2>Version3</h2>
           <p>Not cheap at all</p>
           </div>
       </div>
     </div>

     <div class="left"></div>
     <div class="right"></div>
     
     <div class="footer">
        <footer>
            <p>Made with laugh</p>
        </footer>
     </div>

    
    </div>
</body>
</html>

              
            
!

CSS

              
                body {
    background-color: rgb(255, 4, 121);
}

.container {
    display: grid;
    width: 100%;
    min-height: 700px;
    text-align: center;
    grid-template-columns: 20% auto 20%;
   /* grid-template-rows: 200px auto 50px;*/
   grid-template-rows: 0.5fr 1fr 0.5fr 0.5fr 0.1fr;
    grid-template-areas: 
    "left header right"
    "left content right"
    "left content2 right"
    "left content3 right"
    "footer footer footer"
}
h1{
    color: white;
    text-shadow: 2px 2px rgba(4, 83, 97, 0.459);
    font-family: 'Cinzel', serif;
}
.header {
    background-color: rgb(43, 218, 241);
    grid-area: header;
}
nav {
   /* position: -webkit-sticky;*/
    position: fixed;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  #nav-bar {
    font-family: 'Lato', sans-serif;
  }

  .nav-link{
      padding: 10px;
      background-color: rgb(0, 144, 160, 0.5);
      color: white;
    border-radius: 50%;
    text-decoration: none;
  }
  #form {
      margin-top: 40px;
      margin-bottom: 40px;
      padding-top: 40px;
      padding-bottom: 40px;
      background-color: rgba(209, 138, 151, 0.596);
  }
.content {
    background-color: pink;
    grid-area: content;
}

.content2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: pink;
    grid-area: content2;
    height: 100%;
    /*padding-bottom: 60px;*/
    align-content: center;
} 


/*.text {
    display: grid;
}*/

p{
    font-family: 'Lato', sans-serif;
}
h2 {
    font-family: 'Cinzel', serif;
}

iframe {
    padding-top: 40px;
    max-width: 560px;
    width: 100%;
  }

.contact-label{
    font-family: 'Cinzel', serif;
  }

 #pricing {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     grid-area: content3;
    /* grid-gap: 20px;*/
     background-color: rgba(209, 138, 151, 0.596);;
     color: white;
     height: 100%;
     margin-bottom: 40px;
     align-content: center;
    /* justify-content: center;*/
   
 } 

 .box{
     width: 80%;
     height: 80%;
   /*  background-color: yellowgreen;*/
 }
.footer {
   background-color: violet;
   grid-area: footer;
   align-content: center;
   color: white;
  
}
.left{
    background-color: rgb(73, 22, 139);
    grid-area: left;
    font-family: 'Lato' sans-serif;
}
.right{
    background-color: rgb(73, 22, 139);
    grid-area: right;
}
              
            
!

JS

              
                
              
            
!
999px

Console