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

              
                <link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

<main>
  <div class="container-fluid">
    <nav role="navigation" class="navbar navbar-default navbar-fixed-top">
      <div class="navbar-header pull-right">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu">          
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
      </div>
      <div class="collapse navbar-collapse pull-right" id="nav-menu"> 
        <ul class="nav navbar-nav">          
          <li><a class="navbar-brand" href="#about">About</a></li>
          <li><a class="navbar-brand" href="#portfolio">Portfolio</a></li>
          <li><a class="navbar-brand" href="#contacts">Contacts</a></li>
        </ul>  
      </div>
    </nav>
    
    <div class="row">
      <div id="about" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <h2></h2>
        <div class="row text-shadow">
          <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 col-sm-offset-1 col-md-offset-1 col-lg-offset-1">
            <h3>About me</h3>
            <p class="lead">I'm Vitaly Danilov from Moscow. I'm a software developer. Nowadays I'm doing my first steps in Frontend development with <a href="http:\\freecodecamp.com" target="_blank">FreeCodeCamp.com</a></p>
            <p></p>
          </div>
          <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 col-sm-offset-1 col-md-offset-1 col-lg-offset-1">
            <img  src="http://s019.radikal.ru/i631/1607/cd/6ea5be772372.jpg" alt="my photo" class="img-responsive" id="my-photo">
          </div>
        </div>
      </div>
      <div id="portfolio" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
          <h2>Projects I've already done</h2><hr/>
          <div id="thumbnails" class="row">
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="https://codepen.io/dvainf/full/zqVZzm/" target="_blank" class="thumbnail">
                <img src="http://s020.radikal.ru/i703/1607/d6/15b76e5f28e4.jpg" alt="Jury Gagarin">
                <div class="caption">
                  <p class="lead">Tribute page of Jury Gagarin</p>
                  <hr/>
                  <p class="text-primary">HTML, CSS, Bootstrap 3</p>
                </div>
              </a>
            </div>            
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="#" class="thumbnail">
                <img src="http://s017.radikal.ru/i408/1607/5e/a6e4eee5fb3e.jpg" alt="placeholder">
                <div class="caption">
                  <p class="lead">Empty</p>
                </div>
              </a>
            </div>
            <div class="clearfix visible-sm-block visible-md-block"></div>
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="#" class="thumbnail">
                <img src="http://s017.radikal.ru/i408/1607/5e/a6e4eee5fb3e.jpg" alt="placeholder">
                <div class="caption">
                  <p class="lead">Empty</p>
                </div>
              </a>
            </div>
            <div class="clearfix visible-lg-block"></div>
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="#" class="thumbnail">
                <img src="http://s017.radikal.ru/i408/1607/5e/a6e4eee5fb3e.jpg" alt="placeholder">
                <div class="caption">
                  <p class="lead">Empty</p>
                </div>
              </a>
            </div>            
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="#" class="thumbnail">
                <img src="http://s017.radikal.ru/i408/1607/5e/a6e4eee5fb3e.jpg" alt="placeholder">
                <div class="caption">
                  <p class="lead">Empty</p>
                </div>
              </a>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
              <a href="#" class="thumbnail">
                <img src="http://s017.radikal.ru/i408/1607/5e/a6e4eee5fb3e.jpg" alt="placeholder">
                <div class="caption">
                  <p class="lead">Empty</p>
                </div>
              </a>
            </div>            
          </div>
      </div>
      <div id="contacts" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <h2>Contacts</h2>
        <div class="row">
          <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 col-md-offset-1 col-lg-offset-1">
              <div class="panel panel-info">
                <div class="panel-heading">
                  <h3 class="panel-title">Contact me</h3>
                  <div class="panel-body">
                    <div class="alert alert success hidden" role="alert" id="msg-submit">
                      Message has sent!                      
                    </div>
                    <form id="message-form">
                      <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="form-group has-feedback">
                            <label for="name" class="control-label">Name:</label>
                            <input type="text" id="name" name="name" class="form-control" required="required" value="" placeholder="John Smith" maxlength="30">
                            <span class="glyphicon form-control-feedback"></span>
                          </div>
                        </div>
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="form-group has-feedback">
                            <label for="email" class="control-label">Email:</label>
                            <input type="email" id="email" name="email" class="form-control" required="required"  value="" placeholder="mail@gmail.com" maxlength="30">
                            <span class="glyphicon form-control-feedback"></span>
                          </div>
                        </div>
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="form-group has-feedback">
                            <label for="message" class="control-label">Message:</label>
                            <textarea id="message" class="form-control" rows="3" placeholder="Enter your message" maxlength="500" required="required"></textarea>
                          </div>
                        </div>                        
                        <button type="submit" class="btn btn-primary pull-right">Submit</button>
                      </div>  
                    </form>
                  </div>
                </div>
              </div>
          </div>
          <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2 col-sm-offset-3 col-md-offset-4 col-lg-offset-4">
            <form id="contact-buttons">
              <div class="row">               
                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
                  <a href="https://github.com/dvainf" target="_blank" class="btn btn-block btn-social btn-github">
                    <span class="fa fa-github"></span> Github
                  </a>                  
                </div>
                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
                  <a href="https://www.linkedin.com/in/vitaly-danilov-22395b120?trk=hp-identity-name" target="_blank" class="btn btn-block btn-social btn-linkedin">
                    <span class="fa fa-linkedin"></span> LinkedIn
                  </a>
                </div>                               
               </div>
            </form>
          </div>
        </div>
        
      </div>
    </div>
  </div>
