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

              
                <body data-spy="scroll" data-target="#navbar-collapse-1">
  <div class="anchor" id="home"></div>
  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#home">Thepeted projects co.</a>
      </div>
      <div class="collapse navbar-collapse" id="navbar-collapse-1">
        <ul class="nav navbar-nav pull-right" role="navigation">
          <li><a href="#home">Home</a></li>
          <li><a href="#about">About</a></li>
          <li><a href="#ziplines">Ziplines</a></li>
          <li><a href="#basejumps">Basejumps</a></li>
          <li><a href="#contact">Contact</a></li>
        </ul>
      </div>
    </div>
  </nav>
  <div class="jumbotron text-center">
    <div class="container-fluid">
      <h1>Thepeted projects co.</h1>
      <p>We turn your dreams into reality</p>
    </div>
  </div>
  <div class="anchor" id="about">
  </div>

  <div class="container-fluid content-about">
    <div class="row content">
      <div class="col-xs-10 col-xs-offset-1 col-md-8 col-md-offset-2">
        <h2 class="text-center">About Me</h2>
        <p>Hi! My name is Peter Daily and I'm a <strong>self taught web developer</strong> based in the UK. I'm using <a href="https://freecodecamp.com" target="_blank">FreeCodeCamp</a> and a bunch of other freely available resources to learn <strong>HTML5</strong>,
          <strong>CSS3</strong>,
          <strong>JavaScript</strong>, <strong>Node</strong>, <strong>Angular</strong> and more. FreeCodeCamp encourages campers to practice their skills by <strong>building projects</strong> - follow my journey here as I build my portfolio.</p>
      </div>
    </div>
  </div>
  <div class="anchor" id="ziplines"></div>
  <div class="container-fluid text-center content content-portfolio">
    <h2>Ziplines
    <br><small>Front-end Development Projects</small></h2>
    <div class="row">
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/rVgywr" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1447506891/fiSl9XM_dtixmc.png" class="img-responsive" alt="Random Thoughts Of Karl Pilkington Zipline">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/rVgywr" target="_blank">Random Quote Machine</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/mePWMe/" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448140790/y3K9kyy_pveewf.png" class="img-responsive" alt="Local Weather App Zipline">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/mePWMe/" target="_blank">Local Weather</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/RWGXre/" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448140795/ZIJal2W_hgdmvo.png" class="img-responsive" alt="Pomodoro Clock Zilpine">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/RWGXre/" target="_blank">Pomodoro Clock</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/BoWLJG" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146027/twitch-min_g8sw5d.png" class="img-responsive" alt="Twitch Viewer">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/BoWLJG" target="_blank">Twitch.tv JSON API</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/EVLpmM/" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146028/camper-min_xgwsuo.png" class="img-responsive" alt="Camper News">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/EVLpmM/" target="_blank">Camper News</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/pjqYYv" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146027/wiki-min_wmsenp.png" class="img-responsive" alt="Camper News">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/pjqYYv" target="_blank">Wikipedia Viewer</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/avLwNw/" target="-blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146025/calc-min_jd56be.png" class="img-responsive" alt="JavaScript Calculator">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/avLwNw/" target="-blank">JavaScript Calculator</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/qOJVyK/" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146026/ttt-min_piz8a4.png" class="img-responsive" alt="Tic Tac Toe">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/qOJVyK/" target="_blank">Tic Tac Toe Game</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="https://codepen.io/thepeted/full/ojVYoO/" target="_blank">
            <img src="https://res.cloudinary.com/thepeted/image/upload/v1448146026/simon-min_it7elg.png" class="img-responsive" alt="Simon Game">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="https://codepen.io/thepeted/full/ojVYoO/" target="_blank">Simon Game</a></figcaption>
        </div>
      </div>
    </div>
    <!-- end of row -->
  </div>
  <div class="anchor" id="basejumps"></div>
  <div class="container-fluid text-center content content-portfolio">
    <h2>Basejumps
    <br><small>Full Stack Javascript Projects</small></h2>
    <div class="row">
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="#basejumps">
            <img data-src="holder.js/533x400?auto=yes&random=yes&text=Coming Soon" class="img-responsive" alt="Coming Soon Placeholder">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="#basejumps">Voting App</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="#basejumps">
            <img data-src="holder.js/533x400?auto=yes&random=yes&text=Coming Soon" class="img-responsive" alt="Coming Soon Placeholder">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="#basejumps">Nightlife App</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="#basejumps">
            <img data-src="holder.js/533x400?auto=yes&random=yes&text=Coming Soon" class="img-responsive" alt="Coming Soon Placeholder">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="#basejumps">Stock Market App</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="#basejumps">
            <img data-src="holder.js/533x400?auto=yes&random=yes&text=Coming Soon" class="img-responsive" alt="Coming Soon Placeholder">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="#basejumps">Book Trading Club</a></figcaption>
        </div>
      </div>
      <div class="col-sm-4 col-md-3">
        <div class="thumb">
          <a href="#basejumps">
            <img data-src="holder.js/533x400?auto=yes&random=yes&text=Coming Soon" class="img-responsive" alt="Coming Soon Placeholder">
            <div class="hover-opaque">
            </div>
            <i class="fa fa-fire fa-3x"></i>
          </a>
        </div>
        <div class="thumb thumb-caption text-center">
          <figcaption><a href="#basejumps">Pinterest Clone</a></figcaption>
        </div>
      </div>
    </div>
    <!-- end-of-row -->
  </div>
  <!-- end-of-container-->
  <div class="anchor" id="contact"></div>
  <div class="container-fluid text-center content content-contact">
    <h2>Say Hello!
    <br><small>Connect With Me Via Social Media</small>
      </h2>
    <img src="https://res.cloudinary.com/thepeted/image/upload/v1448147053/gInNldH-min_rh7o1a.png" id="head-shot" alt="Profile head shot">
    <div class="row">
      <div class="col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4 social-group text-center">
        <a href="https://www.facebook.com/thepeted" class="btn btn-default" target="_blank"><i class="fa fa-facebook-f"></i> Facebook</a>
        <a href="https://twitter.com/peterdaily" class="btn btn-default" target="_blank"><i class="fa fa-twitter"></i>  Twitter</a>
        <a href="https://plus.google.com/107846523306646560632/about/p/pub" class="btn btn-default" target="_blank"><i class="fa fa-google-plus"></i> Google+</a>
        <a href="https://uk.linkedin.com/in/peterdaily" class="btn btn-default" target="_blank"><i class="fa fa-linkedin facebook-f"></i> LinkedIn</a>
        <a href="https://github.com/thepeted" class="btn btn-default" target="_blank"><i class="fa fa-github"></i> GitHub</a>
        <a href="https://www.freecodecamp.com/thepeted" class="btn btn-default" target="_blank"><i class="fa fa-fire"></i>  FreeCodeCamp</a>
      </div>
    </div>
  </div>
  <footer>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-10 col-sm-offset-1">
          <ul role="navigation">
            <li><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#ziplines">Ziplines</a></li>
            <li><a href="#basejumps">Basejumps</a></li>
            <li><a href="#contact">Contact</a></li>
          </ul>
        </div>
        <!-- end col -->
      </div>
      <!-- end row -->
      <div class="row">
        <div class="col-sm-10 col-sm-offset-1">
          </p>
        </div>
      </div>
    </div>
  </footer>
