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">
      <p>Portfolio Page</p>
      <div id="links">
          <a href="#welcome-section">Home</a>
          <a href="#projects">Projects</a>
          <a href="#contacts">Contacts</a>
      </div>
  </nav>
  <section id="welcome-section">
      <section id="intro">
        <h1>Hey there, I am LAXUS</h1>
        <h2>A Web Developer</h2>
      </section>
  </section>
  <section id="projects">
      <h2>My Projects:</h2>
      <section id="project-tiles">
          <div class="project-tile">
              <a href="https://codepen.io/vikhyatsharma17/pen/bGembQE" target="_blank">
                  <img src="https://i.postimg.cc/ZnwcxPM5/image.png" alt="Project: Product Documentation Page"/>
                  <p>Product Documentation Page</p>
              </a>
          </div>
          <div class="project-tile">
              <a href="https://codepen.io/vikhyatsharma17/pen/NWrymEv" target="_blank">
                  <img src="https://i.postimg.cc/XvFXKVzZ/image.png" alt="Project: Product Landing Page"/>
                  <p>Product Landing Page</p>
              </a>
          </div>
          <div class="project-tile">
              <a href="https://codepen.io/vikhyatsharma17/pen/KKMMdWm" target="_blank">
                  <img src="https://i.postimg.cc/y6rBNML2/image.png" alt="Project: Survery Form"/>
                  <p>Survey Form</p>
              </a>
          </div>
          <div class="project-tile">
              <a href="https://codepen.io/vikhyatsharma17/pen/JjXqmmp" target="_blank">
                  <img src="https://i.postimg.cc/vmWfYLMS/image.png" alt="Project: Tribte Page"/>
                  <p>Tribute Page</p>
              </a>
          </div>
      </section>
  </section>
  <section id="contacts">
      <h2>Lets work together...</h2>
      <div id="contact-links">
          <a href="https://www.freecodecamp.org/" target="_blank" class="contact-link" id="profile-link">FCC</a>
          <a href="https://www.facebook.com/" target="_blank" class="contact-link">Facebook</a>
          <a href="https://twitter.com" target="_blank" class="contact-link">Twitter</a>
          <a href="mailto:example@dummy.com" target="_blank" class="contact-link">@ Send a mail   </a>
      </div>
  </section>
  <footer>
      <p>Created for <a href="https://www.freecodecamp.org/" target="_blank">FreeCodeCamp.org</a></p>
  </footer>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                /* Resetting the default CSS */
* {
    margin: 0;
    padding: 0;
    font-size: 100%;
    line-height: 1.15;
    box-sizing: border-box;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
/* Resetting the default CSS */

body {
    background-color: #14273d;
    color: white;
}

#navbar {
    z-index: 1;
    background-color: #14273d;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    height: 4rem;
    width: 100%;
}

#navbar p {
    font-size: 2rem;
    padding: 1rem 5rem;
}

#links {
    display: flex;
    justify-content: space-between;
    padding: 1rem 3rem;
}

a {
    color: white;
    text-decoration: none;
    background-color: #0f4888;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    transition: transform .3s;
    font-size: 1.3rem;
    text-align: center;
}

a:hover {
    transform: translateY(0.2rem);
}

#welcome-section {
    width: 100vw;
    height: 100vh;
}

#intro {
    text-align: center;
    width: 50%;
    height: 10rem;
    margin: 20% auto;
}

#intro h1 {
    font-size: 3rem;
    /* margin-top: 20%; */
}
/* #welcome-section h1{
    margin-top: 20%; 
    font-size: 3rem;
} */

#projects h2 {
    font-size: 2.3rem;
    text-align: center;
    text-decoration: underline solid cornflowerblue;
}

#project-tiles {
    width: 50%;
    margin: auto;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 18rem);
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.project-tile {
    transition: transform .3s;
}

.project-tile:hover {
    transform: translateY(0.5rem) translateZ(0.2rem);
    box-shadow: 5px 5px 5px #071a30;
}

.project-tile a {
    background-color: transparent;
    padding: 0;
}

.project-tile img {
    width: 18rem;
    height: 10rem;
    border-radius: 2%;
}

.project-tile p {
    font-size: 1.1rem;
    width: auto;
    margin-top: 0.3rem;
    text-align: center;
}

#contacts h2 {
    margin: 4rem auto 1rem auto;
    text-align: center;
    font-size: 2rem;
    text-decoration: none;
}

#contact-links {
    text-align: center;
}

.contact-link {
    display: inline-block;
    margin: auto 2rem;
    background-color: transparent;
    transition: transform .3s;
}


footer {
    margin: 2rem;
    text-align: center;
}

footer a {
    display: inline-block;
    font-style: italic;
    background-color: transparent;
    text-emphasis: filled circle dodgerblue;
    text-emphasis-position: under right;
    -webkit-text-emphasis-position: under right;
    -webkit-text-emphasis: filled circle white;
}

footer a:hover {
    text-emphasis-color: red;
    -webkit-text-emphasis-color: red;
}

@media only screen and (max-width: 500px) {
    #navbar {
        height: 7rem;
        grid-template-rows: 3rem 3rem;
        grid-template-areas: 
        "row1 row1"
        "row2 row2";
    }

    #navbar p {
        grid-area: row1;
        text-align: center;
    }

    #links {
        margin: auto;
        width: 90%;
        grid-area: row2;
        padding: 1rem 0;
    }

    a {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    #welcome-section {
        font-size: 3rem;
    }

    #intro {
        margin-top: 40vh;
        width: 90%;
    }

    #intro h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #project-tiles {
        grid-template-columns: 18rem;
        gap: 3rem;
        justify-content: center;
        align-items: center;
    }

}
              
            
!

JS

              
                
              
            
!
999px

Console