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

              
                <html lang="en">

<head>
  <title>Portfolio</title>
  <meta charset="utf-8">
  <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
</head>

<body>
  <nav id="navbar">
    <ul>
      <li><a href="#welcome-section">About</a></li>
      <li><a href="#projects">Projects</a></li>
      <li><a href="#contact">Contact</a></li>
    </ul>
  </nav>

  <main>
    <header id="welcome-section">
      
    </header>

    <section id="projects">
      <h2>Projects</h2>
      <div class="first-row">
        <div class="project-tile">
          <a href="https://codepen.io/mertyucel/full/WKYBow" target="_blank">
            <img src="https://webiconspng.com/wp-content/uploads/2017/09/Steve-Jobs-PNG-Image-62774.png">
            <div>
              <p>Tribute Page</p>
            </div>
          </a>
        </div>

        <div class="project-tile">
          <a href="https://codepen.io/mertyucel/full/oMRyaW/" target="_blank">
            <img src="https://www.nick-hayward.co.uk/wp-content/uploads/2017/11/freecodecamp-nottingham-800x533.png">
            <div>
              <p>Survey Form</p>
            </div>
          </a>
        </div>

        <div class="project-tile">
          <a href="https://codepen.io/mertyucel/full/xJNKXO/" target="_blank">
            <img src="http://www.gaziantepozel.com/wordpress/wp-content/uploads/2016/04/Gaziantep-Logo-500x167.jpg">
            <div>
              <p>Product Landing Page</p>
            </div>
          </a>
        </div>
      </div>

      <div class="second-row">
        <div class="project-tile">
          <a href="https://codepen.io/mertyucel/full/eLGpmd/" target="_blank">
            <img src="https://www.hindilearn.in/images1/html.png">
            <div>
              <p>Technical Documentation</p>
            </div>
          </a>
        </div>

        <div class="project-tile">
          <a href="#">
            <img src="https://via.placeholder.com/1366x768">
            <div>
              <p>Coming Soon</p>
            </div>
          </a>
        </div>

        <div class="project-tile">
          <a href="#">
            <img src="https://via.placeholder.com/1366x768">
            <div>
              <p>Coming Soon</p>
            </div>
          </a>
        </div>
      </div>
    </section>
    
    <section id="contact">
      <h2>Contact</h2>
      <form action="#" method="POST">
        <div class="name-email">
        <div class="name">
          <label for="name">Name:</label>
          <input type="text" name="name" id="name">
        </div>
        <div class="email">
          <label for="email">Email:</label>
          <input type="email" name="email" id="email">
        </div>
        </div>
        <div class="textarea">
          <label for="comment">Message:</label>
          <textarea name="comment" id="comment"></textarea>
        </div>
        <div class="submit">
          <input type="submit" value="Submit">
        </div>
      </form>
      <div class="icons">
        <a href="https://www.freecodecamp.org" title="Free Code Camp" target="_blank"><i class="fab fa-free-code-camp"></i></a>
        <a href="https://github.com/" id="profile-link" title="Github" target="_blank"><i class="fab fa-github"></i></a>
        <a href="https://codepen.io/" title="Codepen" target="_blank"><i class="fab fa-codepen"></i></a>
        <a href="https://www.facebook.com/" title="Facebook" target="_blank"><i class="fab fa-facebook"></i></a>
      </div>
    </section>
    
    <footer>
      <div class="footer-icons">
        <a href="https://www.freecodecamp.org" title="Free Code Camp" target="_blank"><i class="fab fa-free-code-camp"></i></a>
        <a href="https://github.com" id="profile-link" title="Github" target="_blank"><i class="fab fa-github"></i></a>
        <a href="https://codepen.io" title="Codepen" target="_blank"><i class="fab fa-codepen"></i></a>
        <a href="https://www.facebook.com" title="Facebook" target="_blank"><i class="fab fa-facebook"></i></a>
      </div>
      <p>Created by Mert Yücel</p>
      <div class="bottom-nav">
        <a href="#welcome-section">About</a>
        <a href="#projects">Projects</a>
        <a href="#contact">Contact</a>
      </div>
    </footer>
    
  </main>
</body>
</html>
              
            
!

CSS

              
                html, body {
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

#navbar {
  position:fixed;
  top:0;
  left:0;
  height:3.6em;
  width:100%;
  background-color:black;
  margin-bottom:4em;
  z-index: 5;
}
#navbar ul {
  padding-right:4em;
  text-align:right;
  list-style: none;
}

#navbar li {
  display:inline-block;
  padding-left:4em;
}

#navbar a {
  text-decoration: none;
  font-size:1.3em;
  color: white;
}

#navbar a:hover {
  border-bottom: 1px solid white;
}
#welcome-section {
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align:center;
  color :white;
  width: 100wh;
  height: 100vh;
  background-image: url(http://www.omerd.com/wp-content/uploads/2017/07/software-development_cnusak.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
  filter: saturate(0.02) contrast(0.85) brightness(1.) sepia(0.2);
}

#projects {
  padding-top:50px;
  margin-top:-50px;
  padding-bottom: 100px;
}

h2 {
  font-size: 2.5em;
  font-weight:bold;
  text-align: center;
  color:rgb(5, 5, 65);
}

.first-row, .second-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2em;
}
.project-tile {
  display: flex;
  text-align: center;
  font-size: 1.2em;
  border:1px solid silver;
}
.project-tile img {
  min-width:245px;
}

