css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <body>
   <div class="container-fluid">
     
     <span id ="portfolio"></span>
     <nav id="nav-bar">
       <div class="row " id="navigation">
         
          <div class="col-xs-0 col-sm-0 col-md-4 col-xl-8"> 
         </div>
         
          <div class="col-xs-6 col-sm-6 col-md-2 col-xl-1">
            <button class="btn btn-block" id ="portfolio-btn">Portfolio</button>
         </div>
         
          <div class="col-xs-6 col-sm-6 col-md-2 col-xl-1">
            <button class="btn btn-block" id ="project-btn">Projects</button>
         </div>
         <div class="col-xs-6 col-sm-6 col-md-2 col-xl-1">
            <button class="btn btn-block" id="about-me-btn">About Me</button>
         </div>
         <div class="col-xs-6 col-sm-6 col-md-2 col-xl-1">
            <button class="btn btn-block" id="contact-btn">Contact Me</button>
         </div>
       </div><!--ends row-->
       <div class="row">

    </nav>
   <section id="welcome-section"> 
   <div id="after-nav">
     <header id="main-header">
      <h1 >Gregory Stocker Portfolio</h1>
       <div class="col-xs-12 col-sm-12 col-md-22 col-xl-12">
      <img src="https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/32491999_1828160380567571_1939921661134372864_n.jpg?_nc_cat=111&_nc_ht=scontent-sjc3-1.xx&oh=0da65d7e9d4ec36ba7464065eba0de0d&oe=5C618749"></img>
       </div>
       </header>
     </section><!-- ends welcome section-->
    
     <section id="projects">
       <h2>Projects</h2>
       
        <div class="row">
          
       <div class="project-tile col-xs-12 col-sm-12 col-md-4">
         <h3>Product Land Page</h3>
         <a href="https://codepen.io/SilverAndBlack/pen/NzRzMe" target="_blank"><img src="https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/35303822_1864277043622571_3595207202383593472_o.jpg?_nc_cat=109&_nc_ht=scontent-sjc3-1.xx&oh=49e82354beeb719dec6f887db9102f80&oe=5C89D329"></img></a>
       </div>
        <div class="project-tile col-xs-12 col-sm-12 col-md-4">
         <h3>Survey Form</h3>
        <a href="https://codepen.io/SilverAndBlack/pen/eKdMvv" target="_blank"> <img src="https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/35267164_1864277366955872_4353048791578836992_o.jpg?_nc_cat=110&_nc_ht=scontent-sjc3-1.xx&oh=4d591f4824b19b31c838a2d014c12759&oe=5C5B3A02"></img></a>
       </div>
      <div class="project-tile col-xs-12 col-sm-12 col-md-4">
         <h3>Technical Documentation Page</h3>
         <a href="https://codepen.io/SilverAndBlack/pen/MXoWGR" target="_blank"><img src="https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/35434961_1864277503622525_8503887907226910720_o.jpg?_nc_cat=109&_nc_ht=scontent-sjc3-1.xx&oh=8110ad8593184e6d2fe4c3248c386049&oe=5C8A8DEC"></img></a>
       </div>
        
     
       </div><!--ends row-->
     </section>
  
     <section id="about-me-section" class="row">
       
     <div id="about-me" class="col-xs-12 col-sm-12 col-md-12 col-xl-12">
       <h2>About Me</h2>
       <p>My name is Gregory Stocker and I am a freelance Web developer. I have experience using HTML5, CSS3, Bootstrap, <br>
         JQuery, Javascript and Wordpress. I have some computer science experience from college and have a decent <br>
         knowledge of C++, object oriented programming and using data structures and algorithms.
       </p> 
     </div><!--ends about me-->
  </section><!-- ends about me section-->
     
     <div id="contact">
       
      
       <div class="row" id="contact-section">
         <div class="col-xs-12 col-sm-12 col-md-12 col-xl-12">
          <h2>Contact Me<h2>
            </div>
         <div class="col-xs-12 col-sm-12 col-md-4">
           <a href="https://github.com/lennyBreauStyle" target="_blank"><button class="btn btn-block ">Github</button></a>
         </div>
         <div class="col-xs-12 col-sm-12 col-md-4">
            <a href="https://forum.freecodecamp.org/u/silverandblack" target="_blank"><button class="btn btn-block ">FreeCodeCamp</button></a>
         </div>
         <div class="col-xs-12 col-sm-12 col-md-4">
          <a href="https://codepen.io/SilverAndBlack" id="profile-link" target="_blank"> <button class="btn btn-block">Codepen</button></a>
         
       </div>
       </div>
     </div><!-- ends contact-->
       </div><!--ends after nav -->
   </div><!--ends container fluid-->
  <body>
            
          
