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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <div class="container">
    <span class="distance" id="top"></span>
    <div class="welcome" id="welcome-section">
      <nav id="navbar" class="menu">
        <a href="#top">Top</a>
        <a href="#portfolio">Portfolio</a>
        <a href="#contact">Contact</a>
      </nav>
      <div class="extra-margin ">
        <h1 class="title wide">Hi! I'm Sebastian</h1>
        <figure class="welcome-image">
          <img src="https://openclipart.org/download/177482/ProfilePlaceholderSuit.svg" alt="A portreit of man in suit" />
          <figcaption class="image-caption">My photo</figcaption>
        </figure>
        <p class="welcome-tagline">
          I'm a shop assistant and a student at freeCodeCamp after hours. I want to be a Web Developer.
        </p>
      </div>
    </div>

    <span class="distance" id="portfolio"></span>
    <section class="portfolio" id="projects">
      <h2 class="title">Portfolio</h2>

      <article class="project-tile">
        <h3 class="project-title">Build a Tribute Page</h3>
        <a class="project-link" href="https://codepen.io/sebek78/full/mOVKJO/" target="_blank">
          <figure>
            <img src="https://openclipart.org/download/194077/Placeholder.svg" alt="image placeholder" />
            <figcaption class="image-caption">A Tribute Page</figcaption>
          </figure>
          <p class="project-description">
            It's my first educational project. It's a single page with some photos, texts and links to other sites.
          </p>
        </a>
      </article>

      <article class="project-tile">
        <h3 class="project-title">Build a Survey Form</h3>
        <a class="project-link" href="https://codepen.io/sebek78/full/KBGMMb" target="_blank">
          <figure>
            <img src="https://openclipart.org/download/194077/Placeholder.svg" alt="image placeholder" />
            <figcaption class="image-caption">A Survey Form</figcaption>
          </figure>
          <p class="project-description">
            This is my second educational project. The form with many different inputs, but not connected to anything.
          </p>
        </a>
      </article>

      <div class="project-tile">
        <h3 class="project-title">Build a Product Landing Page</h3>
        <a class="project-link" href="https://codepen.io/sebek78/full/RYxjaj/" target="_blank">
          <figure>
            <img src="https://openclipart.org/download/194077/Placeholder.svg" alt="image placeholder" />
            <figcaption class="image-caption">A Product Landing Page</figcaption>
          </figure>
          <p class="project-description">
            This page is a dummy product landing page. This is an educational project from the freeCodeCamp courses. It contains an example embedded video.
          </p>
        </a>
      </div>

      <article class="project-tile">
        <h3 class="project-title">Build a Technical Documentation Page</h3>
        <a class="project-link" href="https://codepen.io/sebek78/full/JmjVZx/" target="_blank">
          <figure>
            <img src="https://openclipart.org/download/194077/Placeholder.svg" alt="image placeholder" />
            <figcaption class="image-caption">A Technical Documentation Page</figcaption>
          </figure>
          <p class="project-description">
            This is a dummy technical documentation page. This is a last educational project from the Responsive Web Design Projects module at the freeCodeCamp course.
          </p>
        </a>
      </article>
    </section>

    <span class="distance" id="contact"></span>
    <section class="contact">
      <h2 class="title">Contact</h2>
      <form action="#" class="form" method="post">
        <label class="form-label" for="name">Name <span class="form-label-cursive">(required)</span>:</label>
        <input class="form-input" type="text" name="name" id="name" placeholder="Name" required><br>
        <label class="form-label" for="email">Email <span class="form-label-cursive">(required)</span>:</label>
        <input class="form-input" type="email" name="email" id="email" placeholder="Email address" required><br>
        <label class="form-label" for="title">Title <span class="form-label-cursive">(required)</span>:</label>
        <input class="form-input" type="text" name="title" id="title" placeholder="Title" required><br>
        <label class="form-label" for="message">Message<span class="form-label-cursive">(required)</span>:</label>
        <textarea class="form-input" name="message" id="message" rows="6" cols="30" placeholder="Message" required></textarea><br>
        <input class="form-submit" type="submit" value="Submit">
      </form>

      <p class="info">
        This form <strong>doesn't work</strong> (no back-end scripts). This is only a educational project. Social media icons navigate to main pages.
      </p>
      <div class="social">
        <a class="social-icon" href="https://web.facebook.com" target="_blank" title="My Facebook">
          <i class="icon fab fa-facebook" aria-hidden="true"></i>
        </a>
        <a class="social-icon" id="profile-link" href="https://github.com/" target="_blank" title="My Github">
          <i class="icon fab fa-github-square" aria-hidden="true"></i>
        </a>
        <a class="social-icon" href="https://twitter.com/" target="_blank" title="My Twitter">
          <i class="icon fab fa-twitter" aria-hidden="true"></i>
        </a>
      </div>
    </section>

    <footer class="footer">
      <span>Created by <a class="footer-link" target="_blank" href="http://mybytes.pl/">Sebastian Sporek</a></span>
    </footer>
  </div>

              
            
!

