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

              
                <body>
  <nav id="navbar">
    <p id="logo">Mateusz</p>
    <div id="nav-links">
      <a href="#welcome-section" id="welcome-link" class="nav-link">About</a>
      <a href="#projects" id="projects-link" class="nav-link">Projects</a>
      <a href="#contact" id="cotanct-link" class="nav-link">Contact</a>
    </div>
  </nav>
  <section id="welcome-section">
    <h1>Welcome to my portfolio</h1>
    <p id="introduction">My name is Mateusz and I love the challanges and possibilities that come from the world of software development.
      This portfolio is a representation of all that I've learned and accomplished as a programmer.
    </p>
  </section>
  <section id="projects">
    <h1>My projects</h1>
    <div id="project-grid">
      <a href="https://codepen.io/macewicz/full/abZKPLy" target="_blank" class="project-tile">
        <p class="project-title">Tribute Page</p>
        <img src="https://images4.alphacoders.com/195/195858.jpg" alt="" class="project-img">
      </a>
      <a href="https://codepen.io/macewicz/full/NWrOeBO" target="_blank" class="project-tile">
        <p class="project-title">Survey Form</p>
        <img src="https://i.postimg.cc/X4gNBfPk/survey-form-mini.png" alt="" class="project-img">
      </a>
      <a href="https://codepen.io/macewicz/full/yLJrgoB" target="_blank" class="project-tile">
        <p class="project-title">Product Landing Page</p>
        <img src="https://i.postimg.cc/ZbpQTV1S/product-page.png" alt="" class="project-img">
      </a>
      <a href="https://codepen.io/macewicz/full/mdrdqRN" target="_blank" class="project-tile">
        <p class="project-title">Documentation Page</p>
        <img src="https://i.postimg.cc/mb0qf0pj/documentation.png" alt="" class="project-img">
      </a>
    </div>
  </section>
  <section id="contact">
    <h1>If you want to know more...</h1>
    <p>Please contact me anyway you like:</p>
    <div id="contact-list">
      <a href="https://www.linkedin.com/feed/" target="_blank" class="contact-button" id="profile-link">
        <img src="https://i.postimg.cc/YqYVS84g/linkedin-logo.png" alt="LinkedIn logo" class="contact-logo">LinkedIn
      </a>
      <a href="https://github.com/" target="_blank" class="contact-button" id="github-link">
        <img src="https://i.postimg.cc/xCcNrBbR/github-logo.png" alt="github-logo" class="contact-logo">GitHub
      </a>
      <a href="mailto:a@gmail.com" class="contact-button" id="email-link">
        <img src="http://www.clker.com/cliparts/o/4/v/p/9/o/email-logo-as-hi.png" alt="email-logo" class="contact-logo">test@gmail.com
      </a>
      <a class="contact-button" id="phone-number">
        <img src="https://i.postimg.cc/Vk0Y8175/phone-logo-white.png" alt="phone-logo" class="contact-logo">123456789
      </a>
    </div>
  </section>
  <footer id="footer">
    <p>&copy;2020 Mateusz</p>
  </footer>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Lato&family=Indie+Flower&display=swap');

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

nav {
    width: 100%;
    height: 100px;
    background-image: url("https://cdn.pixabay.com/photo/2015/01/31/05/05/background-618226_960_720.png");
    background-size: cover;
    color: white;
    position: fixed;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 40%;
    z-index: 10;
}

#logo {
    align-self: center;
    font-size: 64px;
    font-family: 'Kaushan Script', cursive;
    padding-left: 20px;
}

#nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.nav-link {
    text-decoration: none;
    color: white;
    justify-self: center;
    align-self: center;
    font-family: 'Indie Flower', cursive;
    font-weight: bold;
    font-size: 32px;
}

#welcome-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("https://images.pexels.com/photos/2680270/pexels-photo-2680270.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260");
    background-size: cover;
    color: white;
}

h1 {
    text-align: center;
    font-size: 64px;
    font-family: 'Indie Flower', cursive;
    padding: 32px;
}

p {
    padding: 0 32px 0 32px;
    font-family: 'Lato', sans-serif;
    font-size: 32px;
    font-weight: bold;
}

a {
    cursor: pointer;
}

#introduction {
    width: 60%;
    font-size: 32px;
    text-align:  center;
    font-family: 'Indie Flower', cursive;
}

#projects {
    width: 100%;
    min-height: 100vh;
    background-color: green;
    padding-top: 90px;
    padding-bottom: 50px;
    background-image: url("https://images.pexels.com/photos/1484759/pexels-photo-1484759.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260");
    background-size: cover;
}

#project-grid {
    width: 80%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 150px;
    margin: 0 auto;
    padding-top: 75px;
    padding-bottom: 75px;
}

.project-tile {
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.project-tile:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transform: scale(1.1, 1.1);
}

.project-title {
    background-image: linear-gradient(to top, #d5d4d0 0%, #d5d4d0 1%, #eeeeec 31%, #efeeec 75%, #e9e9e7 100%);
    background-size: cover;
    color: black;
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    padding: 5px 0 5px 0;
    border-radius: 2px 2px 0 0;
}

.project-img {
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 0 0 2px 2px;
}

#contact {
    width: 100%;
    min-height: 100vh;
    padding-top: 90px;
    text-align: center;
    background-image: url("https://i.postimg.cc/k7NqPnv6/contact-bg.png");
    background-size: cover;
    color: white;
}

#contact-list {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    justify-content: center;
    padding: 32px;
}

.contact-button {
    text-decoration: none;
    color: black;
    font-size: 32px;
    padding: 15px;
    max-width: 300px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    color: white;
}

#profile-link:hover, #github-link:hover, #email-link:hover {
    transform: scale(1.2, 1.2);
}

#phone-number {
    cursor: inherit;
}

.contact-logo {
    width: 32px;
    height: 32px;
    vertical-align: text-bottom;
    margin-right: 5px;
}

footer > p {
    width: 100%;
    background-image: url("https://cdn.pixabay.com/photo/2015/01/31/05/05/background-618226_960_720.png");
    background-size: cover;
    color: white;
    padding: 10px;
    font-size: small;
    font-weight: normal;
}

@media screen and (max-width: 850px) {
    h1 {
        font-size: 32px;
    }

    p {
        font-size: 16px;
    }

    nav {
        grid-template-columns: 1fr 30%;
    }

    #logo {
        font-size: 32px;
    }

    #nav-links {
        flex-direction: column;
    }

    .nav-link {
        font-size: 16px;
    }

    #introduction {
        width: 80%;
        font-size: 16px;
    }

    #projects {
        min-height: 100vh;
    }

    #project-grid {
        padding-top: 25px;
        padding-bottom: 25px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 75px;
    }

    #contact {
        min-height: 100vh;
    }

    .contact-button {
        font-size: 16px;
    }

    .contact-logo {
        max-width: 16px;
        max-height: 16px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console