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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
  <nav class="navbar navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <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 title" href="#"><b>Daren</b>Tan</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right helvetica">
          <li class="active"><a href="#" class="hm-link">Home</a></li>
          <li><a href="#portfolio" class="pf-link">Portfolio</span></a></li>
          <li><a href="#contact" class="cn-link">Contact</span></a></li>
          <li><a href="#">Resume</span></a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Blog</span></a></li>
        </ul>
      </div>
      <!--/.nav-collapse -->
    </div>
  </nav>

  <div class="jumbotron1 text-center section">
    <div class="container home">
      <img src="http://i67.tinypic.com/2myyjyb.jpg" class="img-circle img-fluid" alt="display picture">
      <h1>Hi, I'm Daren Tan!</h1>
      <!--     <h2 class="black">Mobile & Web Developer / UX Designer / Data Scientist</h2> -->
      <!-- Text Carousel Component -->
      <div id="carousel-example" class="carousel slide" data-ride="carousel">
        <!-- Wrapper for slides -->
        <div class="row">
          <div class="col-xs-offset-3 col-xs-6">
            <div class="carousel-inner">
              <div class="item active">
                <div class="carousel-content">
                  <div>
                    <h2>Mobile Developer</h2>
                  </div>
                </div>
              </div>
              <div class="item">
                <div class="carousel-content">
                  <div>
                    <h2>Web Developer</h2>
                  </div>
                </div>
              </div>
              <div class="item">
                <div class="carousel-content">
                  <div>
                    <h2>UX Designer</h2>
                  </div>
                </div>
              </div>
              <div class="item">
                <div class="carousel-content">
                  <div>
                    <h2>Data Scientist</h2>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#carousel-example" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
      </div>
    </div>
    <a class="button"><i class="fa fa-angle-down" aria-hidden="true"></i></a>
  </div>
  <!--Portfolio Section-->
  <div class="container-fluid portfolio section-first">
    <div id="portfolio" class="anchor"></div>
    <h2>Portfolio</h2>
    <div class="container home">
      <div class="row">
        <div class="col-sm-4 col-m-4">
          <img src="http://ingridwu.dmmdmcfatter.com/wp-content/uploads/2015/01/placeholder.png" height="200px" class="img-fluid">
          <h3>G.T.A</br> Guide.Track.Alert</h3>
          <p>A Windows Phone app that is designed to enhance the lives of the elderly and handicapped community all over the world. Solves problems such as being unable to travel independently, prone to wandering out of their homes and getting lost and also
            unable to receive help immediately when in an emergency situations</p>
        </div>
        <div class="col-sm-4 col-m-4">
          <img src="http://ingridwu.dmmdmcfatter.com/wp-content/uploads/2015/01/placeholder.png" height="200px" class="img-fluid">
          <h3>GrabGo Restaurant</br>Management Website</h3>
          <p>A website that serves as a management dashboard for the restaurant manager as well as to keep track of food order and generate receipts for customers. Kitchen crew can also view, process and update orders. Technologies used were JSP and Struts
            Framework
          </p>
        </div>
        <div class="col-sm-4 col-m-4">
          <img src="http://ingridwu.dmmdmcfatter.com/wp-content/uploads/2015/01/placeholder.png" height="200px" class="img-fluid">
          <h3>#IStandWithAhmed</br>Twitter Sentiment Analysis</h3>
          <p>A Twitter Data and Sentiment Analysis on tweets collected between on 14-21 September 2015 about #IStandWithAhmed incident using R and Tableau</p>
        </div>
      </div>
    </div>
  </div>

  <!--Contact Me Section-->
  <div class="container-fluid contact-me text-center section-first" id="contact">
    <h2 class="space">Contact</h2>
    <!-- Social Links -->
    <div class="container-fluid text-center footer contact-form">
      <div class="row">
        <div class="container col-md-2 col-offset-md-2"></div>
        <!--Contact Form-->
        <div class="container col-md-4 col-offset-md-4">
          <form class="form-horizontal" role="form" method="post" action="index.php">
            <div class="form-group">
              <label for="name" class="control-label text-left">Name</label>
              <div class="">
                <input type="text" class="form-control" id="name" name="name" placeholder="First & Last Name" value="">
              </div>
            </div>
            <div class="form-group">
              <label for="email" class="control-label">Email</label>
              <div class="">
                <input type="email" class="form-control" id="email" name="email" placeholder="example@domain.com" value="">
              </div>
            </div>
            <div class="form-group">
              <label for="human" class="control-label">Subject</label>
              <div class="">
                <input type="text" class="form-control" id="human" name="human" placeholder="Hello There!">
              </div>
            </div>
            <div class="form-group">
              <label for="message" class="control-label">Message</label>
              <div class="">
                <textarea class="form-control" rows="4" name="message"></textarea>
              </div>
            </div>
            <div class="form-group">
              <div class="">
                <input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary wide-button">
              </div>
            </div>
            <div class="form-group">
              <div class="">
                <!-- Will be used to display an alert to the user-->
              </div>
            </div>
          </form>
        </div>
        <div class="container col-md-4 col-offset-md-2 space">
          <h2>Beam Me Up!</h2>

          <p class="message">Hey there! Send me an email if you want to know more about me, my services, my experience, my resume or if you want to chat with me over coffee!(I love coffee) Feel free to hit me up anytime.
            </br>
            </br>
            I promise to get back to you as soon as I can! ;)</br>
            </br>
          </p>
          <div class="text-center roboto">hello@darentan.tk</div>
        </div>
        <div class="container col-md-2 col-offset-md-2"></div>
      </div>
      </br>
      <h3>Alternatively, you can find me in the following places too!</h3>
      <ul class="social-list">
        <li><a href="https://www.facebook.com/DTSZII"><i class="fa fa-facebook"></i></a></li>
        <li><a href="https://twitter.com/darentanDZ"><i class="fa fa-twitter"></i></a></li>
        <li><a href="https://github.com/darentanDZ"><i class="fa fa-github"></i></a></li>
        <li><a href="https://my.linkedin.com/in/daren-tan-7b1087a8"><i class="fa fa-linkedin"></i></a></li>
