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

              
                <div class="home" id="home">
  <div class="row-wrapper">
    <div class="vertical-centering" id="navbar">
      <a class="navbar-item" href="#home" style="text-decoration:none"/>HOME</a>
      <a class="navbar-item" href="#about" style="text-decoration:none"/>ABOUT</a>
      <a class="navbar-item" href="#portfolio" style="text-decoration:none"/>PORTFOLIO</a>
      <a class="navbar-item" href="#contact" style="text-decoration:none"/>CONTACT</a>
    </div>
    <div class="socialmedia vertical-centering">
      <a href="https://www.freecodecamp.org/fccdafdb651" class="fa fa-free-code-camp" id="socialmedia-icon" target="blank"></a>
      <a href="https://github.com/Laurosa" class="fa fa-github-alt" id="socialmedia-icon" target="blank"></a>
      <a href="https://codepen.io/laugardie" class="fa fa-codepen" id="socialmedia-icon" target="blank"></a>
     </div>
  </div>
  <h1 class="hello">HI, I'M LAURA</h1>
  <h2>CATCH MOUSE AND GAVE IT AS A PRESENT SWAT TURDS AROUND THE HOUSE</h2>
</div>
<div class="about" id="about">
  <div class="transition1"></div>
  <div class="about-content">
    <h1 class="headings">ABOUT ME</h1>
    <p>Scratch at fleas, meow until belly rubs, hide behind curtain when vacuum cleaner is on scratch strangers and poo on owners food chase laser sit in a box for hours missing until dinner time
Cat ipsum dolor sit amet, eat owner's food yet be superior. Meow friends are not food kitty power attack like a vicious monster. Flop over x for show belly but ignore the squirrels, you'll never catch them anyway.</p>
  </div>
  <img class="profile-photo" src="http://res.cloudinary.com/laugardie/image/upload/v1504796652/FCC%20PORTFOLIO/Laura_foto_perfil_g2w2ub.png" alt="A picture of Laura">
</div>
<div class="portfolio" id="portfolio">
  <div class="project">
    <img class="img-portfolio" src="http://res.cloudinary.com/laugardie/image/upload/v1504796670/FCC%20PORTFOLIO/TRIBUTE_PAGE_wuwibi.png" alt="tribute page project free code camp">
    <div class="project-wrapper">
      <div class="project-title">TRIBUTE PAGE</div>
      <div class="tech">HTML / CSS
      </div>
      <div class="project-summary">This is my first Free Code Camp Project. It is a tribute page to Barney Stinson. This is the first project that I have coded.</div>
      <div class="btn-wrapper">
        <button class="btn-see-code"><a href="https://codepen.io/laugardie/pen/brZEyO" class="btn-see-code" target="blank" style="text-decoration:none">VIEW CODE</a></button>
      </div>
    </div>
  </div>
  <div class="project">
    <div class="project-wrapper1">
      <div class="project-title">PORTFOLIO</div>
      <div class="tech">HTML / CSS
      </div>
      <div class="project-summary">This is my second Free Code Camp Project. It is a portfolio about myself. It is the one your are seeing right now.</div>
      <div class="btn-wrapper">
        <button class="btn-see-code"><a href="https://codepen.io/laugardie/pen/eEoBog" class="btn-see-code" target="blank" style="text-decoration:none">VIEW CODE</a></button>
      </div>
    </div>
    <img class="img-portfolio" src="http://res.cloudinary.com/laugardie/image/upload/v1504796653/FCC%20PORTFOLIO/portfolio1_bad0nj.png" alt="portfolio poyect free code camp">
  </div>
</div>
<div class="contact" id="contact">
  <div class="triangles-wrapper">
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
    <div class="triangles"></div>
  </div>
  <h1 class="headings">SAY 'HI'</h1>
  <form action="https://formspree.io/laugardie89@gmail.com" method="POST">
    <input type="text" id="name" name="name" placeholder="YOUR NAME">
    <input type="text" id="email" name="email" placeholder="YOUR EMAIL">
    <textarea type="textarea" id="message" name="message" placeholder="YOUR MESSAGE"></textarea>
    <input type="submit" value="SEND MESSAGE">
  </form>
  <div class="socialmedia centering">
      <a href="https://www.freecodecamp.org/fccdafdb651" class="fa fa-free-code-camp" style="font-size:30px;color:#B0E0E6;text-decoration:none;" target="blank"></a>
      <a href="https://github.com/Laurosa" class="fa fa-github-alt" style="font-size:30px;color:#B0E0E6;text-decoration:none;" target="blank"></a>
      <a href="https://codepen.io/laugardie" class="fa fa-codepen" style="font-size:30px;color:#B0E0E6;text-decoration:none;" target="blank"></a>
     </div>
  <p class="coded">©2017 Coded and designed with <a class="fa fa-heart" style="font-size:20px;color:red;text-decoration:none;"></a> by Laura García Diéguez</p>
  <a href="#home" class="fa fa-arrow-up" id="arrow-up" style="font-size:30px;color:#B0E0E6;text-decoration:none;"></a>
</div>
              
            
!

CSS

              
                body {
  margin: auto;
}

.home {
  background: #B0E0E6;
  width: 100vw;
  height: 600px;
  margin: auto;
}

.row-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.vertical-centering {
  display: flex;
  align-items: center;
}

#navbar {
  height: 70px;
  width: 500px;
  padding: auto 20px;
}