</main>

<footer>
  <div class="container footer">
    <div class="row">
      © dvainf, 2016
    </div>
  </div>
</footer>

              
            
!

CSS

              
                body{
  background-color: #bdc3c7;  
  font-family: 'Open Sans', sans-serif;
}
footer{
  background-color: #757575;  
  color: #CFD8DC;
}
h2{    
  font-family: 'Alfa Slab One', cursive;
  font-size: 40px;
  margin-top: 65px;
  text-align: center;  
}
h3{
  top: 50%;
}
.navbar-default {
  background-color: #757575;
  opacity: 0.8;  
}
.navbar-default .nav .navbar-brand{
  color: #CFD8DC;
}
.navbar-default .nav .navbar-brand:hover{    
  background-color:  #616161;
  color: #CFD8DC;
}
.navbar-default .nav .navbar-brand:focus {
  background-color:  #525252;
  color: #CFD8DC;
}

.caption p{
  text-align: center;
}
.text-shadow{
  color: #ffffff;
  text-shadow: -1px -1px #000000,
        -1px 1px #000000,
        1px -1px #000000,
        1px 1px #000000;
}

#about{
  background: url('http://s019.radikal.ru/i626/1607/5b/4958bbab5791.jpg') no-repeat center center fixed;    
  background-color: #263238;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  min-height: 100vh;
}

#portfolio{
  background: url('http://s019.radikal.ru/i624/1607/40/0ebec8c65caa.jpg') no-repeat center center fixed;
  background-color: #00796B;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  min-height: 100vh;
}
#contacts{
  background: url('http://s010.radikal.ru/i314/1607/e8/411ba4ab18d7.jpg') no-repeat center center fixed; 
  background-color: #bdc3c7;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  min-height: 100vh;
}
#about h2{
  color: #000000;  
}
#portfolio h2{
  color: #ECEFF1;  
}
#contacts h2{
  color: #FFFFFF;
}
#my-photo{
  border-radius: 50%;
}


              
            
!

JS

              
                var $page = $('html, body');
$('a[href*="#"]').click(function() {
    $page.animate({
        scrollTop: $($.attr(this, 'href')).offset().top
    }, 400);
    return false;
});
              
            
!
999px

Console