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.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#portfolioNavbar">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><img src="http://i1347.photobucket.com/albums/p712/kanpeki_chan/kanpeki-logo_zpswwhy0eyi.png" alt="Brand logo"></a>
    </div>
    <div>
      <div class="collapse navbar-collapse" id="portfolioNavbar">
        <ul class="nav navbar-nav">
          <li><a href="#about">About</a></li>
          <li><a href="#portfolio">Portfolio</a></li>
          <li><a href="#contact">Contact</a></li>
        </ul>
      </div>
    </div>
  </div>
</nav>

<div id="contentContainer">
  
<div id="welcome-section" class="container-fluid section-about">
  <div class="row">
    <div class="col-lg-9 col-xs-12">
      <h1>
        Fresh graduate with a BS in Multimedia and
        MS in Software Engineering.
        <br>Eager to take on nonprofit development jobs.
        Mainly interested in programming for the web.
      </h1>
    </div>
    <div class="col-lg-3 col-xs-12">
      <img src="http://i1347.photobucket.com/albums/p712/kanpeki_chan/profile-photo_zpsiptv8vn6.png" class="center-block" alt="Profile photo">
    </div>
  </div>
</div>

<div id="projects" class="container-fluid section-portfolio">
  <h2 class="project-title">Portfolio</h2>
  
  <div class="row">
    
      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="https://codepen.io/kanpeki/pen/RogoNg/image/small.png" class="img-responsive" alt="Screenshot of tribute page project">
          <div class="overlay">
            <h3>tribute page</h3>
            <p>
              <a href="https://codepen.io/kanpeki/full/RogoNg" target="_blank">
                View project
              </a>
            </p>
            <p>
              <a href="https://codepen.io/kanpeki/pen/RogoNg" target="_blank">
                View code
              </a>
            </p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="https://codepen.io/kanpeki/pen/JePxGO/image/small.png" class="img-responsive" alt="Screenshot of the survey form project">
          <div class="overlay">
            <h3>survey form</h3>
            <p>
              <a href="https://codepen.io/kanpeki/full/JePxGO" target="_blank">
                View project
              </a>
            </p>
            <p>
              <a href="https://codepen.io/kanpeki/pen/JePxGO" target="_blank">
                View code
              </a>
            </p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="https://codepen.io/kanpeki/pen/dQPLxN/image/small.png" class="img-responsive" alt="Screenshot of the product landing page project">
          <div class="overlay">
            <h3>product landing page</h3>
            <p>
              <a href="https://codepen.io/kanpeki/full/dQPLxN" target="_blank">
                View project
              </a>
            </p>
            <p>
              <a href="https://codepen.io/kanpeki/pen/dQPLxN" target="_blank">
                View code
              </a>
            </p>
          </div>
        </div>
      </div>
    
      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="https://codepen.io/kanpeki/pen/aQBbjo/image/small.png" class="img-responsive" alt="Screenshot of the technical documentation project">
          <div class="overlay">
            <h3>technical documentation page</h3>
            <p>
              <a href="https://codepen.io/kanpeki/full/aQBbjo" target="_blank">
                View project
              </a>
            </p>
            <p>
              <a href="https://codepen.io/kanpeki/pen/aQBbjo" target="_blank">
                View code
              </a>
            </p>
          </div>
        </div>
      </div>
    
      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="https://codepen.io/kanpeki/pen/PLqpPp/image/small.png" class="img-responsive" alt="Screenshot of the random quote machine project">
          <div class="overlay">
            <h3>random quote machine</h3>
            <p>
              <a href="https://codepen.io/kanpeki/full/PLqpPp" target="_blank">
                View project
              </a>
            </p>
            <p>
              <a href="https://codepen.io/kanpeki/pen/PLqpPp" target="_blank">
                View code
              </a>
            </p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-xs-12">
        <div class="hovereffect">
          <img src="http://placehold.it/1543x987/ffffff/000000?text=Coming+soon" class="img-responsive" alt="Screenshot of  the third project coming soon">
          <div class="overlay">
            <h3>simon game</h3>
            <p>
              <i class="fa fa-cog fa-spin fa-3x fa-fw"></i>
            </p>
            <p>Project work in progress</p>
          </div>
        </div>
      </div>
  </div>
