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

              
                <!DOCTYPE html>
<html lang="en-US">

<head>
    <title> Portfolio Page </title>
    <link type="text/css" href="portfolio.css" rel="stylesheet">
    <meta name="viewport" content="width = device-width, initial-scale = 1.0">
    <meta charset="utf-8">
    <link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet">

</head>

<body>
    <div class="background-container">
        <div class="image-background-1"><img src="https://cdn2.iconfinder.com/data/icons/seo-isometric-2/512/Data_Work-256.png" width="300px"></div>
        <div class="image-background-2"><img src="https://cdn2.iconfinder.com/data/icons/seo-isometric-2/512/Data_Work-256.png" width="300px"></div>
        <div class="circle circle-1"></div>
        <div class="circle circle-2"></div>
        <div class="circle circle-3"></div>
    </div>
    <div class="content-container">
        <nav class="menu" id="navbar">
            <ul>
                <li><a href="#welcome-section"> About</a></li>
                <li><a href="#projects"> Projects </a></li>
                <li><a href="#profile-link"> Contact</a></li>
            </ul>

        </nav>
        <section id="welcome-section">
            <div class="image">
                <img src="https://github.com/nibble0101/Free_code_camp/blob/master/web_photos/lemur.png?raw=true" width="200px">
            </div>
            <div class="about">
                <h1> Joe Nibble </h1>

                <p><br>
                    Hi there<span> ... </span>!<br>
                    Thanks for passing by.
                    My name is <span class="name"> Joe Nibble </span> and i'm a <span class="name">Web Developer</span> passionate about:
                </p>
                <ul class="passion">
                    <li> <img src="https://cdn2.iconfinder.com/data/icons/circle-icons-1/64/dev-256.png" height="20px">Front End Development and</li>
                    <li><img src="https://cdn2.iconfinder.com/data/icons/3d-infographics/512/3-512.png" height="20px"> Data visualisation </li>
                </ul> <br>

                <p> I have basic experience in the following technologies:</p>
                <ul class="technology-stack">
                    <li><img src="https://cdn4.iconfinder.com/data/icons/flat-brand-logo-2/512/html5-256.png" height="30px"> HTML5</li>
                    <li><img src="https://cdn4.iconfinder.com/data/icons/flat-brand-logo-2/512/css3-256.png" height="30px"> CSS3</li>
                    <li><img src="https://cdn2.iconfinder.com/data/icons/nodejs-1/256/nodejs-256.png" height="30px">JavaScript</li>
                    <li><img src="https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/285_R_Project_logo-512.png" height="30px"> R</li>
                    <li><img src="https://cdn3.iconfinder.com/data/icons/logos-and-brands-adobe/512/267_Python-256.png" height="30px">Python</li>
                    <li><img src="https://cdn2.iconfinder.com/data/icons/letters-and-numbers-1/32/lowercase_letter_c_blue-256.png" height="30px">C </li>
                </ul>
            </div>
        </section>
        <section id="projects">
            <h2> Projects: </h2>
            <div class="projects-container">
                <p> These projects were completed as part of Free Codecamp's Responsive Web Design Certification Course. Technologies used were HTML, JavaScript and CSS. </p>
                <div class="project tribute-page project-tile">
                    <h4> Tribute Page</h4>
                    <a href="https://codepen.io/nibble0101/pen/XWrvVoB"><img src="https://github.com/nibble0101/Free_code_camp/blob/master/web_photos/tribute-page.png?raw=true"></a>
                </div>
                <div class="project survey-form">
                    <h4> Survey Form </h4>
                    <a href="https://codepen.io/nibble0101/pen/bGbQxeJ"> <img src="https://github.com/nibble0101/Free_code_camp/blob/master/web_photos/survey-form.png?raw=true"></a>
                </div>
                <div class="project product-landing-page">
                    <h4> Product Landing Page </h4>
                    <a href="https://codepen.io/nibble0101/pen/vYYePOa"><img src="https://github.com/nibble0101/Free_code_camp/blob/master/web_photos/product-landing-page.png?raw=true"></a>
                </div>
                <div class="project technical-documentation">
                    <h4> Technical Documentation Page </h4>
                    <a href="https://codepen.io/nibble0101/pen/GRRqyNg"> <img src="https://github.com/nibble0101/Free_code_camp/blob/master/web_photos/technical-documentation-page.png?raw=true"></a>
                </div>
            </div>

        </section>
        <section id="profile-links">
            <div class="contact-section-intro">
                <h2> Get in Touch:</h2>
                <p>Do you want to get in touch? You can also find me on the following platforms: </p>
            </div>

            <ul>
                <li><a href="http://twitter.com/MJMAWA" target="_blank"><img src="https://cdn4.iconfinder.com/data/icons/flat-brand-logo-2/512/twitter-256.png" width="30px"> Twitter </a></li>
                <li><a href="https://m.facebook.com/mukosajoseph.mawa?ref=bookmarks" target="_blank"><img src="https://cdn4.iconfinder.com/data/icons/ballicons-2-free/100/like-256.png" width="30px"> Facebook </a></li>
                <li><a id="profile-link" href="https://github.com/nibble0101" target="_blank"><img src="https://cdn0.iconfinder.com/data/icons/social-media-2183/512/social__media__social_media__github_-256.png" width="30px"> Github </a></li>
                <li><a href="https://stackoverflow.com/users/10855360/nibble" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/popular-services-brands-vol-2/512/stackexchange-512.png" width="30px"> StackExchange </a></li>
                <li><a href="https://codepen.io/nibble0101" target="_blank"><img src="https://cdn0.iconfinder.com/data/icons/social-media-2127/48/social_media_social_media_logo_codepen-256.png" width="30px"> Codepen </a></li>
                <li><a href="https://www.freecodecamp.org/nibble" target="_blank" id="profile-link"><img src="https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/freecodecamp-256.png" width="30px"> FCC </a></li>
            </ul>

        </section>
        <section class="copyright">
          &copy; Nibble <span id="year"></span>
        </section>
    </div>

