css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <header>
  <div id="navbar-1">

    <nav class="navbar   navbar-static-top navbar-inverse " style="background-color: #41496a;">
      <div class="container" >
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="navbar-collapse-1">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#about-me"><i class="fa fa-user"></i> ABOUT ME</a></li>
            <li><a href="#portfolio"><i class="fa fa-briefcase"></i> PORTFOLIO</a></li>
            <li><a href="#contact-me"><i class="fa fa-envelope"></i> CONTACT</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>
  </div>
</header>
<div class="container">
  <div class="row">
    <div class="col-xs-12 light-blue-box">
      <div id="about-me">
        <div class="row">
          <div class=" col-xs-6 col-sm-8 col-md-10"><h1 class="text-center " id="name">Huajun Chen</h1>
          </div>
          <div class="col-xs-6  col-sm-4 col-md-2">
            <img src='https://lh3.googleusercontent.com/aF0mdNQZyibqTsq3Vx0krDPWfYCUG9rEnXBHHSWI7OnUH7Zocpr-AVVi1JDmBf3hh6OZdpuFuwUk1pLcWB7W_nab3hMptgTaQbFr-ZxDIeWpIDjCvNCYOXtmAt8IcPHDJchrrY3sUGQ' alt="huajun chen"  id= "photo">
          </div>
        </div>
        <div id="description">
          <p>Welcome to my portfolio website. I am a GIS DBA / Programmer, who is interested in web design. </p>          
        </div>
        <hr class="style14">
      </div>

      <div  id="portfolio">
        <div class="row">
          <div class="col-xs-12 col-sm-12 col-md-2 text-center">
            <h3>PORTFOLIO</h3>
          </div>
          <div  class="col-xs-12 col-sm-12 col-md-10" >
            <div id="js-projects">
            </div>
          </div>

        </div>
        <hr class="style14">
      </div>
      <div  id="contact-me">
        <div class="row">
          <div class="col-xs-12 col-sm-12 col-md-2 text-center">
            <h3>CONTACT ME</h3>
          </div>
          <div class="col-xs-12 col-sm-12 col-md-10">
            <div  class="row ">
              <a class="btn btn-social-icon btn-facebook col-xs-4 col-sm-2" href="https://www.facebook.com/huajun.chen"   target="_blank">
                <span class="fa fa-facebook-square fa-3x"></span>
              </a>
              <a class="btn btn-social-icon btn-linkedin col-xs-4 col-sm-2" href="https://www.linkedin.com/in/huajun-chen-98512211/"   target="_blank">
                <span class="fa fa-linkedin fa-3x"></span>
              </a>
            </div>
          </div>
        </div>
      </div>
      <hr class="style14">
    </div>
  </div>
</div>
<footer>
  ©2018, Huajun Chen
</footer>
            
          
!
            
              /* Merienda One */
@import url(https://fonts.googleapis.com/css?family=Merienda+One);

/* Yrsa */
@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body { 
  font-family: 'Open Sans', sans-serif;
  background-color: #2e2923;
}

* {
box-sizing:border-box;
}

hr.style14 { 
  margin-bottom:50px;
  border: 0; 
  height: 5px; 
  background-image: -webkit-linear-gradient(left, #d1d5e2, #8c8b8b, #d1d5e2);
  background-image: -moz-linear-gradient(left, #d1d5e2, #8c8b8b, #d1d5e2);
  background-image: -ms-linear-gradient(left, #d1d5e2, #8c8b8b, #d1d5e2);
  background-image: -o-linear-gradient(left, #d1d5e2, #8c8b8b, #d1d5e2); 
}


#name {
  font-family: 'Merienda One', cursive;
  text-align: right;
}

h3 {
  font-family: 'Merienda One', cursive;
}

#navbar-1 {
  font-family: 'Merienda One', cursive; 
}

.light-blue-box {
  background-color:#d1d5e2;
  margin:-20px 0px 0px 0px;
  padding:0px 50px 30px 50px;
}
#portfolio .col-sm-4 {
    //height: 300px;
    overflow: hidden;  
}

.project-image {
  width:100%;
  border-bottom:2px solid #8c8b8b;
}

/*remove underline for hover: for people using Bootstrap, add "!important" after "none"*/
.project-class a:hover{
    text-decoration: none !important;
}
.project-class:hover {
  border:5px solid orange ;
  margin: 2px 2px 17px 2px;
}
  
.project-text {
  background-color:#f0f0e9;
  padding:10px 5px 5px 5px;
}
.project-text p {
  font-size:12px;
  color: #424242;
}
.project-title {
  font-size:18px;
  font-weight:bold;
  color:#5e5d3e;
}
.project-class {
  border-style :solid;
    border-color: #8c8b8b;
    border-width: 2px;
  margin:5px 5px 20px 5px;
}

#photo  {
    width: 100px;
    border-color: #8c8b8b;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
}

#description {
  padding:30px 0px 30px 0px;  
}
#about-me {
  padding:90px 0px 0px 0px;
}
#about-me p{
  font-size: 18px;
}

