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

              
                 
<div class="container-fluid alt-proj">  
  <!--Project title-->
  <div class="row">
    <div class="col-md-12">
      <div class="alt-proj-title">Ecosystem Techniques Course</div>
    </div>
  </div>
  <!--Project main content -->
  <div class="row">
    <div class="col-md-5">
      <div class="alt-proj-description">
        <p>This course combined exploratory field experiences with online resources and interactive charts to promote the interests of open science, data literacy, and advanced space piracy. </p>
        <p>You can see elements of interactive charting here. There was as seamless integration of content management through Google Drive folders evident <a href="#">here</a> and on subsequent pages. Additional elements of student projects are visible
          <a
            href="#">here</a>.</p>
      </div>
      <button class="btn btn-default alt-proj-button"><a href="#">Go to the site</a></button>
      <!--FACULTY-->
      <div class="alt-proj-faculty row">
        <div class="col-md-12"><h3>Faculty:</h3></div>
        <!--member-->
        <div class="alt-proj-faculty-member hvr-underline-from-left col-md-6">
          <img class="alt-proj-faculty-thumb" src="https://rampages.us/ecotechniques/wp-content/uploads/sites/24103/2017/04/Gough.jpg">
          <div class="alt-proj-faculty-details">
            <div class="alt-proj-faculty-name">Chris Gough</div>            
            <div class="alt-proj-faculty-school">Rice Center</div>
          </div>
        </div>
        <!--end member-->
        <!--member-->
         <div class="alt-proj-faculty-member hvr-underline-from-left col-md-6">
          <img class="alt-proj-faculty-thumb" src="https://rampages.us/ecotechniques/wp-content/uploads/sites/24103/bb-plugin/cache/ecotech-281x300-portrait.jpg">
          <div class="alt-proj-faculty-details">
            <div class="alt-proj-faculty-name">Ellen Stuart-Haentjens</div>
            <div class="alt-proj-faculty-school">Department of Biological Magic</div>            
          </div>
        </div>
        <!--end member-->
        <!--member-->
         <div class="alt-proj-faculty-member hvr-underline-from-left col-md-6">
          <img class="alt-proj-faculty-thumb" src="https://rampages.us/ecotechniques/wp-content/uploads/sites/24103/bb-plugin/cache/3f10e82-portrait.jpg">
          <div class="alt-proj-faculty-details">
            <div class="alt-proj-faculty-name">Joseph Brown</div>
            <div class="alt-proj-faculty-school">Rice Center</div>            
          </div>
        </div>
        <!--end member-->
        <!--member-->
         <div class="alt-proj-faculty-member hvr-underline-from-left col-md-6">
          <img class="alt-proj-faculty-thumb" src="https://rampages.us/ecotechniques/wp-content/uploads/sites/24103/bb-plugin/cache/cache-7812-0x0-226x300-portrait.jpg">
          <div class="alt-proj-faculty-details">
            <div class="alt-proj-faculty-name">Scott Neubauer</div>
            <div class="alt-proj-faculty-school">Rice Center</div>            
          </div>
        </div>
        <!--end member-->
      </div>
     <!--END FACULTY-->
      <!--Project meta-->
      <div class="alt-proj-meta">
        <div class="row">
          <div class="col-md-6 alt-proj-concepts"><h3>Concepts:</h3> 
            <ul>
              <li><a href="#">concept number one</a></li>
              <li><a href="#">concept number two</a></li>
              <li><a href="#">concept number three</a></li>
              <li><a href="#">concept number four</a></li>              
            </ul>  
          </div>
          <div class="col-md-6 alt-proj-tools"><h3>Tools:</h3>
           <ul>
              <li><a href="#">tool number one</a></li>
              <li><a href="#">tool number two</a></li>
              <li><a href="#">tool number three</a></li>
              <li><a href="#">tool number four</a></li>              
            </ul>  
          </div>
        </div>
      </div>  
      <!--end project meta-->
    </div>
    <!--Project Image-->
    <div class="col-md-7">
      <img class="img img-fluid alt-proj-img" src="https://alt.rampages.us/wp-content/uploads/2017/06/Screen-Shot-2017-06-11-at-8.45.18-PM.png">
    </div>
  </div>
  <!--end main row-->
  
  <!--project data -->
    <div class="row alt-proj-data">
      <div class="col-md-12"><h3>Project Data</h3></div>
       <!-- days -->
      <div class="col-md-2">
        <i class="fa fa-calendar-o" aria-hidden="true"></i>
        Days: <span class="alt-proj-numbers">32</span>
      </div>
      
        <!-- emails -->
      <div class="col-md-2">
        <i class="fa fa-envelope-o" aria-hidden="true"></i>
        Emails: <span class="alt-proj-numbers">17</span></div>
      
       <!-- github -->
      <div class="col-md-2">
       <i class="fa fa-file-code-o" aria-hidden="true"></i>
        Lines of Code: <span class="alt-proj-numbers" id="git-count" data-repo="motherblog"></span></div>

        <!-- slack -->      
      <div class="col-md-2"><i class="fa fa-slack" aria-hidden="true"></i>
        Slack Messages: <span class="alt-proj-numbers">17</span>
      </div>
      
        <!-- google drive -->      
      <div class="col-md-2">
       <i class="fa fa-files-o" aria-hidden="true"></i>
        Drive: <span class="alt-proj-numbers" data-drive="0B8V5e4jT9sRdQVl4RUF0ZmpSclE">6127</span></div>
      
        <!-- something else -->      
      <div class="col-md-2"><i class="fa fa-slack" aria-hidden="true"></i>
        Something: <span class="alt-proj-numbers">17</span>
      </div>
  </div> 
  <!--End project data-->