.navbar-item {
  margin: auto;
  color: white;
  font-family: Arial;
  letter-spacing: 1px;
  font-size: 0.9em;
  font-weight: 100;
}

.socialmedia {
  letter-spacing: 20px;
}

#socialmedia-icon {
  font-size: 30px;
  color: white; 
  text-decoration: none;
}

h1 {
  color: white;
  font-family: Montserrat;
  font-size: 6.5em;
  font-weight: bold;
  letter-spacing: 5px;
  text-align: center;
}

.hello {
  margin-top: 15%;
  margin-bottom: 0%;
}

h2 {
  color: white;
  font-family: Arial;
  font-size: 1em;
  font-weight: lighter;
  letter-spacing: 4px;
  text-align: center;
  margin: 0px 0px;
}

.about {
  background: white;
  position: relative;
  overflow: hidden;
}

.transition1 {
  background: #B0E0E6;
  height: 500px;
  width: 200%;
  transform: rotateZ(-5deg) translateX(-50px);
  z-index: 10;
  position: absolute;
  bottom: 100%;
}

.about-content {
  flex-direction: column;
  padding: 20% 40% 20% 10%;
  justify-content: space-around;
}

.headings {
  color: rgba(0, 0, 0, 0.7);
  margin: 0px;
  margin-top: 20px;
}

p {
  font-family: Roboto Condensed;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 100;
  font-size: 1.2em;
}

.profile-photo {
  width: 460px;
  max-width: 40%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.portfolio {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: #f6f6f6;
}

.project {
  justify-content: space-around;
  display: flex;
  align-items: center;
  margin: auto 80px 40px;
}

.project-wrapper {
  max-width: 35%;
  margin: 20px 0px;
}

.project-wrapper1 {
  max-width: 35%;
  margin: 20px 0px;
  padding-left: 40px;
}

.project-title {
  font-family: Montserrat;
  color: grey;
  font-size: 1.5em;
  font-weight: bold;
  padding: 10px 10px 20px 0px;
}

.tech {
  color: #B0E0E6;
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 0.9em;
}

.project-summary {
  font-family: Roboto Condensed;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.1em;
  font-weight: 100;
  padding-top: 15px;
  padding-bottom: 30px;
}

.btn-wrapper {
  text-align: center;
}

.btn-see-code {
  background-color: #B0E0E6;
  color: white;
  border: 1px solid #B0E0E6;
  width: 200px;
  height: 50px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
}

.img-portfolio {
  width: 500px;
  max-width: 45%;
}
  
.contact {
  background-color: white;
  height: 700px;
}

.triangles-wrapper {
  display: flex;
  overflow: hidden;
}

.triangles {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-top: 40px solid #f6f6f6;
}

form {
  text-align: center;
}

input {
  font-family: Roboto Condensed;
  font-size: 1.2em;
  width: 36.4%;
  padding: 12px 20px;
  box-sizing: border-box;
  outline: none;
  color: rgba(0,0,0,0.6);
}

textarea {
  font-family: Roboto Condensed;
  font-size: 1.2em;
  width: 70%;
  height: 200px;
  resize: none;
  padding: 12px 20px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 1.2em;
  border-color: rgb(220, 220, 220);
  color: rgba(0,0,0,0.6);
}

textarea:focus {
  outline: none;
}

input[type=submit] {
  background-color: #B0E0E6;
  border: none;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  width: 73.5%;
  font-size: 1.2em;
}

.centering {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-left: 15px;
}

.coded {
  text-align: center;
  margin: auto;
  padding-top: 70px;
}

#arrow-up {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 30px;
}

//media queries
@media screen and (max-width: 1221px) {
  .headings {
    font-size: 3em;
  }
  
  .about {
    height: 600px;
  }
}
@media screen and (max-width: 785px) {
//--------Home
  .navbar-item {
    font-weight: bold;
    min-height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  
  h1 {
    font-size: 3em;
  }
  
  .hello {
    margin-top: 50px;
    margin-right: 50px;
    margin-left: 50px;
  }
  
  h2 {
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 10px;
  }
  
  .home {
    height: 350px;
  }
  
  #socialmedia-icon {
    display: none;
  }
//---------About  
  .about {
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 30px;
    height: auto;
  }
  
   .profile-photo {
    position: static;
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    order: 1;
    align-self: center;
  }
  
  .about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin-left: 50px;
    margin-right: 50px;
    order: 2;
    }
  
  //--------Portfolio
  .project {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 20px;
  }

  .project-wrapper, .project-wrapper1 {
    max-width: 90%;
    order: 2;
  }
  
  .project-wrapper {
    padding-bottom: 20px;
  }
  
  .project-wrapper1 {
   padding-left: 0px;
  }
  
  .project-title {
    white-space: nowrap;
  }
  
  .tech {
    font-size: 0.9em;
  }
  
  .project-summary {
    font-size: 1.3em;
  }
  
  .btn-see-code {
  width: 150px;
  height: 40px;
  font-size: 0.9em;
}
 
  .img-portfolio {
  max-width: 90%;
  order: 1;
  }
//-------Contact  
  .contact {
    height: 550px;
  }
  
  .headings {
    margin-top: 30px;
  }
  
  input {
  font-size: 0.9em;
  width: 36.5%;
  margin-top: 10px;
}

  textarea {
  font-size: 0.9em;
  width: 63.5%;
  height: 150px;
}

  input[type=submit] {
  width: 61%;
  font-size: 1em;
} 
  .coded {
  padding-top: 40px;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console