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

              
                <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>Codecademy</title>
    <link rel="stylesheet" href="main.css"/>
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
</head>
<body>  
   <header>
       <div class="container_navbar">
               <img src="https://github.com/RishabhJha/Codecademy-rework/blob/master/assets/logo-code.png?raw=true" alt="brand-image" class="brand">
                <div class="menu">
                    <nav class="left-m">
                        <ul>
                       <li><a href="#" class="home">Home</a></li>
                       <li><a href="#" class="community">Community</a></li>
                       <li><a href="#" class="catalog">Catalog</a></li>
                       </ul>
                       </nav>
                       <ul class="right-m">
                       <li><b><a href="#" class="btn-1">Upgrade to Pro</a></b></li>
                       <li><a href="#" class="bell"><i class="far fa-bell" alt="notify"></i></a></li></ul>
                       <a href="#"><img src="https://github.com/RishabhJha/Codecademy-rework/blob/master/assets/profile.png?raw=true" class="img-profile" alt="profile"/></a>
                </div>           
       </div>
   </header>
   <section id="hero">
        <a href="#"><img src="https://github.com/RishabhJha/Codecademy-rework/blob/master/assets/profile.png?raw=true" class="hero_img" alt="profile"/></a>
        <div class="membership">
            <p class="first">Nightbot</p>
            <p class="mem">Pro Member</p>
          <div class="stats">
              <div class="bdg">
                <p class="f1">30</p>
                <p class="l1">Badges</p>
              </div>
              <div class="crs">
                <p class="f2">10</p>
                <p class="l2">Courses</p>
              </div>
          </div> 
        </div>
        <img src="https://production.cdmycdn.com/webpack/30fb3d459119548641b335c656edf0e6.svg" class="svg"/>
       </section>
   <section id="mini_nav">
       <div class="container-mn">
           <ul>
               <li class="i1">Today</li>
               <li class="i2">My Courses</li>
               <li class="i3">Practice</li>
           </ul>
       </div>
   </section>
   <section id="gt-strtd">
       <h3>Continue Learning</h3>
       <div class="container-gs">
           <img src="https://production.cdmycdn.com/webpack/1a22a84328664343b29f01a1602cc4c1.svg" alt="" class="lesson-img">
       <div class="gs_content">
           <div class="gs_full">
           <p class="gs_main">Introduction To Javascript</p>
           <p class="gs_sup">Keep making progress on introduction to javascript</p>
           <span class="btn-2">Resume&nbsp80%</span>
           <span class="rst">Reset progress</span>
        </div>
       </div>
    </div>
   </section>
   <section id="strtr-kt">
        <h3>Starter Kit</h3>
       <div class="container-sk">       
       <div class="flex-item_1">
           <div class="img-round-1">
                <i class="fas fa-file-code"></i>
           </div>
           <h4>Intro to Coding</h4>
           <p class="txt-sup-2">Are you new to coding? This is the perfect place to start learning.</p>
       </div>
       <div class="flex-item_2">
           <div class="img-round-2">
            <i class="fas fa-glasses"></i>
           </div>
           <h4>Help find a course</h4>
           <p class="txt-sup-2">Take a quick quiz to help find the right course for you.</p>
       </div>
       <div class="flex-item_3">
           <div class="img-round-3">
            <i class="fas fa-users"></i>
           </div>
           <h4>Forums</h4>
           <p class="txt-sup-2">Join our community, meet other learners, and find answers to all your questions</p>
       </div>
    </div>
   </section>
   <section id="new_note">
       <h3>New & Noteworthy</h3>
       <div class="container-nn">
           <img src="https://production.cdmycdn.com/webpack/bf02eb9268f71c9829e057d42d85a773.png" alt="" class="note">
          <div class="nn_content">
           <p class="nn_main"><b>Build Websites from Scratch</b></p>
           <p class="nn_sup">Learn to design, build and deploy professional websites using HTML, CSS, Javascript and Github!</p>
           <a href="#" class="nn_link">Learn more</a>
        </div> 
       </div>
   </section>
   <section id="ways">
       <h3>Different Ways to Learn</h3>
       <div class="container_ways">
           <div class="grid-item">
              <p class="ways_cap">pro</p>
              <p class="ways_txt">
                Access to exclusive quizzes, projects and<br>customized learning paths, plus get help from<br>Pro Advisors via live chat 
              </p>
             <div class="icons">
                    <a href="#"><i class="fab fa-leanpub"></i></a>
                    <a href="#"><i class="fas fa-code"></i></a>
                    <a href="#"><i class="fas fa-clipboard-list"></i></a>
                    <a href="#"><i class="fas fa-puzzle-piece"></i></a>
                    <a href="#"><i class="fas fa-user"></i></a>     
             </div> 
           </div>
           <div class="grid-item">
             <p class="ways_cap">pro intensive</p>
             <p class="ways_txt">
                Access to an accelearted learning experience,<br>focused on job-ready skills, project based<br>learning and all Pro features
                </p>
              <div class="icons">
                    <a href="#"><i class="fab fa-leanpub"></i></a>
                    <a href="#"><i class="fas fa-code"></i></a>
                    <a href="#"><i class="fas fa-clipboard-list"></i></a>
                    <a href="#"><i class="fas fa-puzzle-piece"></i></a>
                    <a href="#"><i class="fas fa-user"></i></a>
                    <a href="#"><i class="fas fa-newspaper"></i></a>
                    <a href="#"><i class="fas fa-comments"></i></a>
                    <a href="#"><i class="fas fa-certificate"></i></a>
              </div>  
           </div>
       </div>
       <div class="btn-container">
       <div class="btn-exp1">
            <a href="#" class="b1"><br>EXPLORE</a>
        </div>
        <div class="btn-exp2">   
             <a href="#" class="b1"><br>EXPLORE</a>
            </div>         
        </div>
   </section>
   <!--Footer to be added later-->
