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>
<div id="main">
  <nav id="navbar">
  <div class="container" id="nav-style">
    <div id="logo-container" >
       <a href="#" id="brand-logo">sujan uday.</a>
    </div>
   
    <ul id="navlinks">
    <li id="about-me"><a href="#welcome-section">About Me</a></li>
    <li><a href="#projects">Projects</a></li>
    <li><a href="#contact-me">Contact Me</a></li>
  </ul>
  </div>
   <!-- <div id="hamburger-menu">
      <div class="bar"></div>
      <div class="bar"></div>
      <div class="bar"></div>
    </div>-->
</nav>


<section id="welcome-section">
  <div id="controller">
     <span id="arrow-left">
      <i class="material-icons" id="left">keyboard_arrow_left</i>
    </span>
    <span id="arrow-right">
      <i class="material-icons"  id="right">keyboard_arrow_right</i>
    </span>
  </div>
  <div id="welcome-container">
     <div id="about1" class="about">
       <div class="about-info">
         <h1>Hi, my name is<br><span>Sujan Uday.</span><br> 
           <p id="sub-title">I create things for the web.</p></h1>
       </div>
     </div>
    <div id="about2" class="about">
       <div class="about-info">
         <p>I am a business graduate, but my passion to building stuffs for the web leads me to learn coding. My aim is to become a full-stack web developer and integrate my business acumen to create modern web apps that sell.</p>
       </div>
    </div>
    <div id="about3" class="about">
       <div class="about-info" id="experience">
         <p>
           For the past 2 years, I've been honing my skills in the following web technologies:
         </p>
         <div id="skillsets">
           <span class="skillset">
             <img src="https://img.icons8.com/windows/80/000000/html-5.png">
             </span>
           <span class="skillset">
             <img src="https://img.icons8.com/windows/80/000000/css3.png">
           </span>
            <span class="skillset">
             <img src="https://img.icons8.com/ios/80/000000/javascript.png">
           </span>
           <span class="skillset">
            <img src="https://img.icons8.com/ios/80/000000/react-native-filled.png">
           </span>
         </div>
           <p> I build aesthetic websites that are fully responsive and fast-loading.
        
         <button id="workBtn"><a href="#projects">My Works</a></button>
       </div>
    </div>
  </div>
</section>


<section id="projects">
  <div class="container">
   <div class="title">
      <h1>My Works</h1>
    </div>
    <div id="tiles">
     <div class="project-tile">
       <div class="product-img">
          <a href="https://s.codepen.io/allare/debug/NoNwLM/XxMVwaEwoLor" target="_blank">
            <img src="http://i65.tinypic.com/alnkp4.jpg" alt="landing page challenge"></a> 
      
       </div>
       <div class="product-info"> 
        <h2>FCC - Product Landing Page</h2>
         <p>For this challenge, I created a fully responsive website of an imaginary company. This company provide online vlogging courses.</p>
         <p>
           The technologies I used:
           <ul class="skill-list">
             <li>
                <img src="https://img.icons8.com/windows/50/000000/html-5.png">
             </li>
             <li>
               <img src="https://img.icons8.com/windows/50/000000/css3.png">
             </li>
         </ul>
         <button class="btn">
           <a href="https://s.codepen.io/allare/debug/NoNwLM/XxMVwaEwoLor" target="_blank">See project<a/></button>

         </p>
       </div>
    </div>
       <div class="project-tile">
       <div class="product-img">
          <a href="https://s.codepen.io/allare/debug/GzvvYL/RBMOJNBJDdyk" target="_blank">
                         <img src="http://i63.tinypic.com/20qxc1l.jpg" alt="survey form challenge"></a> 
        
         </div>
       <div class="product-info">
         <h2>
           FCC - Survey Form Challenge
         </h2>
         <p>
           This survey page is clean and responsive. The goal of this survey is to collect people's opinions about Butwal city. 
         </p>
          <p>
           The technologies I used:
           <ul class="skill-list">
             <li>
                <img src="https://img.icons8.com/windows/50/000000/html-5.png">
             </li>
             <li>
               <img src="https://img.icons8.com/windows/50/000000/css3.png">
             </li>
         </ul>
         <button class="btn">
            <a href="https://s.codepen.io/allare/debug/GzvvYL/RBMOJNBJDdyk" target="_blank">See project</a></button>
         </p>
         </div>
    </div>
       <div class="project-tile">
       <div class="product-img">  
         <a href="https://s.codepen.io/allare/debug/RvgNYX/wQrPoNyoeoZM" target="_blank">
                         <img src="http://i67.tinypic.com/osttug.jpg" alt="tribute page challenge">  </a> 
       
       </div>
       <div class="product-info">
        <h2>FCC - Tribute Page Challenge</h2>
         <p>
           This page is a tribute to Walt Disney, the founder of Disney inc. I was a huge fan of all Disney characters when I was a child. 
         </p>
          <p>
           The technologies I used:
           <ul class="skill-list">
             <li>
                <img src="https://img.icons8.com/windows/50/000000/html-5.png">
             </li>
             <li>
               <img src="https://img.icons8.com/windows/50/000000/css3.png">
             </li>
         </ul>
         <button class="btn">
           <a href="https://s.codepen.io/allare/debug/RvgNYX/wQrPoNyoeoZM" target="_blank">See project<a/></button>

         </p>
         </div>
    </div>
        <div class="project-tile">
       <div class="product-img">  
                      <a href="https://s.codepen.io/allare/debug/vPRLoV/nqAwvGYvLdvr" target="_blank">
                        <img src="http://i65.tinypic.com/2wgu5ia.jpg" alt="Technical Documentation page challenge"> </a> 
       </div>
       <div class="product-info">
        <h2>FCC - Technical Documentation Challenge</h2>
         <p>
           I created a React documentation using the text references from various websites including React official documentation page. This page is fully responsive with a sticky sidebar.
         </p>
          <p>
           The technologies I used:
           <ul class="skill-list">
             <li>
                <img src="https://img.icons8.com/windows/50/000000/html-5.png">
             </li>
             <li>
               <img src="https://img.icons8.com/windows/50/000000/css3.png">
             </li>
             <li>
               <img src="https://img.icons8.com/ios/50/000000/javascript.png">
             </li>
         </ul>
         <button class="btn">
           <a href="https://s.codepen.io/allare/debug/vPRLoV/nqAwvGYvLdvr" target="_blank">See project</a></button>

         </p>
         </div>
    </div>
  </div>
  </div>
