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

              
                placeholderbtn-primary<nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#section1">David</a>
            </div>
            <div>
                <div class="collapse navbar-collapse" id="myNavbar">
                    <ul class="nav navbar-nav navbar-right barra">
                        <li><a href="#section1">Sobre Mi</a></li>
                        <li><a href="#section2">Portfolio</a></li>
                        <li><a href="#section3">Contacto</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>

    <div id="section1" class="container text-center about">
        <h1>David Amador Moreno</h1>
        <p class="lead"></p>
        <a href="https://codepen.io/alphaeri/" target="_blank"><i class="fa fa-codepen fa-5x" aria-hidden="true"></i></a>
        <a href="https://github.com/damadormoreno" target= "_blank"><i class="fa fa-github-square fa-5x" aria-hidden="true"></i></a>
        <i class="fa fa-google-plus-square fa-5x" aria-hidden="true"></i>
        <a href="https://es.linkedin.com/in/davidamadormoreno" target="_blank"><i class="fa fa-linkedin-square fa-5x" aria-hidden="true"></i></a>
        <a href="https://twitter.com/coding_noob" target="_blank"><i class="fa fa-twitter-square fa-5x" aria-hidden="true"></i></a>

    </div>
    <div id="section2" class="container text-center portfolio">
        <h1>Portfolio</h1>
        <div class="row text-center">

            <div class="card col-sm-4">
                <img class="card-img-top imagen-tarjeta" src="https://raw.githubusercontent.com/damadormoreno/Portfolio/master/img/google.png" alt="Card image cap">
                <div class="card-block">
                    <h4 class="card-title">Google copy</h4>
                    <p class="card-text">Copia de la página de google, usando html5 / css3 para un proyecto de <a href="http://www.theodinproject.com" target="_blank">The Odin project</a></p>
                    <a href="https://rawgit.com/damadormoreno/google-homepage/master/index.html" target="_blank" class="btn btn-info">Ver</a>
                </div>
            </div>

            <div class="card col-sm-4">
                <img class="card-img-top imagen-tarjeta" src="https://raw.githubusercontent.com/damadormoreno/Portfolio/master/img/tribute.png" alt="Card image cap">
                <div class="card-block">
                    <h4 class="card-title">Tribute Page</h4>
                    <p class="card-text">Página tributo sobre Einstein para el proyecto <a href="https://www.freecodecamp.com" target="_blank">Free Code Camp</a></p>
                    <a href="https://codepen.io/alphaeri/pen/zqWBXX" target="_blank" class="btn btn-info">Ver</a>
                </div>
            </div>

        </div>
    </div>

    <div id="section3" class="container text-center">
        <h1>Contacto</h1>
        <div class="col-sm-6 col-md-6">
            <form action="MAILTO:amador.moreno.david@gmail.com" method="post" enctype="text/plain" class="text-left">
                Nombre:
                <br>
                <input type="text" name="name" placeholder="Nombre" class="form-control input-lg">
                <br> E-mail:
                <br>
                <input type="text" name="mail" placeholder="Email" class="form-control input-lg">
                <br> Comentario:
                <br>
                <textarea class="form-control" rows="5" id="comment"></textarea>
                <br>
                <br>
                <button type="submit" class="btn btn-primary">Enviar</button>
            </form>
        </div>
        <div class="col-sm-6 col-md-6 text-left contacto">
          <p class="lead">Puedes ponerte en contacto conmigo a través de mi correo electrónico, o con los enlaces a las redes sociales que aparecen más arriba.</p>
        </div>

    </div>
              
            
!

CSS

              
                body
{
    font-family: 'Montserrat', sans-serif;

    position: relative;

    color: #fff;
    background-color: lightgrey;
}
h1{
  font-family: 'Shadows Into Light', cursive;
}
.about a:link, a:visited {
  color: #fff;
  background-color: inherit;
}
.about a:hover, a:active {
  color:lightgrey;
  background-color: inherit;
}
#section1
{
    height: 500px;
    padding-top: 50px;

    color: #fff;
    background-color: #1e88e5;
}
#section2
{
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;

    color: #fff;
    background-color: #673ab7;
}
#section3
{
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;

    color: #fff;
    background-color: #ff9800;
}
.fa
{
    padding: 10px;
}
.barra
{
    padding-right: 100px;

    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, .2);
}
.imagen-tarjeta
{
    max-width: 100%;
    height: auto;
}
.card
{
    margin: 10px;
    padding: 10px;

    color: black;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #000;
    border-radius: 4px;
}
.portfolio a{
  color: blue;
}
.contacto{
  padding: 20px;
}

              
            
!

JS

              
                $(document).ready(function(){

  $('body').scrollspy({target: ".navbar", offset: 50});


  $("#myNavbar a").on('click', function(event) {

    
    event.preventDefault();

    
    var hash = this.hash;

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

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

              
            
!
999px

Console