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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<nav id="navbar">
  <ul>
    <li tabindex=1><a href="#welcome-section">About</a></li>
    <li tabindex=1><a href="#projects">Work</a></li>
    <li tabindex=1><a href="#Details">Contact</a></li>
  </ul>
</nav>
<div id="welcome-section">
  <h1>Hi! I am SamuelROse</h1>
  <h2>I am FreeCodeCamper</h2>
</div>
<section id="projects">
  <h3 id="project-title">Here are some of my Projects</h3>
  <div id="project-img">
    <div class="project-tile" tabindex=0>
      <a href="www.google.com" id="Gandhi"><img src="https://s3-us-west-2.amazonaws.com/i.cdpn.io/1904229.gzJaMp.small.edb0b395-9841-4d2a-943d-dd4a8ea99982.png" alt="MK Gandhi">
        <figcaption> Mahatma Gandhi</figcaption></a>
    </div>
    <div class="project-tile" tabindex=0>
      <a href="https://codepen.io/Samuelrose/pen/rKzMvx">
      <img src="https://s3-us-west-2.amazonaws.com/i.cdpn.io/1904229.rKzMvx.small.d1f0c712-e49d-40a2-8a33-5cb1a44b3f06.png" alt="survey"><figcaption>
      Survey Form</figcaption>
    </a>
    </div>
    <div class="project-tile" tabindex=0>
      <a href="#"><img src="https://s3-us-west-2.amazonaws.com/i.cdpn.io/1904229.WyZmOR.small.1497c90b-5aab-457c-86ef-db4e031aba3a.png" alt="product-landing">
    <figcaption>Product Documentation</figcaption></a>
    </div>
    <div class="project-tile" tabindex=0>
      <a href="#"><img src="https://s3-us-west-2.amazonaws.com/i.cdpn.io/1904229.mKaMGR.small.43a21b1e-0133-471d-9bdb-d03df159ab79.png"><figcaption>Techincal Documentation</figcaption></a>
    </div>
  </div>
  <label><button target="_blank" onClick="location.href='https://codepen.io/Samuelrose/collections/popular/'" tabindex=0>View More</button></label>
</section>
<section id="Contact">
  <h3>Let's Work Together....</h3>
  <h4>How do you take Coffee</h4>
  <div id="Details">
    <div class="link"><a href="https://www.freecodecamp.org/samuelrose" id="profile-link" target="_blank"><img src="https://s3.amazonaws.com/freecodecamp/curriculum-diagram-full.jpg"><span>FreeCodeCamp</span></a></div>
    <div class="link"><a href="#"><img src="https://www.facebook.com/images/fb_icon_325x325.png"><span>Facebook</span></a></div>
    <div class="link"><img src ="https://lh3.googleusercontent.com/00APBMVQh3yraN704gKCeM63KzeQ-zHUi5wK6E9TjRQ26McyqYBt-zy__4i8GXDAfeys=s180"><a href="#"><span>LinkedIn</span></a></div>
  </div>
</section>
<footer>
  <div>This Project is made by Animesh Srivastawa....</div>
  <div>&copy No Copyrights</div>
</footer>
              
            
!

CSS

              
                body {
  padding: -1;
}
@import url("https://fonts.googleapis.com/css?family=Ubuntu+Condensed");
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  opacity: 1;
  background: linear-gradient(-90deg,rgba(255, 255, 255, 1),rgba(210, 0, 100, 1) );
}
#navbar ul {
  text-align: center;
  list-style: none;
  display: grid;
  float: right;
  width: 50%;
  grid-template-columns: 34% 34% 33%;
  font-size: 19px;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: hsl(200, 50%, 50%);
}
a:hover {
  color: hsl(200, 10%, 50%);
}
#welcome-section {
  font-family: "Ubuntu Condensed", times new roman;
  margin-top: 39px;
  margin-left: -10px;
  text-align: center;
  padding: 20% 0 0 0;
  height: 70vh;
  background: linear-gradient(-90deg,rgba(255, 255, 255, 1), rgba(210, 0, 100, 1) );
}
@media screen and (max-width: 650px)  {
  #navbar{
    position: relative;
    margin: -5%;}
  #navbar ul{
    grid-template-columns: 100%;
    float: none;
    margin-left: 30%;
    line-height: 45px;
    font-size: 25px;
    padding: 1%;
  }
  #welcome-section{
    position: relative;
    bottom: 15px;
    width: 100%;
    margin: -3% -4% 2% -5%;
    padding: 2% 3% 2% 5% ;
  }
}
#project-img {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 1% 10% 1% 10%;
  grid-column-gap: 50px;
  grid-row-gap: 50px;
  border-sizing: border-box;
  height: 100%;
}
.project-tile {
  width: 95%;
  height: 100%;
  border: 2px solid #c9c9c9;
}
.project-tile img {
  width: 100%;
  height: 85%;
}
#projects > h3{
  text-align: center; 
}
figcaption {
  border-top: 2px solid #c9c9c9;
  text-align: center;
  padding: 1% 0 3% 0;
}
button {
  margin: 3% 0% 1% 40%;
  border: 2px solid hsl(200, 50%, 60%);
  border-radius: 5%;
  width: 150px;
  padding: 1%;
  font-size: 13px;
}
@media screen and (max-width: 800px){
  #project-img{
    grid-template-columns: 100%;
  }
  button{
    margin-left: 40%;
  }
}
#Contact {
  padding: 2% 0 2% 0;
  margin-left: -4%;
  text-align: center;
  background: linear-gradient(90deg, hsl(200, 100%, 50%), #ffffff);
}
#Details {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.link {
  max-width: 100px;
  height: 10%;
  text-align: center;
  padding: 1% 0 1% 0;
  margin: 0 2% 0 2%;
  box-sizing: border-box;
  color: black;
  border-radius: 2px;
  background-color: #c9c9c9;
}
.link > a{
  color: black;
}
.link img {
  float: left;
  width: 20%;
}
.link span {
  font-size: 10px;
  text-align: center;
  margin: 20% 0 0 0;
}
footer {
  width: 99vw;
  height: 7vh;
  margin-left: -13px;
  line-spacing: 2px;
  background-color: grey;
}
footer div {
   text-align: right;
   float: right;
  width: 75%;
  margin-right: 2%;
  background-color: grey;
}

              
            
!

JS

              
                
              
            
!
999px

Console