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

              
                <section id="about">
  <div id="introtext">
    <p>
      <span id="fontart">PET</span>HAF
    </p><br>
    <p id="byline">Aspiring web developer and coder at large</p>
  </div>
  <div id="skills">
    <h2 id="skillsheader">SKILLS</h2>
    <p>Technologies I've worked with in the past</p>
    <div id="skillist">
      <span class="verticalstack">
        <i class="icon-javascript"></i>Javascript
      </span>
      <span class="verticalstack">
           <i class="icon-html5"></i>
           HTML5
      </span>
      <span class="verticalstack">
           <i class="icon-css3"></i>
           CSS3
      </span>
      <span class="verticalstack">
        <i class="icon-sass"></i>
        SCSS
      </span>
      <span class="verticalstack">
           <i class="icon-reactjs"></i>
           ReactJS
      </span>
      <span class="verticalstack">
           <i class="icon-git"></i>
           GIT
      </span>
      <span class="verticalstack">
        <i class="icon-bootstrap"></i>
        Bootstrap
      </span>
      <span class="verticalstack">
        <i class="icon-cplusplus"></i>
        C++
      </span>
    </div>
  </div>
</section>

<section id="portfolio">
  <h2>Previous Projects</h2>
  <div id="projectcontainer">
    <i class="fa fa-angle-left"></i>
    <div id="projectdetails">
      <h3>React-Tic-Tac-Toe</h3>
      <img src="https://gdurl.com/HHuA/download" alt="screenshot">
      <div id="wrapper">
        <div id="techlist">
          <span class="verticalstack">
        <i class="icon-javascript"></i>
        Javascript
      </span>
          <span class="verticalstack">
        <i class="icon-html5"></i>
        HTML5
      </span>
          <span class="verticalstack">
        <i class="icon-css3"></i>
        CSS3
      </span>
          <span class="verticalstack">
        <i class="icon-reactjs"></i>
        ReactJS
      </span>
        </div>
        <p id="flavourtext">
          Ever felt the need for another Tic-Tac-Toe clone? Well here is one, written in React.
        </p>
      </div>
    </div>
    <i class="fa fa-angle-right"></i>
  </div>
</section>

<section id="contact">
  <h2>Get in touch</h2>
  <form>
    <label for="name">Name</label>
    <input type="text" id="name" required placeholder="John Doe">
    <label for="email">Email</label>
    <input type="email" id="email" required placeholder="john@doe.com">
    </input>
    <label for="message">Message</label>
    <textarea id="message" required placeholder="Hello"></textarea>
    <input type="submit" value="Send">
    <form>
</section>
<nav>
  <p id="flair" aria-hidden="true">
    P
  </p>
  <span class="verticalstack" id="fcc">
    <i class="fa fa-free-code-camp"></i>
    FCC Porfolio
  </span>
  <span class="verticalstack" id="codepen">
    <i class="fa fa-codepen"></i>
    Codepen Portfolio
  </span>
  <span class="verticalstack" id="github">
    <i class="fa fa-github"></i>
      Github Portfolio
  </span>
  <span class="verticalstack"><i class="fa fa-info"></i>Info</span>
  <span class="verticalstack"><i class="fa fa-briefcase"></i>Work</i></span>
  <span class="verticalstack"><i class="fa fa-at"></i>Contact</span>
  <span class="verticalstack" id="hamburgericon"><i class="fa fa-bars"></i>More</span>
</nav>
              
            
!

CSS

              
                $body-font: Ubuntu, sans-serif;
$heading-font: Lora, serif;
$art-font: Baumans, cursive;
$font-artcolor: purple;
$skills-color: HSL(282.99,44.37%,29.61%);
$contactform-background-color: black;
$nav-background-color: hsl(300,100%,25.1%);
$max-width: 800px;
$media-query-breakpoint1: 800px; 
$vert-menu-width: 120px;
p,i {
  font-family: $body-font;
}

h1,h2,h3,h4,h5,h6{
  text-align: center;
  font-family: $heading-font;
  padding-top: 15px;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
}

#flair {
  display: none;
}

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

#skillist {
  width: 100%;
  display: flex;
  max-width: $max-width;
  margin: 0 auto;
  flex-wrap:wrap;
  padding-bottom: 20px;
  font-family: $body-font;
 span  {
  width: calc(100%/3); 
  padding: 10px;
   box-sizing: border-box;
   i{
     font-size: 24px;
   }
  }
}

#about {
  padding: 0;
  width:100vw;
}

#skills {
  margin-top: -20px;
  color: #FFF;
  font-family: $body-font;
  background: $skills-color;
p:first-of-type {
  margin-left: 15px;
  }
}

#fontart {
  color: $font-artcolor;
}

#introtext {
    background: url("https://gdurl.com/PhhQ");
  background-size:cover;
  border:1px solid white;
  p{
    padding-left: 5px;
    &:first-of-type { 
      font-family: $art-font;
      font-weight: 800;
      font-size: 80px;
      }
    }
  }

