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>

<nav id="navbar">
    <ul>
        <li><a href="#welcome-section">welcome</a></li>
        <li><a href="#projects">projects</a></li>
        <li><a href="#expertise">expertise</a></li>
        <li><a href="#contact">contact</a></li>
    </ul>
</nav>

<main>
    
    <section id="welcome-section">
        <h1>Hi, I am JohMar</h1>
        <h2>a full stack web developer <sup><a href="#footer">*</a></sup></h2>
    </section>

    <section id="projects">
        <h2>My Projects</h2>
        <div id="projectsholder">
            <figure class="project-tile">
                <a href="https://codepen.io/johmar/pen/WNrKvZz" target="_blank">
                    <img src="https://raw.githubusercontent.com/j0hm4r/freeCodeCamp/master/responsive_web_design/portfolio_page/tribute_page.png" alt="Tribute Page">
                </a>
                <figcaption>Tribute Page</figcaption>
            </figure>
            <figure class="project-tile">
                <a href="https://codepen.io/johmar/pen/LYGXarV" target="_blank">
                    <img src="https://raw.githubusercontent.com/j0hm4r/freeCodeCamp/master/responsive_web_design/portfolio_page/survey_form.png" alt="Survey Form">
                </a>
                <figcaption>Survey Form</figcaption>
            </figure>
            <figure class="project-tile">
                <a href="https://codepen.io/johmar/pen/eYJXQre" target="_blank">
                    <img src="https://raw.githubusercontent.com/j0hm4r/freeCodeCamp/master/responsive_web_design/portfolio_page/landing_page.png" alt="Product Landing Page">
                </a>
                <figcaption>Product Landing Page</figcaption>
            </figure>
            <figure class="project-tile">
                <a href="https://codepen.io/johmar/pen/KKVLKbg" target="_blank">
                    <img src="https://raw.githubusercontent.com/j0hm4r/freeCodeCamp/master/responsive_web_design/portfolio_page/tech_doc.png" alt="Technical Documentation">
                </a>
                <figcaption>Technical Documentation</figcaption>
            </figure>
            <figure class="project-tile">
                <a href="https://codepen.io/johmar/pen/PoZrdZv" target="_blank">
                    <img src="https://raw.githubusercontent.com/j0hm4r/freeCodeCamp/master/responsive_web_design/portfolio_page/portfolio.png" alt="Portfolio Page">
                </a>
                <figcaption>Portfolio Page</figcaption>
            </figure>
        </div>
    </section>

    <section id="expertise">
        <h2>Expertise <sup><a href="#footer">**</a></sup></h2>
        <div id="expertholder">
            <div class="expert-tile">
                <h3>Front-end</h3>
                <ul>
                    <li>HTML5</li>
                    <li>CSS3</li>
                    <li>Javascript</li>
                    <li>JQuery</li>
                    <li>Bootstrap</li>
                </ul>
            </div>
            <div class="expert-tile">
                <h3>Back-end</h3>
                <ul>
                    <li>Python</li>
                    <li>PHP</li>
                    <li>SQL</li>
                    <li>MariaDB &amp; MySQL</li>
                    <li>SQLite</li>
                    <li>MongoDB</li>
                    <li>Nginx</li>
                </ul>
            </div>
            <div class="expert-tile">
                <h3>Other</h3>
                <ul>
                    <li>Wordpress</li>
                    <li>Joomla</li>
                    <li>Drupal</li>
                    <li>Flask</li>
                </ul>
            </div>
            <div class="expert-tile">
                <h3>Tools</h3>
                <ul>
                    <li>VS Code</li>
                    <li>Atom</li>
                    <li>GitHub</li>
                    <li>Heroku</li>
                    <li>MS Project</li>
                    <li>MS Office</li>
                </ul>
            </div>
        </div>
    </section>

    <section id="contact">
        <h2>Find Me at</h2>
        <div id="contacts">
            <div class="contactme"><a href="https://github.com/j0hm4r" id="profile-link" target="_blank"><span class="fab fa-github fa-3x"> </span></a><span class="facaption"><br>GitHub</span></div>
            <div class="contactme"><a href="https://www.freecodecamp.org/johmar" target="_blank"><span class="fab fa-free-code-camp fa-3x"> </span></a><span class="facaption"><br>freeCodeCamp</span></div>
            <div class="contactme"><a href="https://codepen.io/johmar" target="_blank"><span class="fab fa-codepen fa-3x"> </span></a><span class="facaption"><br>CodePen</span></div>
            <div class="contactme"><a href="mailto:johndoe@example.com"><span class="fas fa-at fa-3x"> </span></a><span class="facaption"><br>Email</span></div>
            <div class="contactme"><a href="https://twitter.com/maresjohan" target="_blank"><span class="fab fa-twitter fa-3x"> </span></a><span class="facaption"><br>Twitter</span></div>
        </div>
    </section>

    <footer id="footer">
        <p>&copy; 2020 | This is a fake portfolio | * :  aspiring | ** : working on it</p>
    </footer>
