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

              
                <!DOCTYPE html>
<html lang="en">

<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>Xiang Zhou's portfolio</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <!--left section About Me Section-->
  <section id="about_me">
    <h1 class="section_title">About Me</h1>
    <img src="img/profile_pic.png" alt="my_profile_picture" id="profile_pic">

    <div id="self_intro">
      <p id="intro_first_line">My name is Xiang (Matt) Zhou. I am a web developer who loves tech.</p>
      <p>Here is a brief introduction about myself :</p>
      <ul>
        <li>learning to code through freecodecamp.org since 2016</li>
        <li>comfortable writing web pages using HTML CSS as well as javascript</li>
        <li>had experience with designing and building fully responsive website using bootstrap, css-grid</li>
        <li>currently learning javascript data structures as well as algorithms</li>
        <li>one of my articles regarding learning to code on medium has more than 50k views</li>
        <li>built my own blog using jekyll</li>
      </ul>
    </div>

    <div id="cert_gallery">
      <figure>
        <!--the 1st image has to be the same as the last image to create a flow -->
        <img src="img/Respsonsive_Web_Design_Cert.png" alt="responsive_web_design_cert">
        <img src="" alt="javascript_algorithm_cert">
        <a href="https://medium.freecodecamp.org/the-most-difficult-things-about-learning-to-code-by-yourself-b24ac8c3c23a">
          <img src="img/medium article.png" alt="medium_article_I_wrote">
        </a>
        <img src="img/Respsonsive_Web_Design_Cert.png" alt="responsive_web_design_cert">
        <!--same as 1st image-->
      </figure>
    </div>

    <div id="contact_me">
      <h1 class="section_title">You can find me at:</h1>
      <div id="contact_inner_div">
        <a href="https://www.freecodecamp.org/zhouxiang19910319" target="_blank">freeCodeCamp</a>
        <a href="https://github.com/zhouxiang19910319" target="_blank">github</a>
        <a href="https://www.linkedin.com/in/xiang-zhou-03547755/" target="_blank">linkedin</a>
        <a href="https://codepen.io/zhouxiang19910319/pens/public/" target="_blank">codepen</a>
        <a href="https://twitter.com/zh0ux1ang" target="_blank">twitter</a>
        <a href="https://medium.freecodecamp.org/the-most-difficult-things-about-learning-to-code-by-yourself-b24ac8c3c23a "target="_blank">medium</a>
        <a href="https://slowpacedcoding.com/" target="_blank">blog</a>
      </div>

    </div>
  </section><!--end about me section-->

  <!--Right section project gallery-->
  <section id="project_gallery">
    <h1 class="section_title">Project Gallery</h1>

    <div id="grid_wrapper">
      <!--1-->
      <div class="card" id="bootstrap_documentation">
        <a href="https://bootstrap-technical-documentation.netlify.com" target="_blank">
          <div class="description">
            <h2>Bootstrap Documentation Page</h2>
            <p>I cloned an old version of bootstrap's documentation page.</p>
          </div>
        </a>
      </div>
      <!--2-->
      <div class="card" id="macbookpro_configuration">
        <a href="#" target="_blank">
          <div class="description">
            <h2>Macbook Pro Configuration Page</h2>
            <p>I cloned apple's macbook pro config page using bootstrap.</p>
          </div>
        </a>
      </div>
      <!--3-->
      <div class="card" id="tribute_page">
        <a href="https://mickeyrourke-tribute-page.netlify.com" target="_blank">
          <div class="description">
            <h2>Tribute Page</h2>
            <p>Tribute Page I made when doing freeCodeCamp's curriculum.</p>
          </div>
        </a>
      </div>
      <!--4-->
      <div class="card" id="nerdfusionclone">
        <a href="https://nerdfusionclone.netlify.com" target="_blank">
          <div class="description">
            <h2>N3rdfusion Studio Website Clone</h2>
            <p>I cloned N3rdfusion's old studio site.</p>
          </div>
        </a>
      </div>
      <!--5-->
      <div class="card" id="tweet_collection">
        <a href="https://not-jony-ive-tweetcollection.netlify.com/" target="_blank">
          <div class="description">
            <h2>Tweets Collection using Mansonry JS</h2>
            <p>Image gallery like tweets collection page I made using external JS libraries.</p>
          </div>
        </a>
      </div>

    </div>

  </section>
</body>

</html>
              
            
!

CSS

              
                /*base styling*/

*{
  margin: 0;
  -webkit-box-sizing:border-box;
          box-sizing:border-box;
}
p{
  font-size:16px;
}


body {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.6fr;
  grid-template-columns: 1fr 1.6fr;
  grid-gap: 1rem;
}

/*universal styling*/
.section_title {
  margin-bottom: 2rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.1rem;
  font-weight: 400;
  color: #202224;
}

#profile_pic {
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
  width: 8rem;
  float: right;
}

/*ABOUT ME SECTION OF THE PAGE*/
#about_me {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 1/2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1/2;
  padding: 2rem;

  background: #d7d7d7;
}

#self_intro {
  background-color: #eeeeee;
  padding: 1rem;
  margin: 1rem auto;
}

#intro_first_line {
  font-family: 'Open Sans', sans-serif;

}

#self_intro p,
li {
  font-family: 'Open Sans', sans-serif;

  line-height: 1.5rem;
}


#cert_gallery {
  overflow: hidden;
}

/*cert gallery section*/

#cert_gallery figure {
  position: relative;
  margin: 0;
  left: 0;
  width: 500%;
  -webkit-animation: 15s cert_gallery infinite;
          animation: 15s cert_gallery infinite;
}

