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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<style>
  * {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .navbarb {
    width: 100%;
    position: fixed;
    height: 2.5em;
    background: #e0ebe8;
  }

  #navbar * {
    text-decoration: none;
    color: black;
    list-style: none;
    display: flex;
    justify-content: space-around;
  }

  .navbarc {
    position: fixed;
    width: 50%;
    min-width: 300px;
    font-family: sans-serif;
    padding: 10px;
    margin: 0;
    background: #e0ebe8;
    right: 10px;
  }

  #welcome-section {
    background-color: #e0ebe8;
    height: 100vh;
    text-align: center;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: "top""middle""bottom";
    align-items: center;
  }

  #welcome-section p {
    color: green;
    grid-area: middle;
    font-size: .7em;
    font-family: cursive;
  }

  #welcome-section h1 {
    color: black;
    grid-area: middle;
    font-size: 30px;
    font-family: cursive;
  }

  #work {
    padding-top: 60px;
  }

  .workgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-areas: "heading""works";
    justify-items: center;
    grid-gap: 30px 200px;
    margin: auto auto;
  }


  .wheading {
    display: block;
    padding-bottom: 30px;
    color: #008080;
  }
a{
  text-decoration: none;
}
  .workgrid h2{
    font-size: 20px;
    padding: 5px;
    border: 2px solid lightblue;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-top: 0px;
    color: #008080;
  }

  .workp {
    display: block;
    width: 300px;
    height: 250px;
    object-fit: cover;
    overflow: hidden;
    border: 2px solid lightblue;
    border-bottom: 0px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;

  }
  #showallworkbtn{
    display: inline-block;
    border: #C8F7C5 solid 3px;
    border-radius: 5px;
    padding-top: 10px;
    width: 100px;
    text-align: center;
    height:30px;
    width:150px;
    margin:20px auto 20px;
    background: #e0ebe8;
    color: #008080;
  }
  #showallworkbtn:hover{
    animation-name: btnback;
    animation-duration: 1s;
    animation-fill-mode: forwards;
  }
  @keyframes btnback {
    100%{
      background-color: #C8F7C5;
    }
  }
  #contact{
    background: #C8F7C5;
    min-height: 100vh;
    }
    .contacth{
      padding-top: 140px;
      padding-bottom: 100px;
    }
    .contactbuttons{
      text-align: center;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }
  .contacttext{
    display: flex;
    border: 2px solid #90C695;
    border-radius: 100%;
    height: 100px;
    width: 100px;
    justify-content: center;
    align-items: center;
    margin:20px 20px;
    background: #e0ebe8;
    color: #008080;
  }
  #footer{
    background-color: #22313F;
    color: white;
    padding: 20px;
  }
  @media (max-width: 400px) {
    .navbarc{
      width:100%;
    }
    .contacttext{
      border-radius: 20%;
      height:70px;
      width:70px;
    }
  }
</style>

<body>
  <div class="navbarb"></div>
  <div class="navbarc">
    <nav id="navbar">
      <ul>
        <li><a href="#welcome-section">About</a></li>
        <li><a href="#projects">Work</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </nav>
  </div>
  <main>
    <section id="welcome-section">
      <h1>Hey i'am Akbar Ali.<p>a web developer</p>
      </h1>
    </section>
    <section id="projects">
      <h2 class="wheading">These are some of my projects..</h2>
      <div class="workgrid">
        <a class="workc" href="https://codepen.io/ghostakbar/full/mvrbNN">
          <img class="workp" src="https://res.cloudinary.com/dofqyvtcn/image/upload/v1548919861/p4.png" alt="">
          <h2 class="project-tile">Technical documentation</h2>
        </a>
        <a class="workc" href="https://codepen.io/ghostakbar/full/BMyJYL">
          <img class="workp" src="https://res.cloudinary.com/dofqyvtcn/image/upload/v1548919861/p3.png" alt="">
          <h2 class="project-tile">Product landing page</h2>
        </a>
        <a class="workc" href="https://codepen.io/ghostakbar/full/KbOrov">
          <img class="workp" src="https://res.cloudinary.com/dofqyvtcn/image/upload/v1548919861/p2.png" alt="">
          <h2 class="project-tile">Survey form</h2>
        </a>
        <a class="workc" href="https://codepen.io/ghostakbar/full/NeQzxJ">
          <img class="workp" src="https://res.cloudinary.com/dofqyvtcn/image/upload/v1548919861/p1.png" alt="">
          <h2 class="project-tile">Tribute page</h2>
        </a>
      </div><br>
      <a id="showallworkbtn" href="https://codepen.io/ghostakbar/">Show All</a>
    </section><br>
    <section id="contact">
      <div class="contacth">
      <h2>Let's work together...</h2>
      <p>How do you take your coffee?</p></div>
      <div class="contactbuttons">
      <a id="profile-link"class="contacttext"href="https://www.freecodecamp.org/fcc7581c539-5f17-44b8-b3e0-d1f6e1302987">FCC</a>
      <a class="contacttext" href="">Twitter</a>
      <a class="contacttext" href="">Email</a>
      <a class="contacttext" href="">Call me</a>
    </div>
    </section>
    <section id="footer">
    <p>**This is just a fake portfolio.. All the projects and contact details given are not real..</p>
    <p>© Created for FreeCodeCamp</p>
    </section>
  </main>
</body>

</html>

              
            
!

CSS

              
                
              
            
!

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 dropdown 
    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