Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!--BURGER MENU-->
<div class="sidebar">
  <h2>MENU</h2>
<ul>
  <li><a href="#Header">Home</a></li>
  <li><a href="#About">About</a></li>
  <li><a href="#Portfolio">Portfolio</a></li>
  <li><a href="#Contact">Contact</a></li>
</ul>
</div>

<div class="content">
  <img src="https://image.flaticon.com/icons/svg/128/128453.svg" alt="Burger Menu" width="30px" class="menu-bar"/>
  
<!--HEADER-->
<header id="Header">
  <div class="image"></div>
  <div id="heading">
    <h1 class="h1">Hi, I am <span class="Mauri">Mauricio</span></h1>
    <h4>Aspiring Web Designer and Developer</h4>
  </div>
</header>
  
<!--ABOUT-->
  <section id="About">
    <h2 class="about">MY STORY</h2>
    <h3 class="quote">A little piece of who I am and what I've done.</h3>
    <hr width="50px" style="border-color:#000000"/>
    <div class="p1">
    <p>I am an aspiring Web Designer and Developer. Throughout highschool I always struggled with what I wanted to do with my life; what I wanted to study and where. I had many options and none of them seemed to please me.</p>
    <p>I always loved design, but I knew that the life of a Graphic Designer is always very complicated. I took courses on 3D Design and borrowed my sister's camera to learn photography and filmmaking. What can I say, I like art. I started working as a freelancer but mostly designing Powerpoint Presentations for other people. Amazingly I earned more than I would imagine, but I knew that wasn't enough. And so it began my journey to learn coding.</p>
    <p>Before <b>FreeCodeCamp</b> I only made one website, it sucked. But now, after the first few courses I've come to realize that I love coding. The feeling of creating something that wasn't there before. So hopefully, in a few more years my coding levels improve. So stick around because someday I am going to be great.</p>
    </div>
    <br>
    <div class="text-center">
    <a href="#Portfolio" class="btn btn-default" role="button">CHECK MY WORK</a>
    </div>
  </section>

<!--PORTFOLIO-->
  <section id="Portfolio">
    <h2 class="portfolio">MY WORK</h2>
    <h3 class="quote">A bunch of things that I've done so far.</h3>
    <hr width="50px" style="border-color:#000000"/>

    <div class="gallery">
    <img src="https://images.pexels.com/photos/404291/pexels-photo-404291.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="San Francisco" width="200px" class="thumbnail"/>
            <img src="https://images.pexels.com/photos/196802/pexels-photo-196802.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="Brown Cliff" width="200px" class="thumbnail"/>
          <img src="https://images.pexels.com/photos/217007/pexels-photo-217007.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="Crocodile" width="200px" class="thumbnail"/>
          <img src="https://images.pexels.com/photos/164829/pexels-photo-164829.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="Microphone" width="200px" class="thumbnail" />
          <img src="https://images.pexels.com/photos/397531/pexels-photo-397531.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="Skyscraper" width="200px" class="thumbnail"/>
          <img src="https://images.pexels.com/photos/428861/pexels-photo-428861.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="Beetle" width="200px" class="thumbnail"/>
    </div>
    <br>
    <div class="text-center">
    <a href="#Contact" class="btn btn-default" role="button">GET IN TOUCH?</a>
    </div>
  </section>

<!--CONTACT-->
  <section id="Contact">
     <h2 class="contact">CONTACT</h2>
    <h3 class="quote">Write in a few words whatever you want to tell me.</h3>
    <hr width="50px" style="border-color:#000000"/>
    <p>Enough about me, I want to hear about you and anything you have in mind. Please fill the form below to contact me!</p>
    <form>
<ul class="form-style-1">
    <li><label>Full Name <span class="required">*</span></label>
      <input type="text" name="field1" class="field-divided" placeholder="First" />&nbsp;<input type="text" name="field2" class="field-divided" placeholder="Last" />
    </li>
    <li>
        <label>Email <span class="required">*</span></label>
        <input type="email" name="field3" class="field-long" />
    </li>
    <li>
        <label>Subject</label>
        <select name="field4" class="field-select">
        <option value="Advertise">Advertise</option>
        <option value="Partnership">Partnership</option>
        <option value="General Question">General</option>
        </select>
    </li>
    <li>
        <label>Your Message <span class="required">*</span></label>
        <textarea name="field5" id="field5" class="field-long field-textarea"></textarea>
    </li>
    <li>
        <input type="submit" value="Submit" />
    </li>