!
            
              .container-fluid{
  
   background-image: url("https://i.pinimg.com/originals/f7/5c/b0/f75cb0bd2592daad99cf2d723178bfe6.jpg");
 background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  
  
}

#welcome-section{
  height: 100vh;
}



h1, h2 ,h3{
  text-align: center;
  color: black;
}
img{
  display: block;
  margin: 0 auto;
  width: 25%;
  border-radius: 5%;
  margin-bottom: 100px;
}
#navigation{
 
  background-color: rgba(15,15,15,.5);
  padding:10px 0 10px 0;
  width: 100%;
  position: fixed;
  z-index: 2;
 
  
}

#after-nav{
  border-radius: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 96%;
  margin: 0 auto;
  margin-top: 60px;
  margin-bottom: 10px;


}
#projects{
  height: 100vh;
}

.project-tile img{
  width:100%;
  height: 100%%;
}

#about-me-section{
  height: 100vh;
}

#about-me
{
  clear: both;
  /*this was a total guess assuming that bootstrap was using floats. It worked!*/
  
 
  border-radius: 5px;
  padding-bottom: 5px;
  padding-top: 5px;
  text-align: center;
  background-color: rgba(220,220,220,150);
  margin-bottom: 50px;
  background: radial-gradient(  white 25%, silver 45%, gray);
  color: black;
}
#about-me > h2{
  color: black;
}








@media(max-width: 991px){
  #navigation > div{
    margin-top:1px;
  }
  #contact-section > div{
    margin-top: 1px;
  }
}

            
          
!
            
              let aboutMeBtn = document.getElementById("about-me-btn");
let aboutMe = document.getElementById("about-me");

let portfolioBtn = document.getElementById("portfolio-btn");
let portfolio = document.getElementById("portfolio");

portfolioBtn.addEventListener("click", function(){
  portfolio.scrollIntoView({behavior: 'smooth'});
});
aboutMeBtn.addEventListener("click",  function(){
         aboutMe.scrollIntoView({behavior: 'smooth'});   
     });
let contactBtn = document.getElementById("contact-btn");
let contact = document.getElementById("contact-section");

contactBtn.addEventListener("click",function(){
  contact.scrollIntoView({behavior:'smooth'});
});

let projectsBtn = document.getElementById("project-btn");
let projects = document.getElementById("projects");

projectsBtn.addEventListener("click",function(){
  projects.scrollIntoView({behavior: 'smooth'});
});

/*
User Story #1: My portfolio should have a welcome section with an id of welcome-section.
User Story #2: The welcome section should have an h1 element that contains text.
User Story #3: My portfolio should have a projects section with an id of projects.
User Story #4: The projects section should contain at least one element with a class of project-tile to hold a project.
User Story #5: The projects section should contain at least one link to a project.
User Story #6: My portfolio should have a navbar with an id of navbar.
User Story #7: The navbar should contain at least one link that I can click on to navigate to different sections of the page.
User Story #8: My portfolio should have a link with an id of profile-link, which opens my GitHub or FCC profile in a new tab.
User Story #9: My portfolio should have at least one media query.
User Story #10: The height of the welcome section should be equal to the height of the viewport.
User Story #11: The navbar should always be at the top of the viewport.
*/
            

    
        
      
    



  



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console