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

              
                <!---navbar begins-->

<nav id="navbar">
  <ul>
    <li><a href="#welcome-section">About</a></li>
 <li><a href="#projects">Projects</a></li>
    <li><a href="#contact">Contact</a></li>
    </ul>
  </nav>

<!---navbar ends-->

<!--scripts begins-->

<link href="https://fonts.googleapis.com/css2?family=Sriracha&display=swap" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@1,500&display=swap" rel="stylesheet">

<link
  rel="stylesheet"
  href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
  integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
  crossorigin="anonymous"
      />
      <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
</script>

<!--scripts ends-->

<!--welcome section begin-->

<section id="welcome-section">
  <div class="intro">
<h1 class="animation"> Welcome! <br> I am Miracle,</h1>
<p>A web developer.</p>
    </div>
</section>

<!--welcome section ends-->

<!--project section begins-->

<section id="projects">
<h1 class="heading">These are some of my projects</h1>
  
<div class="project-tile">
<a href="https://codepen.io/ugoamaka/pen/gOarpPj" target="_blank">

  <img class="project-image" src="https://codepen.io/ugoamaka/pen/gOarpPj/image/small.pgn"
       alt="tribute page"
       />
<p class="background">Tribute page</p>
</a>
  
  <a href="https://codepen.io/ugoamaka/pen/OJyxjNm"
     target="_blank">
    
  <img src="https://assets.codepen.io/4320637/internal/screenshots/pens/OJyxjNm.default.png?format=auto&ha=false&height=400&quality=75&v=1&version=1589214406&width=700"
       alt="survey form"
       />
  <p class="background">Survey Form</p>
  </a>
  
   <a href="https://codepen.io/ugoamaka/pen/vYNrKeg"
     target="_blank">
  
  <img src="https://codepen.io/ugoamaka/pen/vYNrKeg/image/small.pgn"
       alt="product landing page"
       />
  <p class="background">Product landing page</p>
    </a>
  <a href="https://codepen.io/ugoamaka/pen/qBbEWEb"
     target="_blank">
    
    <img src="https://codepen.io/ugoamaka/pen/qBbEWEb/image/small.pgn"
         alt="techical documentation"
         />
    <p class="background">Technical documentation</p>
    </a>
  <a href="https://codepen.io/ugoamaka/pen/dyGpgdj"
     target="_blank">
    <img src="https://codepen.io/ugoamaka/pen/dyGpgdj/image/small.pgn"
         alt="html image map"
         />
    <p class="background">Html image map</p>
    </a>
  
  <a href="https://codepen.io/ugoamaka/pen/eYJREKy"
     target="_blank">
    <img src="https://codepen.io/ugoamaka/pen/eYJREKy/image/small.pgn"
         alt="css animation"
         />
    <p class="background">CSS animation</p>
    </a>
  </div>
   </section>

<!--project section ends-->

<!--contact section begins-->

 <section id="contact" class="contact-section">
  <div class="contact-section-header">
    <h2>Let's work together...</h2>
    <p>How would you like to reach me?</p>
  </div>
   
   <div class="contact-links">
     <a id="profile-link" href="https://www.freecodecamp.com/ugoamaka" target="_blank"
  class="btn contact details"
      >freeCodeCamp <i class="fab fa-free-code-camp"></i></a>
 
    <a
      href=""
      target="_blank"
      class="btn contact-details"
      ><i class="fab fa-facebook-square"></i> Facebook</a>
   
    <a
      href="https://twitter.com/ugorjimiracle1"
      target="_blank"
      class="btn contact-details"
      ><i class="fab fa-twitter"></i> Twitter</a
    >
    <a href="mailto:example@example.com" class="btn contact-details"
      ><i class="fas fa-at"></i> Send a mail</a
    >
    <a href="tel:070-555-5555" class="btn contact-details"
      ><i class="fas fa-mobile-alt"></i> Call me</a
    >
  </div>
</section>
<!--contact section ends-->

 
              
            
!

CSS

              
                /* body/background styling */

html, body {
  /* just to show position fixed working */
  height: 2000px;
  margin: 0;
  line-height: 1.4;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 100%;
  background-image: url("https://cdn.pixabay.com/photo/2017/05/13/15/31/wolf-2309829_1280.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: -1;
  opacity: 0.6;
  }

/* navbar styling */

#navbar{
  position: fixed;
  margin: 0;
  top: 0;
  background-color:  #be3144;
  width: 100%;
}

 ul{
   list-style-type: none;
   margin: 0;
   padding: 0;
   display: flex;
   justify-content: space-around;
   }

a{
  text-decoration: none;
  color: #ffff;
  display: block;
  padding: 2rem;
}

a:hover{
  background:  #45567d;
}

/*styling the welcome-section */


#welcome-section{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  }

h1{
  color: #fff5f1;
  font-family: 'Roboto Mono', monospace;
  text-align: center;
  padding: 5rem 1rem 0;
  font-size: 2.5rem;
}

@keyframes bounce-in{
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.animation{
  animation: bounce-in 2s infinite;
}

p{
  color: #371F1F;
  font-family: 'Sriracha', cursive;
  font-size: 2rem;
  font-weight: 200;
  text-align: center;
}

/* projects section styling */

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.heading{
  border-bottom: 0.2rem solid #fff5f1;
  padding: 5rem 1rem 0 ;
  font-size: 2rem;
}

.background{
  background: #be3144;
  color: #ffff;
  font-size: 1rem;
}

.project-tile{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

/* contact section styling */

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 80vh;
  padding: 3.5rem 0rem 0; 
}

.contact-section-header > h2 {
  font-size: 2.5rem;
  color: #fff5f1;
  font-family: 'Roboto Mono', monospace;
  text-align: center;
}

.contact-section-header > p{
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  }

  .contact-links {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  flex-wrap: wrap;
  
}
  @media only screen and (min-width: 980px) {
    .contact-details:hover {
  cursor: pointer;
  font-size: 1.5rem;
    }
     ul a {
  font-size: 2rem;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console