</body>
</html>
              
            
!

CSS

              
                /*----------------FLEXBOX USED------------------*/
*{
  margin: 0px;
  padding: 0px;
  font-family: Arial, Helvetica, sans-serif;
}

/*---------------------Header--------------------*/
header{
  position: fixed;
  height: 60px;
  width: 100%;
  background-color: white;
  z-index: 1;
}

.brand{
  height: 150px;
  width: auto;
  margin-top: -35px;
  margin-left: 80px;
}

.menu{
  display: flex;
  margin-top: -95px;
}

nav ul{
  list-style: none;
  margin-left: 300px;
}

nav ul li{
  display: inline-block;
  margin: 0px;
}

nav ul li a{
  margin: 20px;
  text-decoration: none;
  color: rgb(88,88,88);
}

nav ul li a:hover{
  color: rgb(100,0,228);
}

.home {
  color: rgb(0,0,0);
  font-weight: bold;
}

.right-m{
  list-style: none;
  margin-left: 350px;
}

.right-m li{
  display: inline-block;
}

.right-m li a{
  margin: 20px;
}

.btn-1{
  border: 1px solid rgb(100,0,228);
  font-size: 15px;
  padding: 10px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  background-color: rgb(100,0,228);
}

.img-profile{
  height: 30px;
  width: 30px;
  border-radius: 50px;
  margin-left: 20px;
  margin-top: -5px;
}

.bell{
  color: rgb(92,92,92);
}
/*-------------------------Header ends here---------------------------*/

#hero{
  height: 260px;
  background-color: rgb(95,207,203);
}

.hero_img{
  height: 80px;
  width: 80px;
  border-radius: 50px;
  margin-top: 120px;
  margin-left: 150px;
}

.membership{
  margin-left: 260px;
  margin-top: -80px;
}

.first{
  font-size: 30px;
  font-weight: bold;
  color: rgb(72,72,72);
  margin-bottom: 12px;
}

.mem{
  color: rgb(92,92,92);
  font-size: 15px;
}

.stats{
  display: flex;
  text-align: center;
  margin-left: 765px;
  margin-top: -62px;
}

.f1{
  font-size: 30px;
  color: rgb(72,72,72);
  font-weight: bold;
}

.f2{
  margin-left: 100px;
  font-size: 30px;
  color: rgb(72,72,72);
  font-weight: bold;
}

.l1{
  font-size: 15px;
  margin-top: 5px;
  color: rgb(92,92,92);
}

.l2{
  margin-left: 100px;
  font-size: 15px;
  margin-top: 5px;
  color: rgb(92,92,92);
}

.svg{
  margin-top: -112px;
  margin-left: 83.8%;
  opacity: 0.8;
}


/*-----------------------------Hero ends here--------------------------*/

.container-mn{
  margin-top: 50px;
  border: 1px solid rgb(84,79,123);
  border-radius: 3px;
  height: 42px;
  width: 960px;
  margin-left: 15%;
  background-color: rgb(84,79,123);
}


.container-mn ul{
  display: flex;
  list-style: none;
}

.container-mn ul li{
  font-size: 18px;
  padding: 10px;
  font-weight: bold;
}

.i1{
  margin-left: 140px;
  border-right: 1px solid rgb(84,79,123);
  color: rgb(255,255,255);
  background-color: rgb(84,79,123);
  
}

.i2{
  margin-left: 200px;
  color: rgb(255,255,255);
}

.i3{
  margin-left: 220px;
  border-left: 1px solid rgb(84,79,123);
  color: rgb(255,255,255);
}

/*-------------------------------mini nav ends---------------------------------*/

#gt-strtd{
  margin-top: 85px;
}

#gt-strtd h3{
  margin-left: 100px;
  color: rgb(41,41,41);
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: bold;
}

.container-gs{
  margin-left: 100px;
  margin-right: 100px;
  height: 200px;
  background-color: rgb(255,255,255);
}

.gs_content{
  height: 200px;
  margin-top: -204px;
  margin-left: 320px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5); 
}

.gs_full{
  padding: 50px;
}

.gs_main{
  font-size: 25px;
  font-weight: bold;
  color: rgb(45,45,45);
  margin-bottom: 20px;
}