#cert_gallery figure img {
  width: 20%;
  float: left;
}

@-webkit-keyframes cert_gallery {
  0% {
    left: 0;
  }

  20% {
    left: 0;
  }

  33% {
    left: -100%;
  }

  45% {
    left: -100%;
  }

  66% {
    left: -200%;
  }

  75% {
    left: -200%;
  }

  100% {
    left: -300%;
  }
}

@keyframes cert_gallery {
  0% {
    left: 0;
  }

  20% {
    left: 0;
  }

  33% {
    left: -100%;
  }

  45% {
    left: -100%;
  }

  66% {
    left: -200%;
  }

  75% {
    left: -200%;
  }

  100% {
    left: -300%;
  }
}

/*contact me section*/
#contact_inner_div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  -ms-flex-line-pack: center;
  align-content: center;

  background-color: #d7d7d7;
}

#contact_inner_div a {
  position: relative;
  text-decoration: none;
  color: #23b6c7;
  padding: 0.8rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  background-color: #eeeeee;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

#contact_inner_div a:hover {
  color: white;
  z-index: 2;
}

#contact_inner_div a:after {
  position: absolute; /*this and the position I set on a tag will make sure that the a tag got filled in a backrgound color, instead of the whole page got filled in*/
  content: ""; /*empty content, background color only??*/
  height: 100%;
  left: 0;
  top: 0;
  width: 0px;
  -webkit-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  z-index: -1;
}
#contact_inner_div a:hover:after {
  width: 100%;
  background-color: #23b6c7;
  color: white; 
}



/*PROJECT GALLERY SECTION OF THE PAGE*/
#project_gallery {
  grid-column: 2/-1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 2;
  grid-row: 1/3;
  padding: 2rem;
}


#grid_wrapper {
  display: -ms-grid;
  display: grid;
  max-width: 1000px;
  width: 100%;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  -ms-grid-rows: (480px)[4];
      grid-template-rows: repeat(4, 480px);
  grid-auto-rows: minmax(480px, auto);
  grid-gap: 1.5rem;
}

#bootstrap_documentation {
  grid-column: 1/-1;
  background-image: url("https://res.cloudinary.com/zzrot/image/upload/v1538350962/Personal%20Portfolio%20Collection/Personal%20Portfolio%20Site%20Images/bootstrap_4.png");
}

#macbookpro_configuration {
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-column: 1/3;
  -ms-grid-row-span: 2;
  grid-row: span 2;
  background-image: url("https://res.cloudinary.com/zzrot/image/upload/v1538552866/Personal%20Portfolio%20Collection/Personal%20Portfolio%20Site%20Images/medium%20article.png");
}

#tribute_page {
  background-image: url("https://res.cloudinary.com/zzrot/image/upload/v1541186510/Personal%20Portfolio%20Collection/Personal%20Portfolio%20Site%20Images/tribute_page.png")
}

#nerdfusionclone {
  background-image: url("https://res.cloudinary.com/zzrot/image/upload/v1538350962/Personal%20Portfolio%20Collection/Personal%20Portfolio%20Site%20Images/nerdfusion.png");
}

#tweet_collection {
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-column: 1/3;
  background-image: url("https://res.cloudinary.com/zzrot/image/upload/v1541187125/Personal%20Portfolio%20Collection/Personal%20Portfolio%20Site%20Images/tweets_collection.png")
}

.card {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  -webkit-box-shadow: 3px 3px 5px 6px #d7d7d7;
          box-shadow: 3px 3px 5px 6px #d7d7d7;
}

.description {
  position: absolute;
  color: white;
  background: #23b6c7;
  -webkit-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
  bottom: -150px;
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  text-align: center;
}

h2,
p {
  margin: .5rem .5rem;
}


.card:hover .description {
  -webkit-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
  bottom: 0px;
}



/*Media Queries*/

/*<1100px*/
@media (max-width:1100px) {
  #about_me {
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1/3;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;
  }

  #profile_pic {
    float: right;
  }

  #self_intro p,
  li {
    font-size: .9rem;
    line-height: 1.3rem;
    letter-spacing: .05rem;
  }

  #project_gallery {
    grid-column: 1/-1;
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-row: 2/3;
  }
}

/*1100px - 1150px*/
@media(min-width:1100px) and (max-width:1150px){
  #bootstrap_documentation {
    grid-column: 1/-1;
  }
  
  #macbookpro_configuration {
    grid-column: 1/-1;
  }
  
  #tribute_page {
    grid-column: 1/-1;
  }
  
  #nerdfusionclone {
    grid-column: 1/-1;
  }
  
  #tweet_collection {
    grid-column: 1/-1;
  }
}


/*650px - 700px*/
@media (min-width:650px) and (max-width:700px){
  #bootstrap_documentation {
    /* grid-column: 1/-1; */
    grid-row: span 1;
  }
  
  #macbookpro_configuration {
    grid-column: 1/-1;
    grid-row: span 1;
  }
  
  #tribute_page {
    grid-column: 1/-1;
  }
  
  #nerdfusionclone {
    grid-column: 1/-1;
  }
  
  #tweet_collection {
    grid-column: 1/-1;
  }
}

/*<650px*/
@media (max-width: 650px) {
  #bootstrap_documentation {
    grid-column: auto;
  }

  #macbookpro_configuration {
    grid-column: auto;
    grid-row: auto;
  }

  #tweet_collection {
    grid-column: auto;
  }
}
              
            
!

JS

              
                


              
            
!
999px

Console