</body>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
@import url(https://fonts.googleapis.com/css?family=Ubuntu:400,700);
html,
body {
  overflow-x: hidden;
}
/* Bootstrap fixed-navbar fix */

.anchor {
  margin-top: -40px;
  padding-top: 40px;
}
/*------- Base custom styles ------ */

p,
div {
  color: #4E4E54;
  font-family: 'Open Sans';
}

a {
  color: #004566;
}

a:hover,
a:active,
a:focus {
  color: #004566;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Ubuntu;
  font-weight: 700;
}

h2 {
  color: #004566;
  margin-bottom: 30px;
  margin-top: 0px;
}

h2 {
  color: #004566;
  margin-bottom: 30px;
  margin-top: 0px;
}

strong {
  color: #004566;
}
/*------ Nav styles ------*/

.navbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 0px;
  box-shadow: 0px 1px 0px 1px rgba(62, 62, 62, 0.2);
}

.navbar-default .navbar-nav>li>a {
  color: #004566;
  text-transform: uppercase;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>li>a:hover {
  background: none;
  color: #73A7F7;
}

.navbar-default .navbar-brand {
  font-family: Ubuntu;
  font-weight: 700;
  color: #004566;
}

.navbar-default .navbar-brand:hover {
  color: #73A7F7;
}
/*------ Button styles ------*/

.btn-default.active,
.btn-default.focus,
.btn-default:active,
.btn-default:focus,
.btn-default:hover,
.open>.dropdown-toggle.btn-default {
  background-color: #585E6B;
  color: #EEE;
}

.btn-default {
  background-color: #808899;
  color: #EEE;
  border-color: #6C727F;
}

.btn {
  border-radius: 0px;
  margin-bottom: 6px;
}

.btn:hover .fa {
  color: #73A7F7;
}
/*------ Section styles ------*/

.content {
  padding-top: 40px;
  padding-bottom: 40px;
}
/*------ Home ------*/

.jumbotron {
  background: url(https://res.cloudinary.com/thepeted/image/upload/v1447506661/TpjEgqC_q1wew3.jpg) no-repeat center center;
  background-size: cover;
  margin-bottom: 30px;
  margin-top: 0px;
  padding: 160px 0px;
  margin-bottom: 0px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, .5);
}

.jumbotron h1 {
  color: #004566;
}
/*------ About ------*/

.content-about {
  background: #E5E5E5;
  font-size: 1.6em;
}
/*------ Portfolio ------*/

.content-portfolio {
  background-color: #F5F5F5;
  padding-left: 10%;
  padding-right: 10%;
}

#basejumps {
  border-bottom: 1px solid #E5E5E5;
}