.gs_sup{
  color: rgba(41,41,41,0.6);
  margin-bottom: 20px;
}

.btn-2{
  font-size: 18px;
  background-color: rgb(255,193,7);
  padding: 10px;
  text-transform: uppercase;
  color: rgba(92,85,56,1);
}

.rst{
  margin-left: 400px;
  font-weight: bolder;
  font-size: 12px;
  color: rgba(41,41,41,0.8);
}

/*------------------------------ends-----------------------------------------*/

#strtr-kt h3{
  margin-top: 50px;
  color: rgb(41,41,41);
  font-size: 22px;
  font-weight: bold;
  margin-left: 100px;
  margin-bottom: 25px;
}

.container-sk{
  margin-left: 100px;
  margin-right: 100px;
  height: 200px;
  background-color: rgb(255,255,255);
  display: flex;
}

.flex-item_1{
  height: 200px;
  border-top: 10px solid rgb(105,99,154); 
  width: 400px;
  margin-right: 40px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5); 
}

.img-round-1{
  height: 50px;
  width: 50px;
  background-color: rgb(105,99,154);
  margin-left: 280px;
  margin-top: 10px;
  border-radius: 50px;
}

.fa-file-code{
  color: #fff;
  margin-left: 18px;
  margin-top: 16px;
  font-size: 18px;
}

.flex-item_2{
  height: 200px;
  border-top: 10px solid rgb(76,126,243);
  width: 400px;
  margin-right: 40px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5);  
}

.img-round-2{
  height: 50px;
  width: 50px;
  background-color: rgb(76,126,243);
  margin-left: 280px;
  margin-top: 10px;
  border-radius: 50px;
}

.fa-glasses{
  color: #fff;
  margin-left: 14px;
  margin-top: 16px;
  font-size: 18px;
}

.flex-item_3{
  height: 200px;
  border-top: 10px solid rgb(255,193,7);
  width: 400px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5);  
}

.img-round-3{
  height: 50px;
  width: 50px;
  background-color: rgb(255,193,7);
  margin-left: 280px;
  margin-top: 10px;
  border-radius: 50px;
}

.fa-users{
  color: #fff;
  margin-left: 14px;
  margin-top: 16px;
  font-size: 18px;
}

h4{
  margin-top: -18px;
  margin-bottom: 15px;
  color: rgba(48,48,48,1);
  font-size: 18px;
  margin-left: 18px;
}

.txt-sup-2{
  color: rgba(70,70,70,0.8);
  margin-left: 18px;
  font-size: 16px;
  line-height: 30px;
}

/*---------------------------ends here------------------------------*/

#new_note h3{
  margin-top: 50px;
  color: rgb(41,41,41);
  font-size: 22px;
  font-weight: bold;
  margin-left: 100px;
  margin-bottom: 25px;
}

.container-nn{
  background: linear-gradient(90deg, rgb(52,40,184), rgb(45,32,145)); 
  height: 200px;
  margin-left: 100px;
  margin-right: 100px;
}

.note{
  height: 200px;
  width: auto;
}

.nn_content{
  margin-top: -150px;
  margin-left: 380px;
}

.nn_main{
  font-size: 25px;
  color: #fff;
  margin-bottom: 10px;
}

.nn_sup{
  color: #fff;
  margin-bottom: 30px;
}

.nn_link{
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/*------------------------ends-----------------------*/

#ways h3{
  margin-top: 50px;
  color: rgb(41,41,41);
  font-size: 22px;
  font-weight: bold;
  margin-left: 100px;
  margin-bottom: 25px;
}

.container_ways{
  display: flex;
  height: 200px;
  margin-left: 100px;
  margin-right: 100px;
  background-color: #fff;
}

.grid-item{
  height: 200px;
  width: 400px;
  margin-right: 40px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5);
  border-bottom: 1px dashed rgba(151,153,156,0.4);
}

.ways_cap{
  margin-top: 30px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: rgb(62,62,64);
  margin-left: 20px;
  font-size: 18px;
  font-weight: 500;
}

.ways_txt{
  font-size: 15px;
  line-height: 25px;
  color: rgb(151,153,156);
  margin-left: 20px;
}

.icons{
  margin: 20px;
  color: rgb(135,130,174);
}

.icons a{
  color: rgb(135,130,174);
}

.icons i{
  margin: 8px;
}

.btn-container{
  display: flex;
  margin-left: 100px;
}

.btn-exp1{
  text-align: center;
  margin-bottom: 10px;
  height: 60px;
  width: 400px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5);
}

.btn-exp2{
  text-align: center;
  margin-left: 40px;
  margin-bottom: 20px;
  height: 60px;
  width: 400px;
  box-shadow: 0px 2px 4px 1px rgba(200,200,200,0.5);
}

.b1{
  text-decoration: none;
  text-align: center;
  color: rgb(19,174,246);
  font-size: 15px;
  font-weight: bold;
}


              
            
!

JS

              
                
              
            
!
999px

Console