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. 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

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

              
                .nav
  ul
    li
      a(href="#about")
        h3 About
    li
      a(href="#home")
        h3 Home
    li
      a(href="#portfolio")
        h3 Portfolio
.intro#home
  .container
    h1 HI, I'M ADAM
    hr.separator.separator-white
    h2 WEB DEVELOPER

.space

.content-container.text-center.blue#about
  .container
    .row
      h1 ABOUT
      hr.seperator.seperator-white
      .col-md-5.col-md-offset-1
        h3 My name is Adam, I am an aspiring web developer. I love developing clean and functional websites and web applications. I feel confident using languages such as HTML, CSS, and JavaScript along with a few popular frameworks.
      .col-md-5
        h3 I have built many websites and web applications, some of which can be found below in my portfolio. I have also completed an online course called FreeCodeCamp. My front end developer certificate can be found below.
      
.content-container.text-center.white#portfolio
  .container
    .row
      h1 Portfolio
      hr.seperator.seperator-blue
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s18.postimg.org/ffz50no21/image.png")
          figcaption
            h2 Random Quote Generator
            p Displays random quotes which can be shared on Twitter!
            a(href="https://codepen.io/AdamHJacks/full/vKjQqJ/" target="_blank" title="View project!")
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s1.postimg.org/vmh0ylh8f/image.png")
          figcaption
            h2 Simon Game
            p A custom developed game of Simon!
            a(href="https://codepen.io/AdamHJacks/full/ygRwpo/" target="_blank" title="View project!")
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s21.postimg.org/7hepqc8sn/image.png")
          figcaption
            h2 Wikipedia Viewer
            p Search and get results from Wiki!
            a(href="https://codepen.io/AdamHJacks/full/BLakNb/" target="_blank" title="View project!")
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s12.postimg.org/5ybqpb2ul/image.png")
          figcaption
            h2 Zombie Game
            p A small Javascript game project I built for fun!
            a(href="https://codepen.io/AdamHJacks/full/BLakNb/" target="_blank" title="View project!")
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s11.postimg.org/68hvmwd1f/image.png")
          figcaption
            h2 Calculator
            p Making maths easy!
            a(href="https://codepen.io/AdamHJacks/full/dNQwGx/" target="_blank" title="View project!")
      .col-md-4.text-left
        figure.effect-portfolio
          img.img-responsive(src="https://s32.postimg.org/5o2ej5t11/image.png")
          figcaption
            h2 Random Maze Generator
            p Generates a random maze using the Recursive Backtracker algorithm!
            a(href="https://codepen.io/AdamHJacks/full/ObZqwR/" target="_blank" title="View project!")

.content-container.text-center.blue
  .container
    .row
      .col-md-12
        h2 FreeCodeCamp Certificate
        hr.seperator.seperator-white
      .col-md-5.col-md-offset-1
        h3 Here is the certificate I recieved after completing the front end development section of FreeCodeCamp.
      .col-md-5
        img.img-responsive(src="https://s7.postimg.org/xfy9reyjf/cert.png")

.content-container.text-center.white
  .container
    .row
      h1 Contact
      hr.seperator.seperator-blue
      .col-md-5.col-md-offset-1
        h2 Phone:
        h3 07769 952024
      .col-md-5
        h2 Email:
        h3 adamjackswork@gmail.com
              
            
!

CSS

              
                body
  overflow-x: hidden
  
h1
  font-family: 'Merriweather', serif
  font-size: 4em
  
h2
  font-family: 'Merriweather', serif
  font-size: 2.5em
  
h3
  font-size: 1.5em
  
.nav
  z-index: 10
  opacity: 0.9
  position: fixed
  top: 0
  width: 100%
  background-color: white
  border-bottom: solid 1px black
  text-align: center
  
.nav ul
  list-style-type: none
  margin: 0
  padding: 0
  
.nav li
  display: inline-block
  width: 130px
  &:hover
    border-bottom: solid 3px #0099cc
  