</div>
              
            
!

CSS

              
                body {
  background-image: url(https://rampages.us/newplayground/wp-content/uploads/sites/23567/2017/06/ALTlab-Atriangle.png);
}

.row {
  background-color: #fff;
}

.alt-proj {
  width: 80%;
  margin: 30px auto;
}

.alt-proj-title {
  font-size: 3em;
  font-weight: 200;
  color: #555555;
  line-height: 1;
  margin: 20px 0;
}

.alt-proj-img {
  padding:5px;
  border: 1px solid #efefef;
  margin: 0 0 60px 0;
}

.alt-proj-button {
  border-radius: 0;
  background-color: #fff;
  border: 1px solid #424242;
  margin: 10px auto;
  -webkit-transition:  .3s; /* Safari */
    transition:  .3s;
  display: block;  
}

.alt-proj-button a{
  text-decoration:none;
}

.alt-proj-button:hover a {
  text-decoration:none;
  color: #fff;
}

.alt-proj-button:hover {
  background-color:  #05c1ff;
}

.alt-proj-faculty a:hover{
  text-decoration: none;
}

.alt-proj-faculty h3, .alt-proj-meta h3, .alt-proj-disciplines h3 {
  font-weight: 200;
  margin: 25px 0 0 0;
  line-height: 1;
}

.alt-proj-faculty-member {
  margin-top: 10px;
  height: 90px;
  padding: 5px;
}

.alt-proj-faculty-member:hover {
    background-color: #efefef;
}

.alt-proj-faculty-thumb {
  border-radius: 50%;
  height: 80px;
  width: 80px;
  padding: 2px;
  border: 1px solid #efefef;
  position: absolute;
}

.alt-proj-faculty-details {
  display: inline-block;
  margin-left: 90px;
  margin-top: 0;
}

.alt-proj-faculty-name {
  font-size: 1.2em;
  line-height: 1;
}

.alt-proj-faculty-title, .alt-proj-faculty-title a,.alt-proj-faculty-school {
  color: #555555;
  font-size: .9em;
  line-height: 1.2;
}

.alt-proj-meta {
  border-top: 15px;
  overflow:hidden;
  display: block;
}

.alt-proj-meta ul {
  margin-top: 5px;
  list-style-type: none;
  padding: 0;
}
 
.alt-proj-meta li {
  font: 200 .9em Helvetica, Verdana, sans-serif;
  border-bottom: 1px solid #ccc;
  padding: 5px;
}
 
.alt-proj-meta li:last-child {
  border: none;
}
 
.alt-proj-meta li a {
  text-decoration: none;
  display: block;
}
 
.alt-proj-data {
  background-color: #000;
  padding: 20px;
  color: #fff;
}

.alt-proj-data h3 {
  font-weight: 200;
  margin: 25px 0;
}

.alt-proj-numbers {
  display:block;
  text-align: left;
  font-size: 4em;
  font-weight: 100;
  color: #05c1ff;
}
              
            
!

JS

              
                //get repo lines of codes stats
var git = document.getElementById('git-count');
var repo = git.getAttribute('data-repo');
var url = 'https://api.github.com/repos/vcualtlab/'+repo+'/stats/contributors';

fetch(url)
    .then(response => response.json())
    .then(contributors => contributors
        .map(contributor => contributor.weeks
            .reduce((lineCount, week) => lineCount + week.a - week.d, 0)))
    .then(lineCounts => lineCounts.reduce((lineTotal, lineCount) => lineTotal + lineCount))
    .then(lines => git.innerHTML = lines);

              
            
!
999px

Console