.content-portfolio .col-sm-6,
.content-portfolio .col-md-3 {
  margin: 15px auto;
}
/*------ Thumbs -------*/

.thumb {
  margin: 0 auto;
  max-width: 533px;
  position: relative;
}

.hover-opaque {
  background: #000;
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0px;
  width: 100%;
  transition: all ease .5s;
  -webkit-transition: all ease .5s;
  -moz-transition: all ease .5s;
}

.thumb .fa {
  color: #FFF;
  margin: -15px;
  position: absolute;
  opacity: 0;
  top: 45%;
  right: 50%;
  transition: all ease .5s;
  -webkit-transition: all ease .5s;
  -moz-transition: all ease .5s;
}

.thumb:hover .hover-opaque {
  opacity: 0.5;
}

.thumb:hover .fa {
  opacity: 1;
}

.thumb-caption {
  background: #FFF;
  border-color: #E6E6E6;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
  color: #4E4E54;
  font-weight: 700;
  padding: 10px;
}

figcaption a {
  color: #4E4E54;
  font-size: 0.9em;
}

figcaption a:hover {
  color: #73A7F7;
  text-decoration: none;
}
/*------ Contact ------*/

.content-contact {
  background: #E5E5E5;
  padding-bottom: 34px;
}

#head-shot {
  background: #FFF;
  border: 1px solid #ccc;
  height: 200px;
  margin-bottom: 30px;
  padding: 3px;
  width: 200px;
}
/*------ Footer ------*/

footer {
  background: #3a4c59;
  padding-bottom: 30px;
  padding-top: 30px;
  color: #CCC;
}

footer li {
  display: inline-block;
  padding: 0 20px 10px 0px;
}

footer ul {
  padding-left: 0px;
}

footer li a,
footer li a:active,
footer li a:hover {
  color: #73A7F7;
}

footer p {
  margin: 20px 0 0 0;
}

footer p,
footer a,
footer a:hover {
  color: #AAA;
}

              
            
!

JS

              
                /*Add random pastel color themes to Holder.js */

function customThemes() {

  var customTheme = {};
  var numThemes = 200;

  for (var i = 0; i < numThemes; i++) {
    customTheme["pastel" + i] = {
      background: getRandomPastel(),
      foreground: "#4E4E54"
    };
  }
  return customTheme;
}

getRandomPastel = function() {
  var hue = Math.floor(Math.random() * 360);
  return 'hsl(' + hue + ', 85%, 80.5%)';
};

Holder.run({
  themes: customThemes()
});
              
            
!
999px

Console