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= "main">
  <header id="header">
      <img id= "header-img" src ="https://spokensnaps.files.wordpress.com/2018/12/image.png?w=346">
      <h1>Spoken Snaps</h1>
    <nav id ="nav-bar">
      <a class="nav-link" href="#main">MAIN</a>
      <a class="nav-link" href="#products">PRODUCTS</a>
      <a class="nav-link" href="#about-us">ABOUT US</a>
    </nav>
  </header>
  

 <iframe id="video" src="https://www.youtube.com/embed/m4s9qNCAZjY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

  
  
  <div id = "products">
       <a href = "https://spokensnaps.wordpress.com/2018/12/05/3am-thoughts/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">3am thoughts</span> <br/> "This is the place where we met. This is where we would stay. This is where we would grow old together."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2018/12/p_20181023_213043_vhdr_auto-01-01.jpeg?w=768">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2018/12/09/ghosts-of-last-friday-night/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Ghosts of last Friday night</span> <br/> "He walked with a contained confidence, almost arrogant but not quite. His entire atmosphere spells danger and a wild night."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2018/12/ghosts-of-last-friday-night.jpeg?w=900">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2018/12/06/legally-blind/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Legally blind</span> <br/> "Please, come fetch me in the rain and take me on adventures."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2018/12/p_20180911_054202_vhdr_auto-01-01-01.jpeg?w=900">
    </div>
    </a>
      
    <a href = "https://spokensnaps.wordpress.com/2019/01/04/into-the-sunset/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Into the sunset</span> <br/> "All of them, without exception, are looking for a fairy tale."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/01/lrm_export_856938753963_20181223_180805258.jpeg?w=900">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2019/02/06/you-catch-no-fish-when-its-bright/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">You catch no fish when it's bright</span> <br/> "Real men die outside! They confront the dangers of the world and try to tame it! That’s where the glory lies. You will catch no fish when it’s bright. You have to sail when it’s dark. That’s when the fish will come."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/02/50035313_1817881714990288_3612390142469210112_n-1.jpg">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2019/03/07/rules-and-bad-decisions/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Rules and bad decisions</span> <br/> "Everything feels good when nothing matters."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/03/50259496_380308736064846_7825245845682388992_n.jpg">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2019/05/17/beauty-of-an-unmade-bed/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Beauty of an unmade bed</span> <br/> "Her screams echoed through the halls of a home that might as well be abandoned. The floor was unswept and the cabinets, undusted. Yet, the room she was lying in was full of people. She clawed and screamed and begged for mercy, but her calls were left unheard."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/05/sarah-youthed-972978-unsplash.jpg?w=900">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2019/04/22/handles-on-a-casket/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Handles on a casket</span> <br/> " It is okay to be weak sometimes. More accurately, you are permitted to be weak sometimes, because no matter how hard we try, none of us are perfect."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/04/rhodi-alers-de-lopez-616304-unsplash.jpg?w=900">
    </div>
    </a>
    
    <a href = "https://spokensnaps.wordpress.com/2019/02/21/dan-and-theresa/" target="_blank">   
    <div class = "product">
      <p class = "description"> <span class= "title">Dan and Theresa</span> <br/> "No man wants to be damned for good, but it seemed like we were. He was right. He deserved that. We both did. Then, I understood. It was our fault. We have no hope for redemption."</p>
      <img  class = "product-img" src = "https://spokensnaps.files.wordpress.com/2019/02/50614288_234405317477654_3808387801041338368_n.jpg">
    </div>
    </a>

</div>
<div id = "footer">
    <p id= "about-us" style = "text-align:center" >A picture is worth a thousand words. We articulated those words.</p>

  <form id= "form" action="https://www.freecodecamp.com/email-submit">
    <input id="email" name= "email" placeholder = "email" type="email" required/>
    <input type= "submit" id ="submit" >
  </form>
</div>
              
            
!

CSS

              
                body{
  background-image: url(https://images.pexels.com/photos/908283/pexels-photo-908283.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
  padding:0px;
  margin:0px;
  position:realtive;
  min-height:100vh;
}

#main{
}

#header-img{
  width:100px;
  height:auto;
}

h1{
  color:black;
  font-family: Baskerville Old Face;
  font-size: 4em;
  font-style: bold;
  text-shadow: 1px 1px 2px white;
  border-style:solid;
  border-width: 4px;
}

#main{
  display:grid;
  margin:0px;
}

#header {
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap:wrap;
  align-items:center;
  width:100%;
  
  background-image: url(https://images.pexels.com/photos/988872/pexels-photo-988872.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
  border-color:black;
  border-style: solid;
  border-width: 2px;
  position:fixed;
  z-index:2;
}

#nav-bar {
  width: 150px;
  font-family: Baskerville Old Face;
}

.nav-link{
  color:black;
  font-style: bold;
  text-shadow: 1px 1px 2px white;
}

.nav-link:hover{
  color: white;
  text-shadow: 1px 1px 2px black;
}

#video{
  width:80%;
  height:200px;
  margin:150px auto 0px auto;
}

#products{
  margin: 10px auto 30px auto;
  padding: 50px;
  background: url(https://images.unsplash.com/photo-1516541196182-6bdb0516ed27?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60);
  width:80%;
}

.product{
  display:inline-block;
  margin: 5px;
}

.product-img{
  width:300px;
  height:auto;
  border-style:solid;
  border-radius: 5px;
}

.description{
  position:absolute;
  width: 300px;
  padding:10px;
  visibility:hidden;
  font-family: Baskerville Old Face;
  font-weight:bold;
  z-index:1;
}

.title{
  font-size: 30px;
  text-shadow: 5px 5px 10px gray;
}

.product:hover .product-img{
  filter:blur(2px) opacity(.4);
}

.product:hover .description{
  visibility:visible;
}

a{
  color:inherit;
}
a:hover {
  color:inherit;
}

#footer{
  background-color:#f5f5f5;
}

#about-us{
  font-family: Baskerville Old Face;
}

@media (max-width: 640px){
  #nav-bar {
    display:flex;
    width:400px;
    justify-content: space-between;
  }
  
  #header-img{
    width:65px;
  }
  
  h1{
    font-size: 3em;
    border-style: none;
    padding: 2px 10px 0px 0px;
    
  }
  
  #products{
    padding: 0px;
  }
  
  .product{
    margin: 10px;
  }
  
  #about-us{
    font-size: 15px;
  }
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console