footer {
  background-color:#41496a;
  color:#9d9d9d;
  padding:10px 10px 10px 10px;
}

#my-photo {
		-webkit-animation: rotation 12s infinite linear;
}
@-webkit-keyframes rotation {
		from {
				-webkit-transform: rotate(0deg);
		}
		to {
				-webkit-transform: rotate(359deg);
		}
}
            
          
!
            
              "use strict";

var projectDetails = [
  {
    "ID":1,
    "name":"My Resume 2018",
    "description":"My resume of 2018.You can find all the information in my linkedin as well",
    "thumbnail":"https://i.lensdump.com/i/8RHTuM.jpg",
    "hyperlink":"https://codepen.io/hchen/full/EEygog/"    
  },
  {
    "ID":2,
    "name":"Local Weather",
    "description":"Shows weather of the current location. Data comes from OpenWeatherMap",
    "thumbnail":"https://i.lensdump.com/i/8RH0yF.png",
    "hyperlink":"https://codepen.io/hchen/full/VQqLRr/"    
  },
  {
    "ID":3,
    "name":"Basemaps of Garland",
    "description":"Display multiply maps. When pan on one map, other map views will be updated.",
    "thumbnail":"https://i.lensdump.com/i/8RHZT3.png",
    "hyperlink":"https://maps.garlandtx.gov/maps/basemaps/"    
  },
  {
    "ID":4,
    "name":"Quote Machine",
    "description":"Display a random quote with API from quotesondesign.com",
    "thumbnail":"https://i.lensdump.com/i/8RHgO0.jpg",
    "hyperlink":"https://codepen.io/hchen/full/PQygpp/"    
  },
  {
    "ID":5,
    "name":"Street PCI Map",
    "description":"Display a map to show and query on street PCI score.",
    "thumbnail":"https://i.lensdump.com/i/8RH6Qa.jpg",
    "hyperlink":"https://codepen.io/hchen/full/mxbwGJ/"    
  },
  {
    "ID":6,
    "name":"Basemap Toggle",
    "description":"Toggles between three ESRI Basemaps, instead of two",
    "thumbnail":"https://i.lensdump.com/i/8RHdc1.jpg",
    "hyperlink":"https://codepen.io/hchen/full/VQJZgJ/"    
  }
];

function displayProjects(){   
  var projectsHTMLList = "";
  var projectHTML = "";
  for(var i in projectDetails){
    var {name: title, description, thumbnail, hyperlink} = projectDetails[i]; 
    
    projectHTML = `<div class="col-xs-12 col-sm-4">
                     <div class="project-class">
                       <a href="${hyperlink}" target="_blank">
                         <img class= "project-image img-responsive" src="${thumbnail}">
                         <div class= "project-text">
                           <div class="text-center  project-title">${title}</div>
                           <p>${description}</p>
                         </div>
                       </a>
                     </div>
                   </div>`;  
  
    console.log(projectHTML);

         projectsHTMLList +=  projectHTML ;
    
    
  }  
  
  projectsHTMLList = `<div class="row">${projectsHTMLList}</div>`;     

  $("#js-projects").html(projectsHTMLList);
}

$(document).ready(function(){
  displayProjects();
});

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console