.nav li a
  text-decoration: none
  color: grey

.intro
  background: transparent
  min-height: 100%
  position: relative
  background-position: fixed
  &:before
    content: ''
    width: 100vw
    height: 100vh
    position: absolute
    z-index: -1
    top: 0px
    left: 0px
    background-image: url('https://s11.postimg.org/ssfnkkqc3/blogging_336375_960_720.jpg')
    background-position: center
    background-repeat: no-repeat
    background-size: cover
    -webkit-background-size: cover
    -moz-background-size: cover
    -o-background-size: cover
    -webkit-filter: brightness(50%)
    -moz-filter: brightness(50%)
    -o-filter: brightness(50%)
    -ms-filter: brightness(50%)
    filter: brightness(50%)
    background-attachment: fixed
  
.intro
  width: 100vw
  height: 100vh
  color: white
  display: flex
  align-items: center
  justify-content: center
  text-align: center
  
.separator
  max-width: 180px
  
.separator-white
  border-top: solid 3px #fff
  
.separator-blue
  border-top: solid 3px #0099cc

.white
  background-color: white
  color: #0099cc
  
.blue
  background-color: #0099cc
  color: white
  
.space
  width: 100vw
  height: 20vh
  background: -moz-linear-gradient(bottom, rgba(0,153,204,1) 0%, rgba(0,153,204,0) 30%)
  background: -webkit-linear-gradient(bottom, rgba(0,153,204,1) 0%,rgba(0,153,204,0) 30%)
  background: linear-gradient(to top, rgba(0,153,204,1) 0%,rgba(0,153,204,0) 30%)
  
.content-container
  padding-top: 50px
  padding-bottom: 50px
  
// PORTFOLIO

figure
  position: relative
  overflow: hidden
  margin: 10px auto
  max-width: 578px
  max-height: 398px
  height: auto
  cursor: pointer
  img
    position: relative
    display: block
    opacity: 0.6
  figcaption
    padding: 2em
    color: #fff
    text-transform: uppercase
    font-size: 1.25em
    -webkit-backface-visibility: hidden
    backface-visibility: hidden
    &::before, &::after
      pointer-events: none
    /*Provides positioning for the slide up of the caption
    position: absolute
    top: 0
    left: 0
    width: 100%
    height: 100%
    > a
      /*Provides positioning for the slide up of the caption
      position: absolute
      top: 0
      left: 0
      width: 100%
      height: 100%
      /*Hides View More Text from view in links
      z-index: 1000
      text-indent: 200%
      white-space: nowrap
      font-size: 0
      opacity: 0
  h2
    font-size: 2em
    word-spacing: -0.15em
    font-weight: 300
    span
      font-weight: 700
    margin: 0
  p
    margin: 0
    letter-spacing: 1px
    font-size: 68.5%
  
figure.effect-portfolio
  background: #333
  img, h2
    -webkit-transition: -webkit-transform 0.35s
    transition: transform 0.35s
  img
    -webkit-backface-visibility: hidden
    backface-visibility: hidden
  h2
    position: absolute
    bottom: 0
    left: 0
    padding: 30px
  p
    position: absolute
    bottom: 0
    left: 0
    padding: 30px
    text-transform: none
    font-size: 90%
    opacity: 0
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s
    transition: opacity 0.35s, transform 0.35s
    -webkit-transform: translate3d(0, 50px, 0)
    transform: translate3d(0, 50px, 0)
  &:hover
    img
      -webkit-transform: translate3d(0, -80px, 0)
      transform: translate3d(0, -80px, 0)
    h2
      -webkit-transform: translate3d(0, -100px, 0)
      transform: translate3d(0, -100px, 0)
    p
      opacity: 1
      -webkit-transform: translate3d(0, 0, 0)
      transform: translate3d(0, 0, 0)
      
@media (max-width: 480px)
  .nav
    display: none
              
            
!

JS

              
                $(function() {
  $('a[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top
        }, 700);
        return false;
      }
    }
  });
});
              
            
!
999px

Console