</main>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

*,
*::before,
*::after {
  box-sizing: inherit;
}

:root {
    --bgcolor-welcome: #A40E4C;
    --bgcolor-bar: #2C2C54;
    --bgcolor-tech: #ACC3A6;
    --bgcolor-project: #F49D6E;
    --bgcolor-contact: #F5D6BA;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

#navbar {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bgcolor-bar);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
  
}
#navbar ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin-right: 20px;
    font-size: 20px;
}

#navbar li {
    margin: 10px 5px;
}

#navbar a {
    text-decoration: none;
    display: block;
    color: azure;
    border: 1px solid azure;
    padding: 10px 20px;
    border-radius: 5px;
}

#navbar a:hover {
    color: var(--bgcolor-bar);
    background-color: azure;
}

main {
    display: flex;
    flex-direction: column;
}

section {
    width: 100%;
}

#welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: var(--bgcolor-welcome);  
    font-family: 'Marck Script', cursive;
    color: goldenrod;
}

#welcome-section h1 {
    font-size: 70px;
}

#welcome-section h2 {
    font-size: 50px;
}

#welcome-section a {
    text-decoration: none;
    color: darkorange;
    font-family: Arial, Helvetica, sans-serif;
}

#welcome-section a:hover {
    color: gold;
}

#projects {
    background-color: var(--bgcolor-project);
    padding-top: 100px;
    padding-bottom: 100px;
}

#projectsholder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    justify-content: space-evenly;
    margin: 10px auto;
}

.project-tile {
    border-radius: 5px;
    margin: 5px;
    background-color: maroon;
    padding: 10px;
    max-width: 300px;
}

.project-tile img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: 5px;
}

.project-tile figcaption {
    font-style: italic;
    color: white;
    padding-top: 10px;
    text-align: center;
}

#expertise {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bgcolor-tech);
}

#expertise a {
    text-decoration: none;
    color: dimgray;
    font-family: Arial, Helvetica, sans-serif;
}

#expertise a:hover {
    color: lightseagreen;
}

.expert-tile {
    margin: 5px;
    padding: 10px;
    max-width: 300px;
    min-width: 200px;
}

.expert-tile h3 {
    text-align: left;
    margin-bottom: 10px;
}

.expert-tile ul {
    margin: 10px auto;
}

#contact {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bgcolor-contact);
    color: var(--peach-puff);
}

#projects h2,
#expertise h2,
#contact h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}

#expertholder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    justify-content: space-evenly;
    margin: 10px auto;
}

#contacts {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.contactme {
    text-align: center;
    color: black;
}

#contact a {
    text-decoration: none;
    color: black;
}

#contact a:hover {
    color: maroon;
}

footer {
    background-color: var(--bgcolor-bar);
    color: azure;
    text-align: center;
    font-size: 25px;
    padding: 25px 10px;
}

@media screen and (max-width: 800px) {
    footer {
        font-size: 20px;
    }
    #welcome-section h1 {
        font-size: 60px;
    }
        #welcome-section h2 {
        font-size: 40px;
    }
}
@media screen and (max-width: 600px) {
    footer {
        font-size: 14px;
    }
    #navbar ul {
        margin-right: 5px;
        font-size: 16px;
    }  
    #navbar a {
        padding: 5px 10px;
        border-radius: 3px;
    }  
    #welcome-section h1 {
        font-size: 50px;
    }
    #welcome-section h2 {
        font-size: 30px;
    }
    .facaption {
        display: none;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console