</section>
<section id="contact-me">
  <div class="container">
    <div class="title">
      <h1>Business Inquiries</h1>
    </div>
    <p class="text">
      I'm currently available for a freelance gig, or to join an existing web development team. 
    </p>
    <h2>Contact me</h2>
    <div id="contact-cards">
      <a href="https://www.freecodecamp.org/allare" id="profile-link" target="_blank"><img src="https://goo.gl/oQrQYo" width="50" height="50">
</a>
      <a href="https://codepen.io/allare/" target="_blank"><img src="http://blog.codepen.io/wp-content/uploads/2012/06/Button-Black-Large.png" width="45" alt="codepen"></a>
    </div>
  </div>
  <h2>Thanks!!</h2>
</section>
<div id='footer'>
  <p>icons credit: <a href="https://icons8.com/icon/16282/css3">CSS3 icon by Icons8</a>
    <a href="https://icons8.com/icon/39853/javascript">JavaScript icon by Icons8</a>
    <a href="https://icons8.com/icon/16328/html-5">Html 5 icon by Icons8</a>
  </p>
</div>
</div>
              
            
!

CSS

              
                *{
  border: 0;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth; 
}

.container {
  width: 90%;
  margin: 0 auto;
}

welcome-section, #contact-me{
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

section:nth-child(odd){
  background-color: #fff;
}

#projects, #contact-me {
  padding-top: 120px;
}

.title h1 {
  font-size: 45px;
  text-align: center;
  margin-bottom: 30px;
  color: #FF1654;
}

/*Navbar styling*/

#navbar{
  width: 100%;
  height: 80px;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #FF1654;
}
#nav-style {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


#navlinks {
  width: 50%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-end;
}


#navlinks li{
  list-style: none;
}



#navlinks li a{
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  transition: .3s ease-in;
}

#navlinks li a:hover{
  color: #247BA0;
}

#logo-container {
   width: 70%;
}

#logo-container {
  margin-right: auto;
}


 #brand-logo{
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .2px;
  line-height: 60px;
  color: #B2DBBF;
  position: relative;
  padding: 0px 10px 0px 5px;
}

#brand-logo:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border-top: 3px solid #1B1819;
  border-left: 3px solid #B2DBBF;
  width: 10px;
  height: 10px;
}

#brand-logo:after{
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  border-right: 3px solid #B2DBBF;
  border-bottom: 3px solid #1B1819;
  width: 10px;
  height: 10px;
}



/*Welcome Section styling*/
#welcome-section {
  width: 100%;
  position: relative;
  overflow-x:hidden;
}

#controller{
  position: absolute;
  top: 50%;
  width: 100%;
  display: block;
  z-index: 99;
}

#left {
  position: absolute;
  left: 20px;
  font-size: 50px;
  animation: animate2 .8s infinite forwards;
}

#right{
  position: absolute;
  right: 20px;
  font-size: 50px;
  animation: animate .8s infinite forwards;
}

#left, #right {
  transition: .5s;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translateX(0);
  }
  
  to {
    opacity: 1;
    transform: translateX(10px);
  }
}

@keyframes animate2 {
  from {
    opacity: 0;
    transform: translateX(0);
  }
  
  to {
    opacity: 1;
    transform: translateX(-10px);
  }
}



#left:hover, #right:hover {
  cursor: pointer;
  color: #F3FFBD;
}

#welcome-container{
  width: 300%;
  display: flex;
  background: #FF1654;
  
}
#about1, #about2, #about3 {
  width: 100%;
  height: 100vh;
  position: relative;
  
}

.disabled{
  display: none;
}

