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

              
                <!-- START OF NAVBAR SECTION-->
<nav id="navbar">
  <div id="logo">
    <p> EM</p>
  </div>
  <a href="#welcome-section"> About</a>
  <a href="#projects">Projects</a>
  <a href="#social">Social</a>
</nav>
<!-- END OF NAVBAR SECTION-->

<!--START OF WELCOME SECTION-->
<header id="welcome-section">
  <h1>JASON EMILY NYARURI</h1>
  <p>Front End Web Developer.</p>
</header>
<!--END OF WELCOME SECTION-->

<!-- START OF PROJECT SECTION-->
<div id="projects">
  <h2>Projects</h2>
  <div class="project-tile">
    <div class="project">
      <a href="https://codepen.io/emilynyaruri/pen/abbPvJW" target="_blank"><img src="https://static01.nyt.com/images/2016/12/04/fashion/04adichie/04adichie-superJumbo.jpg" alt="Tribute" height="250" width="250"></a>
      <p>Tribute page</p>
    </div>
    <div class="project">
      <a href="https://codepen.io/emilynyaruri/pen/pooQgwa"><img src="https://discourse-user-assets.s3.amazonaws.com/original/3X/a/e/ae785e69012d59eff4916f7576637c212611159f.jpg" alt="Survey Form" height="250" width="250"></a>
      <p>survey Form</p>
    </div>
    <div class="project">
      <a href=" https://codepen.io/emilynyaruri/pen/ExxGwmq?editors=1100" target="_blank"><img src="https://mk0zofoqaluvgdskgvsb.kinstacdn.com/photos/zola-inline.jpg" alt="Product landing page" height="250" width="250"></a>
      <p>Product landing page</p>
    </div>
    <div class="project">
      <a href="https://codepen.io/emilynyaruri/details/GRgPYBP" target="_blank"><img src="" alt="Technical" height="250" width="250"></a>
      <p>Technical documentation</p>
    </div>
  </div>

</div>

<!-- END OF PROJECT SECTION-->

<!-- START OF CONTACTS SECTION-->
<section id="social">
  <h2>Social</h2>
  <p> GET IN TOUCH</p>
  <ul>
    <li><a id="profile-link" href="#" target="_blank"><i class="fab fa-github-square"></i></a></li>
    <li><a href="#" target="_blank"><i class="fab fa-facebook-square"></i></a></li>
    <li><a href="#" target="_blank"><i class="fab fa-linkedin"></i></a></li>
    <li><a href="#" target="_blank"><i class="fab fa-twitter-square"></i></a></li>
    <li><a href="#" target="_blank"><i class="fab fa-phone-square-alt"></i></a></li>

  </ul>
</section>

<!-- END OF CONTACTS SECTION-->

<!-- START OF FOOTER SECTION-->
<footer>
  <p>@ 2020 Emily Nyaruri. All rights reserved</p>
</footer>
<!-- END OF FOTER SECTION-->

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

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap");
/*to be used in the body*/

@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap"); /*use this for the logo*/
* {
  box-sizing: border-box;
}

body {
  margin: 0px;
  background-color: #aad2ba; /*# 41EAD4- blue  #FFFFFF */
  font-family: Noto-sans, sans-serif;
}

nav {
  background-color: #242524;
  color: #fff;
  padding: 15px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
}

#logo {
  margin: 0px auto 0px 20px;
  border: 3px solid white;
  background-color: black;
  opacity: 0.4;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#logo p {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  font-family: pacifico;
}

nav a {
  color: white;
  margin-right: 20px;
  font-size: 20px;
  margin: 10px;
  text-decoration: none;
}

nav a:hover {
  background-color: #ed474a;
  padding: 5px;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

#welcome-section {
  height: 100vh;
  background-image: url("https://images.pexels.com/photos/693859/pexels-photo-693859.jpeg?auto=compress&cs=tinysrgb&h=650&w=940");
  background-size: cover;
  background-position: center center;
  position: relative;
  color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#welcome-section h1 {
  font-size: 50px;
  z-index: 1;
  margin: 0;
  margin-bottom: 5px;
  animation-name: welcome-section;
  animation-duration: 3s;
  animation-fill-mode: fowards;
}
@keyframes welcome-section {
  0% {
    color: gray;
  }
  100% {
    color: white;
  }
}

#welcome-section p {
  font-size: 25px;
  z-index: 1;
  margin: 0;
}

#welcome-section::after {
  content: "";
  background-color: black;
  position: absolute;
  opacity: 0.5;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
#welcome-section* {
  background-position: relative;
  z-index: 1;
}

footer {
  background-color: #242524;
  padding: 10px;
  color: white;
  display: flex;
  justify-content: center;
}

#social {
  background-color: #b9f5d8;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#social h2 {
  font-size: 30px;
  margin: 0;
}
#social p {
  font-size: 20px;
  margin-top: 0;
}

#social ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
}
#social ul li {
  margin-left: 40px;
  font-size: 30px;
  margin-bottom: 10px;
}

#projects h2 {
  text-align: center;
  font-size: 30px;
}
.project-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 20px auto 20px;
}

.project-tile img {
  max-width: 100%;
  z-index: 50;
}

.project {
  max-width: 250px;
  margin: 15px;
  border: 3px solid black;
  border-radius: 10px;
  background-color: gray;
  opacity: 1;
  text-align: center;
}
.project-tile p {
  font-size: 20px;
  margin-top: 10px;
  color: white;
  cursor: arrow;
}

@media (max-width: 650px) {
  #welcome-section h1 {
    text-align: center;
  }
  #social h2 {
    margin-bottom: 10px;
  }
  #social ul {
    display: flex;
    justify-content: center;
  }
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.

/***********
INSTRUCTIONS:
  - Select  the project you would 
    like to complete from the ED474Adropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.

              
            
!
999px

Console