</ul>
</form>
  </section>
  <br>
<footer>
  <h2 id="foot-title">I LOVE MEETING NEW PEOPLE</h2>
  <h4 id="foot-comment">Want to work together or just chat? Feel free to contact me using the form, or any of my social networks listed below.</h4>
  <br>
  <br>
  <ul class="images">
  <li>
    <a href="https://www.facebook.com/mauri.salasgarcia"><img src="https://image.flaticon.com/icons/svg/145/145802.svg" alt="facebook" id="fb"/></a>
  </li>
  
  <li>
    
    <a href="https://twitter.com/maurysg29"><img src="https://image.flaticon.com/icons/svg/145/145812.svg" alt="twitter" id="tweet"/></a>
  </li>
  
  <li>
    <a href="https://www.instagram.com/mauriciosalas29/"><img src="https://image.flaticon.com/icons/svg/145/145805.svg" alt="instagram" id="ig"/></a>
  </li>
  
  <li>
    
    <a href="https://plus.google.com/u/0/112677584992766960367"><img src="https://image.flaticon.com/icons/svg/145/145804.svg" alt="google-plus" id="g-plus"/></a>
  </li>
</ul>
  <br>
  <br>
<ul class="footer-nav">
  <li><a href="#Header">Home</a></li>
  <li><a href="#About">About</a></li>
  <li><a href="#Portfolio">Portfolio</a></li>
  <li><a href="#Contact">Contact</a></li>
</ul>
    </footer>
</div>
            
          
!
            
              /*FONTS*/