.project-tile:hover {
  box-shadow: 0px 0px 16px 1px ;
  -webkit-box-shadow: 0px 0px 16px 1px r;
  -moz-box-shadow: 0px 0px 16px 1px ;
}
.project-tile a {
  color: rgb(15, 15, 100);
  text-decoration: none;
  background-color:rgb(240, 240, 240);
}

img {
  display: block;
  width:20vw;
}

#contact {
  background-color: #9cf;
  padding-top: 30px;
  margin-top: -35px;
  padding-bottom:1px;
}
form {
  width: 80%;
  margin-left:auto;
  margin-right:auto;
}

.name-email {
  display: flex;
  justify-content: space-between;
}

.name, .email {
  display: flex;
  flex-direction: column;
  width:45%;
  padding:0 0 1.5em 0;
}

.textarea {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0 1.5em 0;
}

.submit {
  display: flex;
  justify-content: center;
}

form label {
  padding: 0 0 0.5em 0.2em;
  font-size: 1.2em;
  color: black;
  font-weight:bold;
}

input[type=text], input[type=email] {
  padding: 0.5em 0;
  border-radius: 5px;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  font-size: 1em;
  color: black;
}

input[type=submit] {
  background-color: white;
  cursor: pointer;
  padding: 0.5em 1.5em;
  text-decoration: none;
  border: 1px solid silver;
  border-radius: 5px;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
   margin-bottom:1.5em;
   font-size: 1.3em;
}

input[type=submit]:hover {
  background-color: silver;
}

input[type=submit]:active {
  position: relative;
  top:1px;
}

textarea {
  padding: 0.2em 0;
  height: 10em;
  border-radius: 5px;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  color: black;
}

.icons {
  width:70%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: space-around;
  font-size: 3.5em;
  margin-bottom: 0.3em;
}

.icons a {
  color: light sea green	;
  transition: all 150ms ease-in;
  transform: scale(1);
  -webkit-transition: all 150ms ease-in;
  -webkit-transform: scale(1);
  -moz-transition: all 150ms ease-in;
  -moz-transform: scale(1);
}

.icons a:hover {
  transition: all 150ms ease-in;
  transform: scale(1.5);
  -webkit-transition: all 150ms ease-in;
  -webkit-transform: scale(1.2);
  -moz-transition: all 150ms ease-in;
  -moz-transform: scale(1.2);
}

footer {
  background-color: rgb(5, 5, 65);
  padding:0;
  margin: 0;
  color:#fff; 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.bottom-nav {
  padding:0; 
  margin: 0;
  display: block;
  width: 30%;
  text-align: center;
  word-spacing: 3px;
}

.bottom-nav a:hover {
  color: yellow;
}

footer p {
  display: block;
  width: 30%;
  text-align: center;
}

.footer-icons {
  display: block;
  width: 30%;
  margin-left: 0.3em;
  font-size: 1.4em;
  text-align:center;
  word-spacing: 10px;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 0.3em;
}

footer a:hover {
  color: yellow;
}
@media (min-width:768px) and (max-width: 992px) {
  #navbar ul {
    text-align: center;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  #navbar ul {
    text-align: center;
    padding-right: 0;
  }
  
  #navbar li {
    margin: 0;
    padding-left: 0em;
    padding-right: 2em;
  }
  
  .text-background {
    height:16.5em;
    width:16.5em;
  }
  
  .first-row, .second-row {
    display: block;
    margin:0;
    margin-left: auto;
    margin-right: auto;
    width:251px;
  }
  
  .project-tile {
    display: flex;
    flex-direction: column;
    align-items:center;
    margin-bottom:1em;
  }
  
  footer .bottom-nav a {
    display:block;
  }
  
  form {
    width: 85%;
  }
  
  .icons {
    font-size: 3em;
    width: 85%;
  }
}

@media (min-width: 320px) and (max-width: 480px) {
  #navbar {
  position:relative;
  height:auto;
 
  margin: 0;
  padding: 0;
}
  
  #navbar ul {
    padding:0;
    margin:0;
    text-align:center;
  }
  
  #navbar li {
    display:block;
    padding: 0.5em 0;
    
  }

  #navbar a {
    border: none;
  }
  
  #navbar a:hover {
    border-bottom: none;
    transition: 0;
  }
  
  .text-background {
    height:16.5em;
    width:16.5em;
  }
  
  #projects {
    padding-top:1px;
    margin-top:-1px;
    padding-bottom: 65px;
  }
  
  .first-row, .second-row {
    display: block;
    margin:0;
    margin-left: auto;
    margin-right: auto;
    width:251px;
  }
  
  .project-tile {
    display: flex;
    flex-direction: column;
    align-items:center;
    margin-bottom:1em;
  }
  
  #contact {
    padding-top: 20px;
    margin-top: -20px;
    padding-bottom:1px;
  }
  
  form {
    width: 85%;
  }
  
  .name-email {
    display: flex;
    flex-direction: column;
  }
  
  .name, .email {
    width:100%;
  }
  
  form label {
  padding: 0 0 0.2em 0.1em;
  }
  
  .icons {
  font-size: 2.5em;
  width: 85%;
  }
  
}

@media (max-height: 440px) {
  .text-background {
    height:5em;
    width:18em;
    border-radius:5px;
    margin-top:20%;
}
              
            
!

JS

              
                
              
            
!
999px

Console