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 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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<nav id="navbar">
  <ul>
    <li><a href="#about">About</a></li>
    <li><a href="#projects">Projects</a></li>
    <li><a href="#contacts">Contacts</a></li>
  </ul>
  </nav>

<section id="welcome-section"><h1>klarissa witania</h1><p>High-School Student</p></section>

<section id="about"><h3>About Me</h3><p>Hey there! I’m Klarissa and yes, I am a high-school student. I am from Indonesia. And here’s a little about me on how I can get interested in programming/coding.</p>
  <p>So I would say I am kind of a “good-for-nothing” person when it comes to chores as it is the only thing I procrastinate when my mom calls me to do it. We got this robotic vacuum cleaner at home but the only thing it can do is cleaning the floor. It can’t clean the messy table or make the bed. And this was where my daydreaming started… I thought of studying robotics or artificial intelligence later when I grow up. I googled and found out that majoring in computer science is needed for AI. Not long after that, I watched a Korean TV series called “Start-Up” which is a business-and-technology-themed drama. It was so good that after watching it, I tried searching websites that teach coding and I founded freeCodeCamp.</p>
  <p>I also think that it’s kind of cool to know the “behind-the-website” like how the button actually works or how a new tab pops up when we click on the link.</p>
</section>

<section id="projects">
  <div class="flexes"><h3>Projects</h3><p>These are the projects I made:</p></div>
  <div class="project-tile">
      <a href="https://codepen.io/klarissawitania/full/qBapYLP" target="_blank">
<img class="projects-image" src="https://raw.githubusercontent.com/klarrwitania/fcc-projects/main/tribute%20page.png" alt="project">
      <p class="imgcaption">Tribute Page</p>
    </a>
    
    <a href="https://codepen.io/klarissawitania/full/GRjxvvE" target="_blank">
      <img class="projects-image" src="https://raw.githubusercontent.com/klarrwitania/fcc-projects/main/survey%20form.png" alt="project">
      <p class="imgcaption">Survey Form</p>
    </a>
   
    <a href="https://codepen.io/klarissawitania/full/bGwxRLZ" target="_blank">
      <img class="projects-image" src="https://raw.githubusercontent.com/klarrwitania/fcc-projects/main/product%20landing%20page.png" alt="project">
      <p class="imgcaption">Product Landing Page</p>
    </a>
    
    <a href="https://codepen.io/klarissawitania/full/rNWmzZx" target="_blank">
      <img class="projects-image" src="https://raw.githubusercontent.com/klarrwitania/fcc-projects/main/technical%20documentation.png" alt="project">
      <p class="imgcaption">Technical Documentation Page</p>
    </a>
  
  </div>
</section>

<section id="contacts">
  <div class="flexes"><h3>Contacts</h3><p>You can find me on:</p></div>
  
  <div class="contacts-div">
    <a href="mailto:yennytionardi15@gmail.com"><img class="contacts-img" src="https://img.icons8.com/material-outlined/100/000000/important-mail.png" title="Mail" alt="Mail"></a>
    
    <a href="https://www.freecodecamp.org/klarrwitania" target="_blank"><img class="contacts-img" src="https://img.icons8.com/windows/100/000000/free-code-camp.png" title="freeCodeCamp" alt="freeCodeCamp"></a>
        
    <a id="profile-link" href="https://github.com/klarrwitania" target="_blank"><img class="contacts-img" src="https://img.icons8.com/material-sharp/100/000000/github.png" title="GitHub" alt="GitHub"></a>
  </div>
</section>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Lexend&family=Nunito:wght@200&family=Playfair+Display&display=swap');

nav {
  position: fixed;
  background-color: #307c91;
  width: 100%;
  height: 4.2em;
  margin: -1.3em 0 0 -0.5em;
  z-index: 3;
  font-family: 'Lexend', sans-serif;
}

nav a:link, nav a:visited {
  color: #e0ecf8;
  text-decoration: none;
}

nav a:hover {
  color: #dfc7c1;
}

ul {
  display: flex;
  justify-content: flex-end;
}

li {
  list-style: none;
  display: flex;
  padding-left: 0.2em;
  padding-right: 2em;
  padding-top: 0.7em;
}

#welcome-section{
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#welcome-section:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  opacity: 0.8;
  background-image: url("https://raw.githubusercontent.com/klarrwitania/fcc-projects/main/mediterranean-sea.jpg");
  background-size: cover;
  background-position: bottom right;
}

#welcome-section > h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8em;
  z-index: 2;
}

#welcome-section > p {
  font-family: 'Lexend', sans-serif;
  font-size: 1.7em;
  margin-top: -55px;
  z-index: 1;
}

@media (max-width: 476px) {
  ul {
    justify-content: center;
  }
  
  #welcome-section:before {
    opacity: 0.7;
  }
  
  #welcome-section > h1 {
    font-size: 2.5em;
  }
  
  #welcome-section > p {
    font-size: 1.3em;
    margin-top: -40px;
  }
}

#about {
  background-color: #eed9bd;
  padding: 0.2em 2.5em 1em 2.5em;
  margin: 4em 11.5em;
  border-radius: 2em;
  box-shadow: 0.2em 0.2em 0.2em 0.2em #dbd6ce;
}

@media (max-width: 780px) {
  #about {
    margin: 2.8em 3em 4em 3em;
  }
}

@media (max-width: 500px) {
  #about {
    margin: -0.5em -0.5em -0.5em -0.5em;
    border-radius: 0;
  }
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
}

p {
  font-family: 'Nunito', serif;
}

#projects {
  background-color: #b6dce9;
  margin: 0 -0.5em;
  padding-bottom: 2.5em;
}

.flexes {
  display: grid;
  text-align: justify;
  margin-left: 13em;
}

@media (max-width: 800px) {
  .flexes {
    text-align: center;
    margin: 0;
  }
}

.flexes > p {
  font-size: 1.1em;
  margin-top: -1.5em;
}

.project-tile {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 450px));
  grid-gap: 2rem;
}

@media (max-width: 530px) {
  .project-tile {
    grid-template-columns: repeat(auto-fit, minmax(0, 85%));
  }
}

.imgcaption {
  background-color: white;
  margin: -0.3em 0 0.2em 0;
  padding: 1em;
  border-radius: 0 0 1em 1em;
  box-shadow: 7px 0 6px #66969d;
  text-decoration: none;
  text-align: center;
}

section a:link {
  text-decoration: none;
}

.projects-image {
  width: 100%;
  height: 260px;
  box-shadow: 7px 0 5px -2px #66969d;
  border-radius: 1em 1em 0 0;
  -o-object-fit: cover;
  object-fit: cover;
}

@media (max-width: 530px) {
  .projects-image {
    height: 200px;
  }
}

.logo-image {
  float: center;
  width: 10em;
  height: 10em;
  object-fit: cover;
  padding: 1em;
}

.contacts-div {
  display: flex;
  justify-content: center;
  grid-gap: 3em;
  margin-top: -6.5em;
  padding-left: 20em;
}

@media (max-width: 1000px) {
  .contacts-div {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 730px) {
  .contacts-div {
    grid-gap: 1.5em;
  }
}

@media (max-width: 530px) {
  .contacts-div {
    grid-gap: 1em;
  }
  
  .contacts-img {
    width: 70px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console