</body>

</html>

              
            
!

CSS

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

body {
    background-color: #303;
    width: 80vw;
    max-width: 850px;
    min-width: 260px;
    margin: 0 auto;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;

}

.background-container {
    position: fixed;
    z-index: -250;
    width: 100%;
    height: 100%;

}

.image-background-1 {
    position: fixed;
    left: 0;
    top: calc(80vh - 150px);
    opacity: .1;
}

.image-background-2 {
    position: fixed;
    right: 0;
    top: 0;
    opacity: .1;
}

.circle {
    background-color: green;
    width: 300px;
    height: 300px;
    position: fixed;
    z-index: -200;
    border-radius: 50%;
    opacity: 0.2;
}

.circle-1 {
    left: -150px;
    top: -150px;
}

.circle-2 {
    bottom: -150px;
    right: -150px;
}

.circle-3 {
    width: 100px;
    height: 100px;
    left: calc(50vw - 50px);
    top: calc(50vh - 50px);
}

.menu {
    position: fixed;
    height: 40px;
    width: 100vw;
    left: 0;
    background-color: #070729;
    z-index: 5;
    border-bottom: 1px solid yellow;
}

.menu ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

.menu li {
    padding: 0 50px;
}

.menu a {
    text-decoration: none;
    display: block;
    padding: 10px;
    color: white;
}

.menu a:hover {
    background-color: green;
}

#welcome-section {
    width: 100%;
    height: 100vh;
    display: grid;
    justify-items: center;
    grid-template-columns: 200px auto;
    grid-template-rows: 100px auto;
    grid-column-gap: 50px;

}

.image {
    grid-column: 1/2;
    grid-row: 2/3;
}

.about {
    grid-column: 2/3;
    grid-row: 2/3;
    line-height: 1.5em;

}

.about h1 {
    text-align: center;
}

.about span {
    color: green;
}

.about span.name {
    font-size: 1.5em;
}

.passion {
    list-style-type: none;
}

.passion img {
    margin-right: 10px;
    position: relative;
    top: 5px;
}

.about h1 {
    font-family: cursive;
    font-size: 3em;
    margin-bottom: 30px;
}

.technology-stack,
#profile-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.technology-stack {
    grid-row-gap: 20px;
    margin-top: 50px;
}

.technology-stack li:nth-child(1),
#profile-links ul li:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/2;
}

.technology-stack li:nth-child(2),
#profile-links ul li:nth-child(2) {
    grid-column: 2/3;
    grid-row: 1/2;
}