@import url(https://fonts.googleapis.com/css?family=Roboto);
@import url(https://fonts.googleapis.com/css?family=Noto+Serif);
@import url(https://fonts.googleapis.com/css?family=Oswald);
@import url(https://fonts.googleapis.com/css?family=Satisfy);

/*BURGER MENU*/
.sidebar{
  position: absolute;
  width: 250px;
  height: 100%;
  background: #333;
  color: #fff;
  z-index: 1;
  outline: 1px solid #2a2a2a;
}

.sidebar h2{
  text-align: center;
  margin: 0;
  padding: 10px;
  background: #2a2a2a;
  @font-face{
    font-family: Lato;
    src: url(https://fonts.googleapis.com/css?family=Lato);
  }
  font-weight: bold;
}

.sidebar ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li{
  outline: 1px solid #2a2a2a;
  transition-property: border;
  transition-duration: .3s;
  @font-face{
    font-family: Lato;
    src: url(https://fonts.googleapis.com/css?family=Lato);
  }
}

.sidebar li:hover{
  background: #444;
  border-left: 5px solid #eee;
}

.sidebar a{
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px;
}

.content{
  width: 100%;
  height: 100%;
  position: absolute;
  background: #eee;
  padding: none;
  z-index: 1;
  transition-duration: 0.3s;
}

.menu-bar{
  cursor: pointer;
  position: absolute;
  margin: 10px;
  z-index: 2;
}

.open{
  margin-left: 250px;
}

/*HEADER*/

header{
  height: 104vh;
  margin-bottom:20px;
  position: relative;
}

header .image{
  background-image:url(https://images.pexels.com/photos/7369/startup-photos.jpg?w=940&h=650&auto=compress&cs=tinysrgb);
  background-size: cover; 
  filter: grayscale(1) blur(1px);
  -webkit-filter: grayscale(1) blur(1px);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  width: 100%;
}

#heading{
  position: absolute;
  top: 30%;
}

.h1{
  @font-face{
    font-family: Noto Serif;
    src: url(https://fonts.googleapis.com/css?family=Noto+Serif); 
  }
  margin-left: 40px;
  font-size: 60px;
}  

.Mauri{
  font-family: Roboto;
  font-weight: bold;
  font-style: italic;
  color:#eeba19;
  font-size: 60px;
}

header h4{
  font-family: Lato;
  font-size: 15px;
  margin-left: 43px;
  margin-top: -5px;
  color: #5597F0;
  font-weight: bold;
}

p{
  max-width: 600px;
  text-align: justify;
  margin: 0 auto 20px;
}

/*GENERAL SETTINGS*/
section{
  height: 100%;
  margin-bottom:45px;
}

.btn-default{
  font-family: Lato;
  font-size: 10px;
  font-weight: bold;
}

/*ABOUT*/
.about{
  font-family: Oswald;
  font-weight: bold;
  padding-top: 40px;
  text-align: center;
}

.quote{
  font-family: Satisfy;
  margin-top: -3px;
  text-align: center;
  font-size: 15px;
}

p{
  text-align: center;
}

/*PORTFOLIO*/
#Portfolio{
  text-align: center;
}

.portfolio{
  font-family: Oswald;
  font-weight: bold;
  padding-top: 40px;
  text-align: center;
}

.gallery{
  display: inline-block;
  text-align: center;
  columns: 3;
  -webkit-columns: 3;
  -moz-columns: 3;
}
/*CONTACT*/

.contact{
  font-family: Oswald;
  font-weight: bold;
  padding-top: 40px;
  text-align: center;
}

.form-style-1 {
    margin:10px auto;
    max-width: 400px;
    padding: 20px 12px 10px 20px;
    font: 13px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.form-style-1 li {
    padding: 0;
    display: block;
    list-style: none;
    margin: 10px 0 0 0;
}

.form-style-1 label{
    margin:0 0 3px 0;
    padding:0px;
    display:block;
    font-weight: bold;
}

.form-style-1 input[type=text]{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border:1px solid #BEBEBE;
    padding: 7px;
    margin:0px;
    -webkit-transition: all 0.30s ease-in-out;
    -moz-transition: all 0.30s ease-in-out;
    -ms-transition: all 0.30s ease-in-out;
    -o-transition: all 0.30s ease-in-out;
    outline: none;  
}

.form-style-1 input[type=text]:focus, 
.form-style-1 input[type=date]:focus,
.form-style-1 input[type=datetime]:focus,
.form-style-1 input[type=number]:focus,
.form-style-1 input[type=search]:focus,
.form-style-1 input[type=time]:focus,
.form-style-1 input[type=url]:focus,
.form-style-1 input[type=email]:focus,
.form-style-1 textarea:focus, 
.form-style-1 select:focus{
    -moz-box-shadow: 0 0 8px #88D5E9;
    -webkit-box-shadow: 0 0 8px #88D5E9;
    box-shadow: 0 0 8px #88D5E9;
    border: 1px solid #88D5E9;
}

.form-style-1 .field-divided{
    width: 49%;
}

.form-style-1 .field-long{
    width: 100%;
}

.form-style-1 .field-select{
    width: 100%;
}

.form-style-1 .field-textarea{
    height: 100px;
}

.form-style-1 input[type=submit], .form-style-1 input[type=button]{
    background: #4B99AD;
    padding: 8px 15px 8px 15px;
    border: none;
    color: #fff;
}

.form-style-1 input[type=submit]:hover, .form-style-1 input[type=button]:hover{
    background: #4691A4;
    box-shadow:none;
    -moz-box-shadow:none;
    -webkit-box-shadow:none;
}

.form-style-1 .required{
    color:red;
}

/*FOOTER*/
footer{
  text-align: center;
  width: 100%;
  padding: 40px 0;
  background-color: #c0c9d6;
}

#foot-title{
  text-align: center;
  font-family: Oswald;
  font-weight: bold;
}

#foot-comment{
  text-align: center;
  font-family: Lato;
  font-size: 15px;
  margin: -5px 43px 20px 43px;
}

footer ul{
  list-style: none;
  text-align: center;
}

footer ul li{
  display: inline-block;
}

footer img{
  width: 50px;
}

.footer-nav{
  text-align: left;
  margin: 10px;
  text-color: #000;
}


            
          
!
            
              $(".menu-bar").on("click", function(){
  $(".content").toggleClass("open");
});
$(".sidebar a").on("click",function(){
  $('.content').removeClass("open");
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console