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

              
                <nav id="navbar">
  <ul>
    <li><a href="#about">About</a></li>
    <li><a href="#projects">Projects</a></li>
    <li><a href="#contact">Contact</a></li>
  </ul>
</nav>
<main>
  <section id="welcome-section">
    <div class="title">
      <h1>Hey there! I'm Max</h1>
      <div>
        <p>and this is my learning journey...</p>
      </div>
    </div>
  </section>
  <section id="about">
    <div class="container-about">
      <h2>Just a glimpse about me</h2>
      <p>My journey started on FreeCodeCamp, I completed the JavaScript Algorithms and Data Structure course, which I didn't think I was going to love, and now the Responsive Web Design course.</p>
      <p>There is a lot more to do and improve (the journey just keeps going) but below you can check out what I've been doing so far, all HTML and CSS! I hope you like it!</p>
    </div>
  </section>
  <section id="projects">
    <h2><span aria-hidden="true">&#36; cd</span> my_projects<span id="animation_span" aria-hidden="true">_</span></h2>
    <div id="container_projects">
      <div class="project-tile">
        <div class="cover" aria-hidden="true">
          <p class="name">Tribute Page</p>
        </div>
        <a href="https://codepen.io/_Max_N/full/NWaBbqG" target="_blank" aria-label="to my Tribute page" class="overlay"></a>
        <img src="https://lh3.googleusercontent.com/PPDqfLXL47CUs1aiKV34AwrSaKx7n9PuAPS_3JccBWfwiqQinYOjlPy3-Ch61R8d6kH1xigri6e9pdrBKRYupcLXC6VcFNzD4V9xIXbAXG_xgsk91256Kd1J09j-62VQqpymsiZn=w476-h213-p-k" alt="Tribute page project">
        <p>Tribute Page</p>
      </div>
      <div class="project-tile">
        <div class="cover" aria-hidden="true">
          <p class="name">Survey Form</p>
        </div>
        <a href="https://codepen.io/_Max_N/full/eYGPbRo" target="_blank" aria-label="to my Survey Form page" class="overlay"></a>
        <img src="https://lh3.googleusercontent.com/Ioy9nJPaif-cLbTqacJxQe_ConJ4x2_ooRi7Hv9IeQEbnTxflDnkouJw2KrUbF9ZLFv5SWY3wWttvPuOKnShC1h3g7025LoqcCjpeEiWPl9ejLFKkzqiZInB3xr7USJ36cQHWU5I=w477-h206-p-k" alt="Survey form project">
        <p>Survey Form</p>
      </div>
      <div class="project-tile">
        <div class="cover" aria-hidden="true">
          <p class="name">Product Landing Page</p>
        </div>
        <a href="https://codepen.io/_Max_N/full/JjrxXrX" target="_blank" aria-label="to my Tribute Landing page" class="overlay"></a>
        <img src="https://lh3.googleusercontent.com/PGI0MtoeB51jPVbu5Ya_5IxOWycFCe5qiNghlOI1y4lGum0vKbo-cpxpV8BcMkI5BZyPkiDBg9RSMdAJhwi58NmbJ0W-CXconYdVdEACuklH3Gz01ZXiM4JrTVyUMBxObjYi_OKl=w477-h213-p-k" alt="Product landing  page project">
        <p>Product Landing Page</p>
      </div>
      <div class="project-tile">
        <div class="cover" aria-hidden="true">
          <p class="name">Technical Documentation Page</p>
        </div>
        <a href="https://codepen.io/_Max_N/full/bGoXWXB" target="_blank" aria-label="to my Technical documentation page" class="overlay"></a>
        <img src="https://lh3.googleusercontent.com/yV86DI1QFmXG7eCHZqeeQ93PdPd0ZkgSSzUay09whmXf0plUz_-n921axL0_Mn3YxIjLBfh02fWwDab4MJZYX7ib57sJTaZT3ga5U74OU6MgkvvK77rbSEgzXDH0fy82DPLMmIVT=w476-h214-p-k" alt="Technical Documentation page project">
        <p>Technical Documentation Page</p>
      </div>
    </div>
  </section>
  <section id="contact">
    <h3>If something caught your attention, get in touch with me:</h3>
    <div class="a-container">
      <a id="profile-link" href="https://www.freecodecamp.org/_Max_" target="_blank"><span class="fab fa-free-code-camp" aria-hidden="true"></span>FreeCodeCamp</a>
      <a href="https://codepen.io/_Max_N" target="_blank"><span class="fab fa-codepen" aria-hidden="true"></span>CodePen</a>
    </div>
  </section>
</main>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Bungee+Hairline&display=swap");

@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Code+Latin&display=swap");

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.12;
  word-spacing: 0.16;
  min-height: 100vh;
}

nav {
  position: fixed;
  z-index: 9999;
  top: 0;
  max-height: 60px;
  background-color: #fff;
  width: 100%;
}

