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

              
                  <nav id="navbar">
    <ul class="ul_nav">
      <li class="li_nav"><a href="#welcome-section" class="a_nav">ABOUT</a></li>
      <li class="li_nav"><a href="#project-tile" class="a_nav">PROJECT</a></li>
      <li class="li_nav"><a href="#section_contact" class="a_nav">CONTACT</a></li>
    </ul>
  </nav>
<main>
  <section id="welcome-section" class="part section_welcome">
    <h1>freeCodeCamp Responsive Web Design Certification</h1>
  </section><!--welcome-->

  <section class="part section_about">
    <h2 class="h2_about">About</h2>
    <div class="div_cover-focus">
      <section class="section_cover">
        <h3>Topic Cover</h3>
        <ul class="ul_cover-focus">
          <li>Basic HTML and HTML5</li>
          <li>Basic CSS</li>
          <li>Applied Visual Design</li>
          <li>Applied Accessibility</li>
          <li>Responsive Web Design Principles</li>
          <li>CSS Flexbox</li>
          <li>CSS Grid</li>
          <li>Responsive Web Design Projects</li>
          <li><a href="https://learn.freecodecamp.org/" target="_blank">Link to course curriculum</a></li>
        </ul>
      </section><!--cover-->

      <section class="section_focus">
        <h3>Learning Focus</h3>
        <ul class="ul_cover-focus">
          <li>Basic Syntax</li>
          <li>Semantic HTML</li>
          <li>Basic Web Accessibility</li>
          <li>Responsive Layout</li>
        </ul>
      </section><!--focus-->
    </div><!--cover-focus-->
  </section><!--about-->

  <section id="projects" class="part section_project">
    <h2>Project Built</h2>
    <section id="project-tile" class="project-tile">
      <div class="div_project">
        <img src="https://screenshot.codepen.io/2757530.LKBrJQ.small.7c7bca6c-3c30-4e6a-ae73-112ed1cc207c.png" alt="tribute page project screenshot">
        <h3 class="h3_project-name">Tribute Page</h3>
        <p class="p_project">A Gary Vaynerchuk tribute page.</p>
        <p class="p_project">Built with: HTML, CSS</p>
        <a href="https://codepen.io/ming-yong/pen/LKBrJQ" target="_blank" class="a_project"><button class="btn btn_code">View Code</button></a>
        <a href="https://codepen.io/ming-yong/full/LKBrJQ" target="_blank" class="a_project">
          <button class="btn btn_live">View Project</button>
        </a>
      </div><!--project-->
      <div class="div_project">
        <img src="https://screenshot.codepen.io/2757530.rPxZmM.small.1516825b-7b0c-4f4e-9e95-1c60324149e0.png" alt="survey form project screenshot">
        <h3 class="h3_project-name">Survey Form</h3>
        <p class="p_project">Survey about steak preference.</p>
        <p class="p_project">Built with: HTML, CSS</p>
        <a href="https://codepen.io/ming-yong/pen/rPxZmM?editors=1100" target="_blank" class="a_project"><button class="btn btn_code">View Code</button></a>
        <a href="https://codepen.io/ming-yong/full/rPxZmM" target="_blank" class="a_project">
          <button class="btn btn_live">View Project</button>
        </a>
      </div><!--project-->
      <div class="div_project">
        <img src="https://screenshot.codepen.io/2757530.qGmewz.small.23ddc4e1-8a47-4697-9f5b-cec14262ad0d.png" alt="product landing page project screenshot">
        <h3 class="h3_project-name">Product Landing Page</h3>
        <p class="p_project">Mock up NVDA screen reader landing page.</p>
        <p class="p_project">Built with: HTML, CSS</p>
        <a href="https://codepen.io/ming-yong/pen/qGmewz" target="_blank" class="a_project"><button class="btn btn_code">View Code</button></a>
        <a href="https://codepen.io/ming-yong/full/qGmewz" target="_blank" class="a_project">
          <button class="btn btn_live">View Project</button>
        </a>
      </div><!--project-->
      <div class="div_project">
        <img src="https://screenshot.codepen.io/2757530.rgzMRd.small.886f1c28-5c4d-4028-a699-3143797dfdca.png" alt="technical documentation page project screenshot">
        <h3 class="h3_project-name">Technical Documentation Page</h3>
        <p class="p_project">Documentation about Sass Basics.</p>
        <p class="p_project">Built with: HTML, CSS, SCSS</p>
        <a href="https://codepen.io/ming-yong/pen/rgzMRd" target="_blank" class="a_project"><button class="btn btn_code">View Code</button></a>
        <a href="https://codepen.io/ming-yong/full/rgzMRd" target="_blank" class="a_project">
          <button class="btn btn_live">View Project</button>
        </a>
      </div><!--project-->
      <div class="div_project">
        <img src="https://screenshot.codepen.io/2757530.ewLyWP.small.1cdf9142-6b77-4362-879e-3da2494745ae.png" alt="FreeCodeCamp Responsive Web Design Certification Portfolio">
        <h3 class="h3_project-name">FreeCodeCamp Responsive Web Design Certification Portfolio</h3>
        <p class="p_project">Knowledge learned in Projects.</p>
        <p class="p_project">Built with: HTML, CSS, SCSS</p>
        <a href="https://codepen.io/ming-yong/pen/ewLyWP?editors=1000" target="_blank" class="a_project"><button class="btn btn_code">View Code</button></a>
        <a href="https://codepen.io/ming-yong/full/ewLyWP" target="_blank" class="a_project">
          <button class="btn btn_live">View Project</button>
        </a>
      </div><!--project-->
    </section><!--project-tile-->
  </section><!--project-->

  <section id="section_contact" class="part section_contact">
    <h2 class="h2_contact">Contact</h2>
    <p class="p_contact">Let's get in touch!</p>
    <section class="section_links">
      <a href="https://github.com/ming-yong" target="_blank" id="github-link" class="a_profile">
        <i class="fab fa-github"></i> Github</a>
      <a href="https://twitter.com/ming__yong" target="_blank" id="twitter-link" class="a_profile">
        <i class="fab fa-twitter"></i> Twitter</a>
      <a href="mailto:mingyong.dev@gmail.com" target="_blank" id="mail-link" class="a_profile">
        <i class="far fa-envelope"></i> Send me a mail</a>
      <a href="https://ming-yong.github.io/" target="_blank" id="profile-link" class="a_profile">
        <i class="far fa-user-circle"></i> Portfolio</a>
    </section><!--links-->
  </section><!--contact-->