.about-info{
  position: absolute;
  top: 30%;
  left: 15%;
  width: 70%;
  padding: 10px 20px 10px 20px;
}

.about-info h1{
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  line-height: 36px;
}

.about-info span{
  font-size: 60px;
  line-height: 70px;
  color: #F3FFBD;
}

#sub-title{
  color: #B2DBBF;
  font-size: 36px;
  line-height: 45px;
}

.about-info p{
  font-size: 18px;
  line-height: 30px;
}

#experience{
  top: 25%;
  left: 15%;
  text-align: center;
}

#experience p {
  margin: 10px auto 20px auto;
}

#workBtn{
  display: block;
  width: 150px;
  background: transparent;
  border: 2px solid #000;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 30px auto 0 auto;
  transition: .3s ease-in;
}
#workBtn a{
   text-decoration: none;
   color: #000;
  transition: .3s ease-in;
}

#workBtn:hover, #workBtn a:hover {
  color: #F3FFBD;
  border-color: #F3FFBD;
}

.btn{
  display: block;
  width: 150px;
  background: transparent;
  border: 2px solid #000;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 30px 0;
  transition: .3s ease-in;
}
.btn a{
   text-decoration: none;
   color: #000;
  transition: .3s ease-in;
}

.btn:hover, .btn a:hover {
  color: #FF1654;
  border-color: #FF1654;
}


/* Projects section */
#tiles{
  display: flex;
  flex-direction: column;
  width: 100%;
  
}

.project-tile{
  display: flex;
  margin-bottom: 50px;
}

.product-img {
  width: 50%;
}

.product-img img{
    width: 100%;
    height: auto;
  }

.product-info {
  margin: 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-even;
  align-items: flex-start;
  width: 50%;
}

.product-info h2 {
  font-size: 28px;
}

.product-info p {
  line-height: 24px;
  margin: 15px 0;
}

.skill-list {
  display: flex;
}

.skill-list li {
  list-style: none;
}

/* Contact section */
#contact-me{
  background: #F3FFBD;
  text-align: center;
}

.text {
  color: #247BA0;
  margin: 0px 0 50px 0;
  font-size: 18px;
  line-height: 18px;
}

#contact-me h2{
  margin: 10px 0 20px 0;
  font-size: 36px;
  line-height: 36px;
  text-align: center;
}

#contact-cards{
  width: 50%;
  margin: 10px auto 50px auto;
  text-align: center;
}

#contact-cards a{
  margin: 0 20px;
}




/* For small screen size */

@media only screen and (max-width: 680px){ 
  
#nav-style{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
  
  #logo-container {
    width: 100%;
    margin: 10px auto;
    text-align: center;
  }
  
   #brand-logo{
    font-size: 22px;
    padding: 0px 10px;
    line-height: 35px;
  }
  
  #navlinks {
    width: 100%;
    justify-content: space-around;
  }
  
  #navlinks li a {
    font-size: 16px;
  }

  
  .about-info p {
    font-size: 16px;
    letter-spacing: 0.8px;
  }
  
  .about-info h1 {
    font-size: 18px;
  }
  
  .about-info span{
    font-size: 36px;
  }
  
  #experience {
    display: flex;
    flex-direction: column;
    align-items: space-around;
    justify-content: center;
  }
  
  #experience p {
    line-height: 22px;
  }
  
  .skillset img {
    width: 32px;
    height: auto;
  }
  
  .project-tile{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  
  .product-img, .product-info {
    width: 80%;
  }
  .product-info{
    margin: 30px;
  }
  
  #footer p a {
    font-size: 11px;
  }
  
}
  
  
 
              
            
!

JS

              
                window.onresize = function(){
  location.reload();
}

let container = document.querySelector("#welcome-container");
let about = document.querySelectorAll(".about");
let leftArrow = document.querySelector("#left");
let rightArrow = document.querySelector("#right");
let counter = 0;
//let aboutDivWidth = about[0].clientWidth;
leftArrow.classList.add('disabled');
//console.log(about.length);
let aboutDivWidth = about[0].clientWidth;;



//right slide
rightArrow.addEventListener('click', () => {
  counter++;
  container.style.transition = "transform .3s linear";
  container.style.transform = 'translateX(' + (-aboutDivWidth * counter) + 'px)';
  //console.log(aboutDivWidth*counter);
  
  if(counter >= about.length-1){
    rightArrow.classList.add('disabled');
    leftArrow.classList.remove('disabled');
  }
  else {
    enable();
  }
});

//left slide
leftArrow.addEventListener('click', () => {
  counter--;
  container.style.transition = "transform .3s linear";
  container.style.transform = 'translateX(' + (-aboutDivWidth * counter) + 'px)';
  //console.log(-aboutDivWidth*counter);
  
  if(counter == 0){
    leftArrow.classList.add('disabled');
    rightArrow.classList.remove('disabled');
  }
  else{
    enable();
  }
  
});


function enable() {
   leftArrow.classList.remove('disabled');
   rightArrow.classList.remove('disabled');
  
 
}



              
            
!
999px

Console