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>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Great+Vibes|Teko|Raleway&display=swap" rel="stylesheet">

<head>
  <title>Personal Portfolio: Fomenko Gregory</title>
</head>

<body>
  <!-- Navigation Bar -->
  <nav id="navbar">
    <ul class="top-nav">
      <li><a href="#contact">Contact</a></li>
      <li><a href="#projects">Projects</a></li>
      <li><a href="#welcome-section">About</a></li>
    </ul>
  </nav>
  <main>
    <!-- Welcome Section -->
    <section id="welcome-section">
      <div id="welcome-div">
        <h1>Fomenko Gregory</h1>
        <p>a beginner web developer</p>
      </div>
    </section>
    <!-- Projects Section -->
    <section id="projects">
      <h2>Projects</h2>
      <div id="all-projects">
        <div id="project1" class="project-tile">
          <a href='https://codepen.io/fomenkogregory/full/xoOwzX' target="_blank">              
                     <img src="https://i.imgur.com/RoJg3IM.png">
                   <p>Van Gogh tribute page</p>               
                 </a>
        </div>
        <div id="project2" class="project-tile">
          <a href='https://codepen.io/fomenkogregory/full/PrGwLZ' target="_blank">
                     <img src="https://i.imgur.com/VbRjIrl.png">
                     <p>Exams survey form</p>               
                 </a>
        </div>
        <div id="project3" class="project-tile">
          <a href='https://codepen.io/fomenkogregory/full/ewWezV' target="_blank">                  
                     <img src="https://i.imgur.com/i5jlX7Q.png">
                     <p>Piano Lessons landing page</p>                  
                 </a>
        </div>
        <div id="project4" class="project-tile">
          <a href='https://codepen.io/fomenkogregory/full/KjORXR' target="_blank">                  
                     <img src="https://i.imgur.com/aKP4ABL.png">
                     <p>Technical Documentation: PHP</p>                  
                 </a>
        </div>
      </div>
      <!-- Contact Section -->
    </section>
    <section id="contact">
      <h2>Get in touch</h2>
      <div class="social">
        <ul>
          <li class="yellow-border"><a href="https://vk.com/" target="_blank"><i class="fa fa-vk fa-2x"></i></a></li>
          <li class="yellow-border"><a href="https://twitter.com" target="_blank"><i class="fa fa-twitter fa-2x"></i></a></li>
          <li class="yellow-border"><a id="profile-link" href="https://github.com/fomenkogregory" target="_blank"><i class="fa fa-github fa-2x"></i></a></li>
          <li class="yellow-border whatsapp"><a href="https://api.whatsapp.com/send?phone=78005553535" target="_blank"><i class="fa fa-whatsapp fa-2x"></i></a></li>
          <li class="yellow-border"><a href="mailto:fmk.g@ya.ru"><i class="fa fa-at fa-2x"></i></a></li>
        </ul>
      </div>
    </section>
    <!-- Footer -->
    <footer>
      <a href="https://www.freecodecamp.com/" target="_blank">freeCodeCamp<i class="fa fa-free-code-camp"></i
    >, 2019</a>
    </footer>
  </main>
</body>

</html>
              
            
!

CSS

              
                /* Global */

html,
body,
h1,
h2 {
  margin: 0;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
h1,
h2 {
  text-transform: uppercase;
  font-family: "Teko", sans-serif;
  line-height: 0.95;
}
h1 {
  font-size: 70px;
  color: #ffffff;
  padding: 0 15px;
}
h2 {
  padding: 50px;
  font-size: 60px;
}
a {
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  color: #ffffff;
}

/* Navigation Bar*/

#navbar {
  position: fixed;
  top: 0;
}
.top-nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: fixed;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  border-bottom: 1px solid yellow;
  display: flex;
  flex-direction: row-reverse;
}

.top-nav li {
  float: right;
}
.top-nav li a {
  display: block;
  text-align: center;
  padding: 8px 16px;
  margin: 20px;
}
@media screen and (max-width: 440px) {
  .top-nav {
    flex-direction: column-reverse;
  }
  .top-nav li a {
    margin: 0px;
    font-size:14px;
  }
}
a:hover {
  color: yellow;
  text-shadow: 0 0 10px;
}

/* Weclome Section */

#welcome-section {
  height: 100vh;
  background-color: #000000;
  display: grid;
}
#welcome-div {
  text-align: center;
  margin: auto;
}
#welcome-div p {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  margin-top: 1vw;
  color: yellow;
  text-shadow: 0 0 10px;
}

/* Projects Section */

#projects {
  background-color: #ffffff;
  padding: 50px calc(10px + 3vw);
  text-align: center;
}
#projects h2 {
  padding: 50px 0;
}
#all-projects {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  grid-gap: calc(10px + 3vw);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  #all-projects {
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr;
  }
  #all-projects a {
    font-size:14px;
  }
}
.project-tile img {
  width: 100%;
}
.project-tile a {
  margin: 0;
  display: block;
  border: 2px solid black;
  background-color: #000000;
  border-radius: 5px;
}
.project-tile a:hover {
  box-shadow: 0 0 50px black;
}

/* Contact Section */

#contact {
  min-height: 350px;
  height: 40vh;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}
.social {
  max-width: 600px;
  margin: 0 auto;
}
.social ul {
  list-style-type: none;
}
.social ul li {
  height: 75px;
  width: 75px;
  line-height: 75px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  margin: 0 10px;
  text-align: center;
  float: left;
  transition: all 0.5s ease;
  cursor: pointer;
}
.social ul li .fa {
  margin-top: 15px;
}
.social ul li:hover.yellow-border {
  border: 5px solid yellow;
  box-shadow: 0 0 15px yellow;
  transition: all 0.5s ease;
}
.social ul li:hover .fa {
  color: yellow;
  text-shadow: 0 0 15px yellow;
  transition: all 0.5s ease;
}

@media screen and (max-width: 640px) {
  .social {
    width: 400px;
  }
  .social ul li {
    margin-top: 10px;
  }
  .social ul li.whatsapp {
    margin-left: 60px;
  }
  #contact {
    height: 50vh;
    min-height: 450px;
  }
}
@media screen and (max-width: 400px) {
  .social {
    width: 200px;
  }
  .social ul li {
    margin-top: 15px;
  }
  .social ul li.whatsapp {
    margin-left: 10px;
  }
  #contact {
    height: 85vh;
    min-height: 800px;
  }
}

/* Footer */

footer {
  background-color: #000000;
  text-align: center;
  padding: 10px;
  border-top: 1px solid #ffffff;
}
footer a {
  font-size: 14px;
}
footer a:hover {
  color: #ffffff;
  text-shadow: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console