</main>

<footer>
  <p>Created by Ming Yong for freeCodeCamp Responsive Web Design Certification</p>
</footer>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

$clr-primary: white;
$clr-secondary: black;

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  max-width:100vw;
  min-height:100vh;
  display: grid;
  grid-template-columns: 5% 90% 5%;
  font-family: "Montserrat", sans-serif;
}


nav {
  grid-column: 2/3;
  position: relative;
  height: 4rem;
}

.ul_nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;

  background: $clr-primary;
  height: 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
} 

.li_nav {
  list-style: none;
  padding: 1rem;
}

.a_nav {
  color: $clr-secondary;
  text-decoration: none;
}

.a_nav:focus,
.a_nav:hover {
  text-decoration: underline;
}

main {
  grid-column: 2/3;

  h1 {
    font-size: 3rem;
    line-height: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    margin:0 1rem;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 3rem;
    margin-bottom: 2rem;
  }

  h3 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 0.5rem;
  }

  p,
  li,
  a {
    font-size: 1.3rem;
    line-height: 1.8rem;
  }

  img {
    max-width: 100%;
    display: block;
    height: auto;
  }

  ul {
    margin-left: 2rem;
  }

  .part {
    margin-bottom: 2rem;
  }

  .section_welcome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid $clr-secondary;
  }

  .section_about {
    border-bottom: 1px solid $clr-secondary;

    .div_cover-focus {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      width: 100%;
      margin-bottom: 2rem;
    }

    .ul_cover-focus {
      margin-bottom: 1.5rem;
    }

    .section_cover {
      margin-right: 1rem;
      width: 50%;
    }

    .section_focus {
      width: 50%;
    }
  }

  .project-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    .div_project {
      border: 1px solid black;
      width: 400px;
      min-height:400px;
      margin: 1rem;
    }

    .h3_project-name {
      text-align: center;
      font-size: 1.5rem;
      line-height: 2rem;
      margin:0 1rem;
      margin-bottom: 0.5rem;
    }

    .p_project {
      margin:0 1rem;
    }

    .btn {
      border-radius: 4px;
      cursor: pointer;
      padding: 0.5rem;
      margin: 0.5rem;
      border: none;
      color: $clr-primary;
      font-size: 1rem;
    }

    .btn_code {
      background: #ff6347;
      margin-left: 1rem;
    }

    .btn_live {
      background: #6b8e23;
    }
  }

  .section_contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .h2_contact {
      margin-bottom: 0;
    }

    .section_links {
      margin-top: 1rem;
      display: flex;
      flex-wrap: wrap;
    }

    .a_profile {
      border: 1px solid $clr-secondary;
      color: $clr-secondary;
      padding: 1rem;
      border-radius: 4px;
      margin: 1rem;
      text-decoration: none;
      white-space: nowrap;
    }

    .fa-twitter {
      color: rgb(29, 161, 242);
    }

    .fa-github {
      color: #6e5494;
    }

    .fa-envolope {
      color: #c71610;
    }

    .fa-user-circle {
      color: #f26522;
    }

  }

}

footer {
  grid-column: 2/3;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 700px) {
  .section_cover-focus {
    flex-direction: column;
  }

  .section_cover {
    margin-right: 0;
    min-width: 100%;
  }

  .section_focus {
    min-width: 100%;
  }
}

@media screen and (max-width: 700px) {
  .div_cover-focus {
    flex-direction: column;
  }

  .section_cover {
    margin-right: 0;
    min-width: 100%;
  }

  .section_focus {
    min-width: 100%;
  }
}

@media only screen and (max-width: 700px) {
  .div_cover-focus {
    flex-direction: column;
  }

  .section_cover {
    margin-right: 0;
    min-width: 100%;
  }

  .section_focus {
    min-width: 100%;
  }
}



              
            
!

JS

              
                //fcc test runner: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js
              
            
!
999px

Console