</ul></br>
      <div class="roboto smaller">
        © darentan 2016    
</div>
</br>
    </div>
  </div>
</body>
              
            
!

CSS

              
                .img-circle {
  margin-top: 80px;
  margin-bottom: 10px;
  width: 35vh;
}

.home{
    -webkit-align-content: center;
    align-content: center;
    padding: 70px 0 0 0;
}
.icon-bar {
  background-color: white;
}

.jumbotron {
  background-img: ;
}

.jumbotron1 {
  color: inherit;
  text-align: center;
  background-size: cover;
}

.section {
  height: 100vh;
}

.section—first {
  height: 90vh;
}

.navbar {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #2980b9;
  font-size: 120%;
}

div h1 {
  color: #E0F5FC;
  font-size: 8vh;
}

div h2 {
  color: #E0F5FC;
  font-size: 6vh;
}

.black {
  color: black;
}

body {
  font-family: 'Roboto';
  background-color: #2980b9;
}

a {
  color: white;
}

.roboto {
  font-family: 'Roboto';
  color: white;
  font-size: 200%;
}


/*Carousel CSS*/

.carousel-content {
  color: white;
  align-items: center;
  text-align: center;
  height: 10vh;
}

.carousel-control.left,
.carousel-control.right {
  background-image: none !important;
  filter: none !important;
  margin-top: -60px;
}

.carousel {
  margin-top: -10px;
}

.social-list {
  list-style-type: none;
  font-size: 250%;
  color: white;
  padding-left: 0;
}

.social-list > li {
  display: inline;
  margin-left: 20px;
  margin-right: 20px;
}

.title{
  font-size:140%;
}

.portfolio {
  background-color: white;
  background-size: cover;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 50px;
}

.contact-me {
  text-align: center;
  padding-top: 20px;
}

.smaller{
  font-size:125%;
}

.anchor {
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    z-index: -1;
    top: 800px;
    left: 0;
    visibility: hidden;
}

.portfolio > h2 {
  color: #2980b9;
  padding-bottom: 30px;
}

.contact-form {
  color: white;
}

.control-label {
  float: left;
  padding-left: 10px;
}

.wide-button {
  width: 100%;
  background-color: #ffa900;
}

.message {
  font-size: 150%;
  text-align: justify;
  text-justify: auto;
}

.space {
  margin-left: 10px;
  margin-right: 10px;
}

.fa-angle-down{
  font-size: 12vh;
  margin-bottom:0px;
  padding-top:8vh;
}
              
            
!

JS

              
                    setCarouselHeight('#carousel-example');

    function setCarouselHeight(id) {
      var slideHeight = [];
      
      $(id + ' .item').each(function() {
        // add all slide heights to an array
        slideHeight.push($(this).height());
      });

      // find the tallest item
      max = Math.max.apply(null, slideHeight);

      // set the slide's height
      $(id + ' .carousel-content').each(function() {
        $(this).css('height', max + 'px');
      });
    }

    $(".button").click(function() {
      $('html,body').animate({
          scrollTop: $("#portfolio").offset().top
        },
        'slow');
    });

    $(".pf-link").click(function() {
      $('html,body').animate({
          scrollTop: $("#portfolio").offset().top
        },
        'slow');
    });

    $(".cn-link").click(function() {
      $('html,body').animate({
          scrollTop: $("#contact").offset().top
        },
        'slow');
    });

    $(".hm-link").click(function() {
      $('html,body').animate({
          scrollTop: $(".home").offset().top
        },
        'slow');
    });

    $('.button').fadeTo(1000, 0.5, function() {
      $('.element').fadeTo(800, 1);
    });
              
            
!
999px

Console