#contact {
  background: $contactform-background-color;
  color: white;
}



#byline {
  font-family: $body-font;
  font-size:24px;
  color: black;
  margin-top: -100px;
  color: $font-artcolor;
  font-weight: 600;
}

nav {
  justify-content: space-around;
  flex-wrap:wrap;
  width:100vw;
  display:flex;
  position: fixed;
  top: 0;
  background: $nav-background-color;
span {
  width: calc(100%/4);
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  font-family: Lora;
  color: #DDD;
  }
}
#fcc,#codepen,#github
 {
  width: calc(100%/3);
  display:none;
  transition:all 0.5s linear;
  order: 2;
   &.show {
     display:flex;
   }
}
img {
  max-width: 100%;
  max-height: 100%;
  margin: 20px;
}

#projectcontainer {
  display:flex;
  max-width: $max-width;
  width: 100%;
  box-sizing: border-box;
  align-items: center; 
  margin: 0 auto;
 i {
  font-size: 60px;
  }
}
#projectdetails {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  h3 {
    margin-bottom: 0;
  }
  img {
    flex: 1;
    box-sizing: border-box;
    margin-top: 5px;
    height: 180px;  
    max-width: 320px;
    }
  }
#techlist{
  width: 100%;
  display:flex;
  flex-wrap:wrap;
  span {
    width:50%;
    box-sizing:border-box;
    font-family: $body-font;
    margin-top: 0;
     i {
      font-size: 16px;
    }
  }
}



#flavourtext {
  text-align: center;
  font-family: $body-font;
}

.fa-angle-left {
  margin-left: 20px;
}

.fa-angle-right {
  margin-right: 20px;
}

form {
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
  max-width: $max-width;
  margin: 0 auto;
  min-height: 400px;
}

input,textarea {
  border: 0;
  background-color: black;
  border-bottom: 1px solid white;
  color: white;
  width: 100%;
  padding-left: 5px;
  &:placeholder{
    color: #888;
  }
}


input:focus, 
textarea:focus {
  outline: 1px solid #9A4EAE
}

textarea {
  flex: 1;
  resize: none;
  padding: 5px;
}
input[type="submit"]{
  margin-top: 20px;
  min-height: 70px;
  color: white;
  font-size: 20px;
  font-family: $body-font;
  background: #9A4EAE;
  border: 1px solid #9A4EAE;
}

@media (min-width:$media-query-breakpoint1){
  nav {
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    width: $vert-menu-width;
    span {
      max-height: 60px;
      flex: 1;
      width: 100%;
    }
  }
    #fcc,#github,#codepen {
    width: 100%;
    display:flex;
  }
    section {
    margin-left: $vert-menu-width;
  }
  
  input[type="submit"]{
    height: 20px;
    border-radius: 5px;
    margin: 0 auto;
    margin-top: 5px;
  }
  
  #hamburgericon {
    display:none;  
  }
  #flair {
    margin: 5px 10px;
    text-align: center;
    font-size: 60px;
    border-radius: 50%;
    background: black;
    color: purple;
    border: 2px solid black;
    display: block;
    font-family: "Baumans";
    color: #CCC;
  }
    #projectdetails {
    flex-direction: row;
     img {
      width: 50%;
     }
  }
  
  #wrapper {
    flex: 1;
  }
    #techlist {
    margin-top: 10px;
    margin-bottom: 20px;
    span i {
    font-size: 24px;
    }
  }
}
              
            
!

JS

              
                const projects = [
  {title:"React-Tic-Tac-Toe",
   url: "https://codepen.io/pethaf/full/Jryeew/",
   lowresscreenshot: "",
   highresscreenshot:"",
   technologies: ["reactjs","html5","css3","javascript"],
   flavortext: "Ever felt the need for yet another React Clone? Well, here is one"
  },
  {
    title: "Fcc Leaderboard",
    url: "https://codepen.io/pethaf/full/ZXmqod/",
    lowresscreenshot: "",
    highresscreenshot: "",
    technologies: ["html5","css3","javascript","reactjs"],
    flavortext: "Ever felt the need to know who's on the all time toplist over at FCC? How about who was on the all time top list last month? Here is the solution"
  },
  {
    title:"Pomodoro Timer",
    url: ""
  }
]
document.addEventListener('DOMContentLoaded', () => {
  document.querySelector(".fa-bars").addEventListener("click",() => { 
    ["#fcc","#github","#codepen"].forEach( (elem) => {document.querySelector(elem).classList.toggle("show")});
  })
})

const clickHandler = (event) => {
  event.target.classList.contains("fa-angle-right") ? 
    alert("Next Project"): 
    alert("Previous Project");
}

const populateProject = () => {
  let heading = document.querySelector("#projectcontainer.")
  let project = projects[0];
  
}


              
            
!
999px

Console