</div>
  
<div id="contact" class="container-fluid section-contact">
  <h1>Contact</h1>
  <div class="container">
      <a href="https://www.linkedin.com/in/kanpeki" target="_blank">
        <i class="fa fa-linkedin narrower" aria-hidden="true"></i>
        LinkedIn
      </a>
      <a id="profile-link" href="https://github.com/kanpeki" target="_blank">
        <i class="fa fa-github narrower" aria-hidden="true"></i>
        GitHub
      </a>
      <a href="https://www.freecodecamp.com/kanpeki" target="_blank">
        <i class="fa fa-free-code-camp" aria-hidden="true"></i>
        freeCodeCamp
      </a>
  </div>
</div>
</div>
<footer class="footer">
  <p><a href="https://codepen.io/kanpeki/" target="_blank">kanpeki</a> © 2017. All Rights Reserved</p>
</footer>
            
          
!
            
              $white: #fff;
$black: #000;
$bg: #E0DEDF;
$accent: #FF6E42;
$primary: #861657;
$nav-bg: #482b25;
$nav-active: #663E36;
$nav-shadow: #999;
$img-bg: $accent;
$content-width: 960px;
$default-font: 'Open Sans',
Arial,
Helvetica,
sans-serif;
$nav-font: 'Oswald',
Arial,
Helvetica,
sans-serif;
@mixin border-radius($values) {
  -webkit-border-radius: $values;
  -moz-border-radius: $values;
  -o-border-radius: $values;
  border-radius: $values;
}

@mixin transform-origin ($origin) {
    moz-transform-origin: $origin;
	     -o-transform-origin: $origin;
	    -ms-transform-origin: $origin;
	-webkit-transform-origin: $origin;
          transform-origin: $origin;
}

@mixin transform($transforms) {
  -moz-transform: $transforms;
  -o-transform: $transforms;
  -ms-transform: $transforms;
  -webkit-transform: $transforms;
  transform: $transforms;
}

@mixin box-shadow($left, $top, $blur, $spread, $color, $inset:"") {
  -webkit-box-shadow:$left $top $blur $spread $color #{$inset};
  -moz-box-shadow:$left $top $blur $spread $color #{$inset};
  box-shadow:$left $top $blur $spread $color #{$inset};
}

body {
  background: $bg;
  margin: 0;
  padding: 0;
  font-family: $default-font;
}

.navbar {
  @include box-shadow(0, 8px, 6px, -6px, $nav-shadow);
  min-height: 70px;
}

.collapsed,
.navbar-inverse,
.navbar-inverse .navbar-toggle:focus {
  background-image: none;
  background: $nav-bg;
  padding-top: 10px;
}

.navbar-inverse {
  .navbar-nav > li > a {
    color: tint($nav-bg, 50%);
    color: rgba($white, 0.5);
  }
  .navbar-nav > .active > a,
  .navbar-nav > .active > a:focus,
  .navbar-nav > .active > a:hover {
    color: $white;
    background: $nav-active;
  }
  .navbar-toggle {
     &:hover {
      background: $nav-bg;
      padding: 10px;
    }
    .icon-bar:nth-child(1),
    .icon-bar:nth-child(2) {
      margin-bottom: 6px;
    }
  }
  .navbar-collapse,
  .navbar-toggle {
    //border-color: $nav-active;
    border: none;
  }
  .navbar-nav>.active>a,
  .navbar-nav>.open>a {
    background-image: none;
  }
}

.navbar-collapse {
  box-shadow: none;
  .colapse.in {
    border-color: $nav-active;
  }
}

.open {
  span:nth-child(1) {
    @include transform-origin(left);
		@include transform(rotate(45deg));
		transition: all ease .5s;
	}
  span:nth-child(2) {
		opacity: 0;
		transition: all ease .5s;
	}
	span:nth-child(3) {
    @include transform-origin(left);
		@include transform(rotate(-45deg));
		transition: all ease .5s;
	}
}

.navbar-brand {
  padding: 0;
}

.navbar-brand > img {
  padding: 15px;
  height: 100%;
}