.technology-stack li:nth-child(3),
#profile-links ul li:nth-child(3) {
    grid-column: 3/4;
    grid-row: 1/2;
}

.technology-stack li:nth-child(4),
#profile-links ul li:nth-child(4) {
    grid-column: 1/2;
    grid-row: 2/3;
}

.technology-stack li:nth-child(5),
#profile-links ul li:nth-child(5) {
    grid-column: 2/3;
    grid-row: 2/3;
}

.technology-stack li:nth-child(6),
#profile-links ul li:nth-child(6) {
    grid-column: 3/4;
    grid-row: 2/3;
}

.technology-stack li,
#profile-links ul li {
    list-style-type: none;
}

.technology-stack img {
    position: relative;
    top: 10px;

}

#projects {
    padding-top: 15px;
    border-top: 1px solid green;
}

#projects .projects-container {
    line-height: 1.5em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-column-gap: 10px;

}

#projects .projects-container p {
    grid-column: 1/3;
    grid-row: 1/2
}

#projects .projects-container .tribute-page {
    grid-column: 1/2;
    grid-row: 2/3;
}

#projects .projects-container .technical-documentation {

    grid-column: 2/3;
    grid-row: 2/3;
}

#projects .projects-container .product-landing-page {
    grid-column: 1/2;
    grid-row: 3/4;
}

#projects .projects-container .survey-form {
    grid-column: 2/3;
    grid-row: 3/4;
}



#projects .project {
    margin-top: 20px;

}


#projects .project h4 {
    padding: 10px;
    border-bottom: 1px solid #fff;
    background-color: lightskyblue;
}

#projects h2,
#profile-links .contact-section-intro h2 {
    color: yellow;
}

#projects img {
    width: 100%;
    display: block;
    height: auto;
    max-width: 600px;
    border: 1px solid #fff;
}

#profile-links {
    margin: 30px 10px 50px 10px;
    line-height: 1.5em;
    border-top: 1px solid green;
    padding-top: 15px;
}

#profile-links img {
    position: relative;
    top: 12px;
}

#profile-links a {
    text-decoration: none;
    color: #fff;

}

#profile-links a:hover {
    color: fuchsia;
}

section.copyright {
    position: fixed;
    background-color: #070729;
    width: 100vw;
    bottom: 0;
    left: 0;
    text-align: center;
    line-height: 1.5em;
    border-top: 1px solid yellow;


}

@media screen and (max-width: 700px) {
    #welcome-section {
        grid-template-columns: auto;
        grid-template-rows: 50px auto;
        grid-row-gap: 10px;

    }

    .menu li {
        padding: 0 20px;
    }

    .image {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .about {
        grid-column: 1/2;
        grid-row: 3/4;
        line-height: 1.3em;
        justify-content: center;
    }
     #projects {
        margin-top: 60px;
    }
    .technology-stack {
    margin-top: 15px;
}

}

@media screen and (max-width: 570px) {

    .technology-stack,
    #profile-links ul {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .technology-stack {
        grid-row-gap: 3px;
        
    }

    .technology-stack li:nth-child(1),
    #profile-links ul li:nth-child(1) {
        grid-column: 1/2;
        grid-row: 1/2;
    }

    .technology-stack li:nth-child(2),
    #profile-links ul li:nth-child(2) {
        grid-column: 2/3;
        grid-row: 1/2;
    }

    .technology-stack li:nth-child(3),
    #profile-links ul li:nth-child(3) {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .technology-stack li:nth-child(4),
    #profile-links ul li:nth-child(4) {
        grid-column: 2/3;
        grid-row: 2/3;
    }

    .technology-stack li:nth-child(5),
    #profile-links ul li:nth-child(5) {
        grid-column: 1/2;
        grid-row: 3/4;
    }

    .technology-stack li:nth-child(6),
    #profile-links ul li:nth-child(6) {
        grid-column: 2/3;
        grid-row: 3/4;
    }

    #projects .projects-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

    }

    .about h1 {
        line-height: 1.5em;
    }
    #projects{
        margin-top: 100px;
    }
  .image img {
    width:40px;

}

}

@media screen and (max-width: 380px) {
    #profile-links ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu li {
        padding: 0 5px;
    }

}

              
            
!

JS

              
                let date = new Date()
document.getElementById("year").innerHTML = date.getFullYear()


              
            
!
999px

Console