ul {
  list-style-type: none;
  display: flex;
  float: right;
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

#navbar a {
  margin: 0;
  padding: 1em 1em;
  transition: all 250ms;
  color: #000;
  max-height: 100%;
  display: inline-block;
}

#navbar a:hover,
#navbar a:focus {
  background-color: #000;
  color: #fff;
  cursor: pointer;
}

main {
  padding: 0;
  margin: 0;
  width: 100%;
}

#welcome-section {
  width: 100%;
  height: 100vh;
  color: #fff;
  background-color: #000000;
  text-align: center;
  padding: 4.5vw 1em;
  font-family: "Bungee Hairline", monospace, cursive;
}

.title {
  padding-bottom: 15em;
  padding-top: 10em;
  font-weight: bold;
}

h1 {
  font-size: 5em;
}

h1 + div {
  font-size: 3em;
  position: relative;
  animation-name: subtitle;
  animation-duration: 3s;
}

@keyframes subtitle {
  0% {
    color: rgba(255, 255, 255, 0);
  }
  50% {
    color: rgba(255, 255, 255, 0.5);
  }
  100% {
    color: rgba(255, 255, 255, 1);
  }
}

nav,
#about,
#projects,
#contact {
  font-family: "M PLUS Code Latin", monospace, sans-serif;
}

#about {
  padding: 15em 10%;
  font-size: 1.5em;
  margin: 0;
  background: linear-gradient(45deg, white 25%, black 25% 70%, white 70%);
}

.container-about > h2 {
  text-align: center;
}


.container-about {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em 2em;
  width: 100%;
  color: #FFF;
}

#projects {
  margin: 0;
  padding-bottom: 10%;
  background: #000;
}

#projects > h2 {
  text-align: center;
}

#animation_span {
  animation: waiting 1.3s infinite;
}

@keyframes waiting {
  0% {color: black;}
  25% {color: white;}
  50% {color: black;}
  75% {color: white;}
  100% {color: black;}
}

#projects h2 {
  padding-top: 2em;
  padding-bottom: 1em;
  font-size: 3em;
  color: #fff;
  margin-top: 0;
}

#container_projects {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 5% 5% 10%;
  grid-template-columns: 50% 50%;
  gap: 2%;
  justify-content: center;
}

.overlay,
.cover {
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
}

.project-tile:hover .cover,
.project-tile:focus .cover {
  width: 0%;
  cursor: pointer;
}

.cover {
  overflow: hidden;
  background-color: #000;
  transition: all 0.9s 80ms;
  border-radius: 5px;
}

.name {
  position: absolute;
  white-space: nowrap;
  height: 100%;
  text-align: center;
  width: 100%;
  padding-right: .2em;
  padding-left: .2em;
}

.name p {
  display: inline-block;
  
}

.name:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.project-tile {
  display: block;
  margin: auto;
  padding: 7% 5% 2%;
  max-width: 500px;
  height: 100%;
  background-color: #000;
  text-align: center;
  position: relative;
  border-radius: 5px;
  box-shadow: 2px 2px 2px #fff;
}

.project-tile:hover,
.project-tile:focus {
  cursor: pointer;
}

.project-tile p,
.name {
  color: #fff;
  font-size: 150%;
}

img {
  max-width: 100%;
  height: 200px;
  border-radius: 10px;
}

#contact {
  background: linear-gradient(-45deg, white 20%, black 20% 77.2%, white 77.2%);
  color: #fff;
  height: 100%;
  text-align: center;
  padding: 22em 1em;
}

h3 {
  font-size: 2em;
}

.a-container {
  width: 100%;
}

#contact a {
  color: #fff;
  width: 100%;
  font-size: 1.5em;
  padding: 0 .5em;
  border: 5px solid transparent;
  transition: all 0.3s ease-out;
}

#contact a:hover,
#contact a:focus {
  text-shadow: 1.2px 1.2px .5px white;
  cursor: pointer;
}

.fab {
  margin-right: 5px;
}

@media only screen and (max-width: 680px) {
  body {
    font-size: 1.2rem;
  }

  nav a {
    font-size: 1.2em;
  }

  h1 {
    font-size: 7vh;
  }

  h1 + div {
    font-size: 4vh;
  }
  
  .title {
    padding-top: 13em;
    padding-bottom: 2em;
  }
  
  #about {
    font-size: 1.4em;
    background: linear-gradient(45deg, white 19%, black 19% 80%, white 80%);
  }

  #container_projects {
    padding: 5% 5% 20%;
    grid-template-columns: 100%;
  }
  
  .cover {
    display: none;
  }
  
}

@media only screen and (min-width: 681px) and (max-width: 1079px) {
  #about {
    background: linear-gradient(45deg, white 23%, black 23% 75%, white 75%);
  }
  
  .cover {
    display: none;
  }
  
} 

@media only screen and (min-width: 1080px) {
  #container_projects {
    padding-left: 25%;
    padding-right: 25%;
    gap: 15% 10%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console