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

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


    <body>
        <header>
            <nav id="navbar">
                <ul>
                    <li><a href="#welcome" class="nav-links">Home</a></li>
                    <li><a href="#projects" class="nav-links">Projects</a></li>
                    <li><a href="#contact" class="nav-links">Contact</a></li>
                </ul>
            </nav>
        </header>

        <main>
            <section id="welcome-section">
                        <h1>Hi, I'm Lauric</h1>  
                        <p id="subtitle"><code>&lt;Newbie developer&gt;</code></p>                     
            </section>
            <section id="projects">
                <header><h2>My projects</h2></header>
                    <div id="project-tiles">
                        <div id="tribute" class="project-tile">
                            <h3>Tribute Page</h3>
                            <a href="https://codepen.io/lauric-h/full/abOrewr" target="_blank"><img src="https://images.unsplash.com/photo-1584770557404-a5d2a798e81a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1462&q=80" alt="tribute_image"></a>
                        </div>
                        <div id="survey" class="project-tile">
                            <h3>Survey Form</h3>
                            <a href="https://codepen.io/lauric-h/full/poJXpmQ" target="_blank"><img src="https://images.unsplash.com/photo-1530143311094-34d807799e8f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="survey_image"></a>
                        </div>
                        <div id="documentation" class="project-tile">
                            <h3>Technical Documentation</h3>
                            <a href="https://codepen.io/lauric-h/full/MWagPNd" target="_blank"><img src="https://images.unsplash.com/photo-1556075798-4825dfaaf498?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60" alt="doc_image"></a>

                        </div>
                        <div id="product" class="project-tile">
                            <h3>Product Landing Page</h3>
                            <a href="https://codepen.io/lauric-h/full/vYNBEwN" target="_blank"><img src="https://images.unsplash.com/photo-1537522306408-8435f315b2e3?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="product_image"></a>
                        </div>
                    </div> 
            </section>
            <section id="contact">
                    <header><h2 id="contact-title">Contact me</h2></header>
                    <ul id="profile">
                        <li><a href="https://github.com/Lauric-h" target="_blank" id="profile-link" class="profile-links"><i class="fab fa-github-square"></i></a></li>
                        <li><a href="https://codepen.io/lauric-h" target="_blank" class="profile-links"><i class="fab fa-codepen"></i></a></li>
                        <li><a href="https://twitter.com/LauricOlrik" target="_blank" class="profile-links"><i class="fab fa-twitter-square"></i></a></li>
                        <li><a href="https://thetrailwalker.fr" target="_blank" class="profile-links"><i class="fab fa-wordpress"></i></a></li>
                    </ul>
            </section>  
        </main>
        <footer id="footer">
            <p>Made with <a href="https://thetrailwalker.fr" target="_blank"><i class="fas fa-basketball-ball"></i></a> by Lauric</p>
        </footer>




    </body>
              
            
!

CSS

              
                /*font-family: 'Montserrat', sans-serif;*/
/*colors :
project: #D9E76C
welcome: #537D8D
nav and footer : #AC3931 */

*,
*::before,
*::after{
    box-sizing: border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior: smooth;
}

/* Typography */

*:not(code){font-family: 'Montserrat', sans-serif;}

h1{
    font-weight:700;
    font-size:2em;
}

h2{
    font-weight:600;
    font-size:1.5em;
}

h3{
    font-weight:500;
    font-size:1em;
}

a{text-decoration: none;}
li{list-style-type: none;}

code{
    background-color: #D9E76C;
}

/* navbar */

#navbar{
    display:flex;
    justify-content: center;
    position:fixed;
    top:0;
    right:0;
    z-index:2;
    background-color: #AC3931;
    width:100%;
    box-shadow: 2px 2px 3px 3px rgba(0,0,0,0.5);
    margin-bottom: 5em;
}

#navbar ul{
    display:flex;
}

#navbar ul a{
    display:block;
    padding:1em;
    color:#D9E76C;
    position:relative;
}

#navbar ul a:hover{
    background-color: #D9E76C;
    color:#AC3931;
}

/* Welcome */

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

#welcome-section h1{
    margin-bottom:1em;
}

/* Projects */

#projects{
    background-color:#D9E76C ;
    width:100%;
    height:100%;
    padding:1em;
    text-align:center;
}

#projects h2{
    margin:1em auto;
}

h3{
    margin-bottom:1em;
}

img{
    max-width:100%;
    height:250px;
    box-shadow: 2px 4px 10px 5px rgba(0,0,0,0.4);
    transition: 0.5s ease;
    border-radius: 5px;
}

#project-tiles{
    display:grid;
    grid-gap:50px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    justify-items: center;
    align-items:center;
    margin:5px 15px;
}

img:hover{
    transform:scale(1.05);
}

/* Contact */

#contact{
    background-color:#537D8D ;
    width:100%;
    height:100vh;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact h2{
    font-weight:700;
    font-size:2em;
}

#contact ul i{
    color:#D9E76C;
    font-size:2em;
    padding:1em;
    transition: 0.8s ease;
}

#contact ul i:hover{
    transform:scale(2);
}

/* Footer */

footer{
    background-color: #AC3931;
    width:100%;
    padding:1em;
    text-align:center;
}

footer i{
    color:orange;
}

/* media queries*/

@media (min-width:650px){
    #navbar{
        justify-content: flex-end;
    }
    #navbar ul a{
        margin-right:4em;
    }
    #project-tiles{
        grid-template-columns:1fr 1fr;
    }
    img{
        width:400px;
        height:300px;
    }
    h1{
        font-size:5em;
    }
    code{
        font-size: 2em;
    }
    h2{
        font-size: 2em;
    }
    h3{
        font-size: 1.5em;
    }
    #contact ul{
        display:flex;
        font-size:2em;
    }
    #contact h2{
        font-size: 3em;
    }
}


              
            
!

JS

              
                
              
            
!
999px

Console