CSS

              
                html {
  font-size: 20px;
}

body {
  background-color: silver;
  color: black;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.container {
  font-family: 'Lato', sans-serif;
}

.welcome, .portfolio, .contact {
  background-color: silver;
  border-bottom: 2px solid gray;
}

.welcome {
  height: 100vh;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.extra-margin {
  margin-top: 80px;
}

.distance {
  display: block;
  height: 60px;
  margin-top: -60px;
  visibility: hidden;
}

.menu {
  font-family: 'Acme', sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 60px;
  border-bottom: 2px solid gray;
  position: fixed;
  top: 0;
  left: 0;
  background-color: silver;
  width: 100%;
  z-index: 2;
}

.menu a {
  font-size: 1rem;
  margin: 0 10px;
  text-decoration: none;
  color: black;
  text-align: center;
  text-transform: uppercase;
}

.menu a:hover {
  border-color: black;
}

.title {
  margin: 0 auto 10px;
  padding: 15px 5px 15px;
  font-size: 1.25rem;
  font-family: 'Acme', sans-serif;
  text-transform: none;
  letter-spacing: 2px;
  text-align: center;
  color: #364422;
  background-color: #ddd;
  width: 200px;
  border-radius: 32px;
}

.wide {
  width: 260px;
}

.welcome-tagline {
  font-size: 1rem;
  text-align: center;
  padding: 0 20px;
}

.welcome-image {
  margin: 0 auto;
  max-width: 260px;
  height: auto;
  background-color: #ddd;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  padding: 0 5px 5px;
  ;
}

.portfolio {
  padding-top: 20px;
}

.project-tile {
  max-width: 100vw;
  margin: 20px auto 30px;
  background-color: #ddd;
}

.project-tile figure {
  margin: 0;
}

.project-title {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 10px;
  margin: 0;
}

.project-link {
  text-decoration: none;
  color: black;
}

.project-description {
  margin: 0;
  padding: 10px 20px;
  text-align: justify;
  font-size: 1rem;
}

.contact {
  padding: 20px;
}

.form {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 10px 10px;
  margin: 8px 0px;
  font-family: 'Handlee', cursive;
  font-size: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 2px solid gray;
  border-radius: 10px;
  background-color: #ddd;
  color: black;
  outline: 0;
}

.form-input:focus:invalid {
  border: 2px solid red;
}

.form-input:valid {
  border: 2px solid green;
}

.form-submit {
  display: block;
  margin: 0.5rem auto 1rem;
  background-color: coral;
  color: black;
  font-size: 1rem;
  font-family: 'Acme', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid coral;
  border-radius: 10px;
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
  padding: 0.5rem 1rem;
}

.form-submit:hover {
  cursor: pointer;
  -webkit-box-shadow: 0px 0px 0px 2px coral inset, 0px 0px 0px 4px silver inset;
          box-shadow: 0px 0px 0px 2px coral inset, 0px 0px 0px 4px silver inset;
}

.info {
  width: 100%;
  text-align: justify;
}

.social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 20px;
}

.social a {
  text-decoration: none;
  height: 70px;
  width: 70px;
}

.icon {
  color: silver;
  display: block;
  margin: 0.5rem;
  text-align: center;
  padding: 5px;
  font-size: 2rem;
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
}

.fa-facebook {
  background-color: #3b5999;
  border: 2px solid #3b5999;
}

.fa-twitter {
  background-color: #4099FF;
  border: 2px solid #4099FF;
}

.fa-github-square {
  background-color: #24292e;
  border: 2px solid #24292e;
}

.fa-twitter:hover {
  -webkit-box-shadow: 0px 0px 0px 2px #4099FF inset, 0px 0px 0px 4px silver inset;
          box-shadow: 0px 0px 0px 2px #4099FF inset, 0px 0px 0px 4px silver inset;
}

.fa-facebook:hover {
  -webkit-box-shadow: 0px 0px 0px 2px #3b5999 inset, 0px 0px 0px 4px silver inset;
          box-shadow: 0px 0px 0px 2px #3b5999 inset, 0px 0px 0px 4px silver inset;
}

.fa-github-square:hover {
  -webkit-box-shadow: 0px 0px 0px 2px #24292e inset, 0px 0px 0px 4px silver inset;
          box-shadow: 0px 0px 0px 2px #24292e inset, 0px 0px 0px 4px silver inset;
}

.footer {
  background-color: silver;
  border-bottom: 2px solid gray;
  text-align: center;
  padding: 10px;
}

.footer-link:visited, .footer-link:active, .footer-link:link {
  color: black;
}

@media (min-width: 768px) {
  .title {
    margin-bottom: 20px;
  }
  .project-tile {
    max-width: 700px;
    padding: 20px;
    border: 2px solid #364422;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  .project-link figure {
    max-width: 640px;
    margin: 20px auto 0;
  }
  .project-link figure img {
    max-height: 400px;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .image-caption {
    padding: 20px;
  }
  .form, .info {
    max-width: 700px;
    margin: 0 auto;
  }
  .social-icon {
    margin: 0.5rem 1rem;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console