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

              
                <div id="container">
<header>
    <nav id="navbar" class="sticky">
      <li class="nav-links"><a href="#about">About</a></li>
      <li class="nav-links"><a href="#projects">Work</a></li>
      <li class="nav-links"><a href="#contact">Contact</a></li>
    </nav>
  </header>
  
  
<!-- HEADER.KNAV BAR -->

<!-- WELCOME WITH HERO IMAGE -->
  <div id="welcome-section">
    
    <div id="welcome-content">  
      <h1>Katie Cline Malloy</h1>
        <div id="welcome-services"  >
        <h2>Web </h2>
        <h2>Content </h2>
        <h2>Marketing </h2>
      </div>
    </div>

  </div>
  
<!--   ABOUT -->
  <div id="content">
  <section id="about">
    <h3>Who I am</h3>
    <p>With a background in journalism, I've since turned my efforts on all things related to content creation. From web design and development to writing for businesses and brands, I aim to help tell a story — through design, words and images.</p>
  </section>
  
  
<!-- PROJECTS -->
  <section id="projects">
    <div id="web-projects">
      <h3>Web Design and Development</h3>
        <div id="web-project-tiles">
          <div class="project-tile">
            <a href="https://codepen.io/klcm/full/PaprqJ/" target="_blank">
            <img class="tile-img" src="http://i67.tinypic.com/bhhxrr.png" alt="Screenshot of Only Footprints Yoga site"/></a>
         </div>
          <div class="project-tile">
            <a href="https://codepen.io/klcm/full/rKWNMW/" target="_blank">
            <img class="tile-img" src="http://i66.tinypic.com/4hjeb.png" alt="Screenshot of Luang Prabang tribute site" /></a>
        </div>
          <div class="project-tile">
            <a href="https://codepen.io/klcm/full/rKxmZY/" target="_blank">
            <img class="tile-img" src="http://i67.tinypic.com/8ythrl.png" alt="Screenshot of bootstrap site" /></a>
        </div>
    </div> <!--web project tiles-->
    </div><!--web porjects --> 
  </section>

<!-- CONTACT -->
  <section id="contact">
    <h3>Let's connect</h3>
    <div class="social-icons">
      <a id="profile-link" href="https://github.com/klcmalloy" target="_blank"><span class="fab fa-github"></span></a>
  <a href="https://twitter.com/KatieLCline"><span class="fab fa-twitter"></span></a>
  <a href="https://www.instagram.com/klcmalloy/"><span class="fab fa-instagram"></span></a>
    </div>
  </section>


<!-- FOOTER -->
  <footer>
    <a href="#">Back to top</a>
    <p>    &copy;2018 Katie Cline Malloy </p>
  </footer>


</div>
</div>
<!-- 
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
 -->

              
            
!

CSS

              
                
@import url('https://fonts.googleapis.com/css?family=Playfair+Display|Raleway:300,400');

body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
}

#navbar {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: rgba(255,255,255);
  box-shadow: 0 0 5px grey;
  position: fixed;
  top: 0;
  z-index: 5;
    margin-bottom: 50px;
}


.nav-links {
  list-style: none;
  margin: 1em 2em 1em 2em;
  font-size: 1.2em;
}




#welcome-section {
  background: url('https://images.unsplash.com/photo-1482062364825-616fd23b8fc1?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3a85730273c80cb666b28cf340b5a898&auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  max-height: 100%;
  
  
}



#welcome-content {
  width: 500px;
  margin: auto;
  text-align: center;
  border: 1px solid darkgrey;
  position: relative;
  top: 25%;
  background-color: rgba(255,255,255,.6);
}

h1 {
  font-size: 3.5em;
  margin-bottom: 0;
  font-family: 'Playfair Display', serif;
}

h2 {
  padding-top: 0;
  font-weight: 300;
  margin-bottom: 1.5em;
  display: inline-block;
   border-right: 1px solid;
  width: 130px;
}

h2:last-of-type {
  border: none;
}

h2:first-of-type {
  margin-left: -15px;
}

section {
  margin: auto;
  text-align: center;
  padding-top: 2.25em; 
  font-size: 1.25em;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  opacity: 0.6;
}

#about {
  max-width:75%;
}

.tile-img {
  display: inline-block;
  border: 1px solid grey; 
  height: 150px;
  width: 350px;
  padding: 10px;
  margin: 1em;
  max-width: 100%;
  
}

#web-project-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.fab {
  font-size: 3em;
  padding-right:1em;
  padding-left: 1em;
  color: grey;
}


.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


h3 {
  font-size: 1.5rem;
}

#contact {
  margin-bottom: 5rem;
}

footer {
  margin: 1em auto;
  padding-top: 2em;
  width: 100%;
  height: 50px;
  text-align: center;
  background-color: rgba(0,0,0,.1);
  line-height: .75;
}


/* MEDIA QUERIES */


@media (max-width:800px) {
  #welcome-content {
    transform: scale(0.8);
  }

  

}
  

@media (max-width:600px) {
  #welcome-content {
    transform: scale(0.6);
    max-width: 100%;
    top: 15%;
    width: 100%;
  }
  
  #welcome-section {
    padding-top: 90px;
  }
  
  #navbar {
    flex-direction: column;
    align-items: center;
      
  }
  
  .nav-links {
    margin: .5em;
  } 
}

@media (max-height:400px) {
  #welcome-content {
    transform: scale(0.6);
    max-width: 100%;
    top: 3%;
    width: 70%;
    overflow: hidden;
    max-height: 80%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console