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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
  <link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">

<nav class="navbar navbar-expand navbar-dark bg-dark sticky-top">
  <div class="collapse navbar-collapse" id="navigation-main">
  <ul class="navbar-nav w-100 mr-auto">
    <li class="nav-item">
      <a class="nav-link" href="#main"><i class="fa fa-home" aria-hidden="true"></i> Main</a>
    </li>
    </ul>
    <ul class="navbar-nav w-100">
    <li class="nav-item ml-auto">
      <a class="nav-link" href="#projects"><i class="fa fa-tasks" aria-hidden="true"></i> Projects</a>
    </li>
    <li class="nav-item">
      <a class="nav-link" href="#aboutme"><i class="fa fa-user" aria-hidden="true"></i> About Me</a>
      </li>
    <li class="nav-item">
      <a class="nav-link" href="#contactme"><i class="fa fa-phone" aria-hidden="true"></i> Contact Me</a>
    </li>
    </ul>
</div>
</nav>
<div id="main">
<div class="container">
  
 <h1>My road to become programist</h1>
  <blockquote class="blockquote"><p><cite>Motivation is what gets you started. Habit is what keeps you going.</cite></p>
    <footer class="blockquote-footer">Jim Ryun</footer>
</blockquote>
  </div>
  </div>
<div id="projects">
  <div class="container text-center">
  <h1>Soon there will be new projects here<h1>
    <ul>
      <li><img src="https://cdn1.iconfinder.com/data/icons/general-9/500/laptop-512.png" width="100px"></li>
      <li><img src="https://cdn1.iconfinder.com/data/icons/general-9/500/laptop-512.png" width="100px"></li>
      <li><img src="https://cdn1.iconfinder.com/data/icons/general-9/500/laptop-512.png" width="100px"></li>
      <li><img src="https://cdn1.iconfinder.com/data/icons/general-9/500/laptop-512.png" width="100px"></li>
      <li><img src="https://cdn1.iconfinder.com/data/icons/general-9/500/laptop-512.png" width="100px"></li>
    </div>
    </div>

    <div id="aboutme">
      <div class="container">
        <div class="row">
        <div class="aboutme-text col-sm-4">
        <h2>Hello,</h2>
        <p>My name is Cyprian. I am a student currently living in Poland. My interest range is from programming to motorsports. My goal is to become professional front-end developer in the future.</p></div>
         <div class="col-sm-6">
           <div class="me">
            <img src="https://zapodaj.net/images/883fcec3ee899.jpg" width="300px">
           </div>
          </div>
        </div>
        
        
          </div>
      </div>
    
        <div id="contactme">
          <div class="container">
            
              <h1>Let's talk</h1>
              <div class="span6">
            <form>
                <div class="controls controls-row">
                    <input id="name" name="name" type="text" class="span3" placeholder="Name"> 
                    <input id="email" name="email" type="email" class="span3" placeholder="Email address">
                </div>
                <div class="controls">
                    <textarea id="message" name="message" class="span6 w-100" placeholder="Your Message" rows="5"></textarea>
                </div>
                  
                <div class="controls">
                    <button id="contact-submit" type="submit" class="btn btn-primary input-medium pull-right">Send</button>
                </div>
            </form>
        </div>
            </div>
          </div>
        </div>
              


              
            
!

CSS

              
                html, body {
  font-family: Roboto Slab;
}
#navigation-main {
  font-family: Roboto Slab;
  font-size: 2.0em;
  
}

#main {
  background: url("https://www.arcwebsmac.com/wp-content/themes/arcwebsmac/images/portfolio-background.png") no-repeat;
  background-size: cover;
  color: white;
  height: 800px;
  display: flex;
  align-items: center;
}
#projects {
  background: url("https://4.bp.blogspot.com/-jGE-_yk_kjY/VDPWGQFBLeI/AAAAAAABQSk/CUBm0PX4zos/s0/Laptop%2Bcoffee%2Bcup%2Bagenda_HD.jpg");
  background-size: cover;
 height: 800px;
  display: flex;
  align-items: center;
  color: white;

}
#projects ul {
  list-style-type: none;
}

#aboutme {
  background: url("https://pixabay.com/get/e837b30f28f1043ed1534705fb0938c9bd22ffd41cb1164490f0c77fa0/computer-1220055_1920.jpg");
  height: 800px;
  background-size: cover;
  color: white;
  
  font-size: 1.5em;
  display: flex;
  align-items: center;
  font-weight: bold;
  
  
}
#aboutme h2 {
  font-size: 2em;
}

#aboutme .me {
  margin-left: 100px;
  border: 5px solid;
  padding: 0;
  position: absolute;
}

#contactme {
  background: url(http://kelonjones.com/wp-content/uploads/2016/06/cropped-KJ-Background-IMG-2.jpg) no-repeat;
  height: 800px;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
}

#contactme h1 {
  padding: 50px;
  color: white;
  font-weight: bold;
}

controls {
  display: block;
  align-items: center;
}

              
            
!

JS

              
                $(document).ready(function(){

  $(".navbar a, footer a[href='#myPage']").on('click', function(event) {

   
  if (this.hash !== "") {

   
    event.preventDefault();

   
    var hash = this.hash;

   
    $('html, body').animate({
      scrollTop: $(hash).offset().top
    }, 900, function(){

     
      window.location.hash = hash;
      });
    } 
  });
})

              
            
!
999px

Console