.navbar-nav {
  font-family: $nav-font;
  font-size: 15px;
  float: right;
}

.navbar .container-fluid,
.section-about,
.section-portfolio,
.section-contact {
  max-width: $content-width;
}

.section-about,
.section-portfolio,
.section-contact {
  padding: 30px;
  height: auto;
}

#welcome-section {
  height: 100vh;
}

.section-about {
  background: $white;
  padding-top: 125px;
  h1 {
    font-size: 18px;
    color: $black;
    color: rgba($black, 0.87);
    line-height: 2em;
    text-align: center;
    padding-bottom: 30px;
  }
  .row {
    margin: auto;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  img {
    margin-top: -15px;
    width: 200px;
    background: $img-bg;
    @include border-radius(50%);
  }
}

h2 {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  padding-bottom: 20px;
}

.section-portfolio {
  padding-top: 65px;
  padding-bottom: 50px;
  color: $white;
  background: $primary;
  .row div {
    padding: 0;
  }
  .row img {
    padding: 15px;
    @include border-radius(20px);
  }
}

.hovereffect {
  width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  text-align: center;
  cursor: default;
  .overlay {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    @include border-radius(5px);
    position: absolute;
    top: 15px;
    left: 15px;
    overflow: hidden;
  }
  
  h3 {
    opacity: 0;
    color: $white;
    text-align: center;
    position: relative;
    font-size: calc(16px + .2vw + .2vh);
    overflow: hidden;
    margin-top: 10%;
    padding: 15px;
    background: transparent;
    text-transform: uppercase;
  }
  
  h3:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: $white;
    content: '';
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    @include transform(translate3d(-100%, 0, 0));
  }
  a {
    color: $white;
    opacity: 0;
    filter: alpha(opacity=0);
  }
  p {
    padding-top: 7px;
    padding-top: calc(7px + .2vw + .2vh);
    font-size: 12px;
    font-size: calc(12px + .2vw + .2vh);
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    @include transform(translate3d(100%, 0, 0));
  }
}

.hovereffect:hover {
  .overlay {
    background: $accent;
    color: $white;
  }
  h3 {
    opacity: 1;
  }
  h2:after {
    @include transform(translate3d(0, 0, 0));
  }
  a,
  p {
    opacity: 1;
    filter: alpha(opacity=100);
    @include transform(translate3d(0, 0, 0));
    text-decoration: none;
  }
  a:hover {
    font-weight: bold;
  }
  i {
    font-size: 200%;
  }
}

.section-contact {
  color: $black;
  color: rgba($black, 0.87);
  background: $white;
  padding-bottom: 40px;
  .container {
    max-width: 260px;
  }
  a {
    display: block;
    font-size: 18px;
    text-decoration: none;
    color: $white;
    width: 246px;
    @include border-radius(6px);
    background: $accent;
    padding: 6px 20px;
    margin-bottom: 14px;
  }
  a:hover {
    background: $primary;
  }
  i {
    font-size: 25px;
    border-right: 2px solid $white;
    padding-right: 20px;
    margin-right: 10px;
    vertical-align: middle;
  }
  .narrower {
    padding-left: 5px;
    padding-right: 25px;
  }
}

.footer {
  background: $nav-bg;
  padding: 10px;
  p,
  a {
    color: $white;
    color: rgba($white, 0.5);
    text-align: center;
    margin: auto;
  }
  a {
    color: $white;
  }
}

@media (min-width: 480px) {
  .section-about,
  .section-portfolio,
  .section-contact {
    padding-right: 60px;
    padding-left: 60px;
  }
}
            
          
!
            
              $(document).ready(function() {
  $("body").scrollspy({
    target: ".navbar",
    offset: 70
  });
});

$('.navbar-collapse a').click(function (e) {
  $('.navbar-collapse').collapse('toggle');
  $('.navbar-toggle').toggleClass('open');
});

$('.navbar-toggle').click(function (e) {
  $(this).toggleClass('open');
});

$('#contentContainer').click(function() {
  if($('.navbar-toggle').hasClass('open')) {
     $('.navbar-collapse').collapse('toggle');
    $('.navbar-toggle').toggleClass('open');
  }
});
            
          
!
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