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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
    <head>
        <meta charset="UTF-8">
        <title>FCC Product Page</title>
        <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
        <link href="styles.css" rel="stylesheet" type="text/css">
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
    </head>
    <body>

        <div id="wrapper">

            <header id="header">
                <div id="header-holder">
                    <div id="plumbus-name">Plumbus X</div>
                    <a href="#wrapper"><img id="header-img" src="https://i.imgur.com/7FXX8hS.png"/></a>
                </div>

                <ul id="icon-list">
                    <li class="icon"></li>
                    <li class="icon"></li>
                    <li class="icon"></li>
                    <li class="icon"></li>
                </ul>

                <nav id="nav-bar">
                    <ul id="nav-list">
                        <li><a class="nav-link" href="#watch">WATCH</a></li>
                        <li><a class="nav-link" href="#see">SEE</a></li>
                        <li><a class="nav-link" href="#try">TRY</a></li>
                    </ul>
                </nav>
            </header>

            <div id="watch">
                <iframe id="video" src="https://www.youtube.com/embed/JGaBU5cKluU/" frameborder="0"></iframe>
            </div>

            <div id="see">
                <div class="see_space" style="background-color: white;"></div>
                <!-- <div class="see_space" style="background-color: #eda6e1;"></div> -->
                <div class="see_type" style="background-color: pink">Welcome to the exciting world of Plumbus ownership! A Plumbus will aid many things in life, making life easier. With proper maintenance, handling, storage, and urging, Plumbus will provide you with a lifetime of better living and happiness.</div>
                <div class="see_type" style="background-color: white;">First they take the dinglebop, and they smooth it out with a bunch of schleem. The schleem is then repurposed for later batches. They take the dinglebop and push it through the krumbo, where the fleeb is rubbed against it. It's important that the fleeb is rubbed, because the fleeb has all of the fleeb juice. Then a schlomi shows up, and rubs it, and spits on it. They cut the fleeb. There are several hizzards in the way. The blamphs rub against the trumbles, and the plubus and grumbo are shaved away. That leaves you with a regular old plumbus.</div>
                <img class="see_img" id="see_1" src="https://s1.thcdn.com/productimg/1600/1600/11888190-2044624731430812.jpg">
                <img class="see_img" src="https://images-na.ssl-images-amazon.com/images/I/81FeGpumlwL._AC_SL1500_.jpg">
                <img class="see_img" src="https://images.pyramidshop.com/images/_popup/MG25062.jpeg">
                <iframe class="see_img" id="see_4" width="100%" height="100%" src="https://www.youtube.com/embed/IyPk6nhawHQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                <img class="see_img" src="https://static-2.gumroad.com/res/gumroad/2492165460365/asset_previews/21cf87ec62d8c1b4b961cbab58faf215/retina/Plumbus.jpg">
                <img class="see_img" id="see_6" src="https://images.fun.com/products/52091/1-1/rick-and-morty-8-plumbus-2-in-1-salt-and-pepper-shakers.jpg"/>

            </div>

            <div id="try">
                <!-- <img id="try-img" src="https://image-cdn.hypb.st/https%3A%2F%2Fhypebeast.com%2Fimage%2F2016%2F04%2Frick-and-morty-plumbus-02.jpg?quality=95&w=1170&cbr=1&q=90&fit=max" width="100%"> -->
                <h2 style="color: white;">Get Involved:</h2>
                <form id="form" action="https://www.freecodecamp.com/email-submit">
                    <input name="email" id="email" type="email" placeholder="Email" required/>
                    <input id="submit" type="submit" value="Submit" class="btn"/>
                </form>
                <h6>You are signing up to receive product updates and newsletters. <br> By signing up, you are consenting to our privacy policy but you can opt out at any time.</h6>
            </div>

            <footer>
                <div>Got a question? Contact <a style="cursor: pointer;">support@plumbus.com</a></div>
                <div>All rights reserved © 2020 Plumbus Pty Ltd</div>
            </footer>



        </div>
        <!-- "https://i.redd.it/ric9kmu8vavy.jpg"  -->
        <!-- https://www.youtube.com/watch?v=JGaBU5cKluU -->


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

    </body>
</html>
              
            
!

CSS

              
                                                /* general stuff */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-image: linear-gradient(pink, white);
}

a:link {
    text-decoration: none;
    color: white;
}

a:visited {
    text-decoration: none;
    color: white;
}

#wrapper {
    width: 100%;
}

                            /* header stuff */

#header {
    position: fixed;
    top: 0;

    width: 100%;
    height: 15vh;
    background-color: black;
    box-shadow: 2px 2px 5px black;
    padding: 1vh;


    display: flex;
    justify-content: space-between;
    align-items: center;

}

    #header-holder {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    #plumbus-name {
        color: white;
        font-size: 3rem;
    }

    #header-img {
        /*   z-index: 1; */
        width: 8vw;
        height: auto;
        padding: 1vh;
    }

        #header-img:hover {
            filter: drop-shadow(1px 1px 5px pink);
        }
    
    #icon-list {
        width: 20vw;
        list-style: none;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        justify-items: center;
    }
    
    .icon {
        width: 3vw !important;
        height: 3vw !important;
        filter: invert(100%);
        
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    .icon:hover {
        /* transform: scale(1.1); */
        filter: drop-shadow(1px 1px 5px pink) drop-shadow(1px 1px 10px white);
        
    }
    
    .icon:nth-child(1) {
        background-image: url("https://img.icons8.com/wired/64/000000/email.png");
    }
    
    .icon:nth-child(2) {
        background-image: url("https://img.icons8.com/dotty/80/000000/favorite-cart.png");
    }
    
    .icon:nth-child(3) {
        background-image: url("https://img.icons8.com/dotty/80/000000/map-marker.png");
    }
    
    .icon:nth-child(4) {
        background-image: url("https://img.icons8.com/pastel-glyph/64/000000/search--v1.png");
    }
    
    #nav-bar {
        background-color: black;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        position: fixed;
        top: 18%;
        left: 0;
        padding: 1%;
        box-shadow: 2px 0px 5px black, -2px 0px 5px black;

    }

    #nav-list {
        width: 30vw;
        list-style: none;
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
    }

    .nav-link {

    }

    .nav-link:hover {
        filter: drop-shadow(1px 0px 5px pink) drop-shadow(1px 1px 10px white);
        color: black;
    }

                        /* page content */
    
#watch {
    /* border: 1px solid red; */
        
    /* padding-top: 15%; */
    width: 100%;
    height: auto;

    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
}

    #video {
        position: relative;
        z-index: 1000;

        height: 100vh;
        width: 100%;

        /* width: 80vw;  */
        /* height: 56.25vw;  */
        /* 100/56.25 = 560/315 = 1.778 */
    }


#see {
    /* border: 1px solid green; */

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(14, 1fr);
    grid-gap: 0;

    width: 100%;
    height: 240vh;

}

    .see_space {
        grid-column: span 6;
        grid-row: span 2;
    }

    .see_type {
        height: 100%;
        width: 100%;
        grid-column: span 3;
        grid-row: span 4;
        
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;

        padding: 5vh;
        line-height: 2rem;
        font-weight: 600;
    }

    .see_img {
        height: 100%;
        width: 100%;
        grid-column: span 2;
        grid-row: span 4;
    }

        #see_1 {
            grid-column: span 2;
            grid-row: span 4;
        }
        
        #see_4 {
            grid-column: span 3;
        }

        #see_6 {
            grid-column: span 1;
        }


#try {
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    text-align: center;
    padding-left: 5vh;
    padding-right: 5vh;
    padding-bottom: 5vh;
    width: 100%;
    background-color: black;
    color: white;

    padding-top: 20vh;

}

    #try-img {
        padding: 20px;
        width: 500px;
    }

#form {
    margin-top: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #email {
        font-size: 1.5rem;
        width: 30vw;
        border: none;
    }

    #submit {
        border-top: none;
        border-bottom: none;
        border-right: none;
        width: 10vw;
        font-size: 1.5rem;
        background-color: pink;
        min-width: 100px;
        
    }

    #submit:hover {
        filter: drop-shadow(1px 0px 5px pink);
        cursor: pointer;
    }

footer {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 2vh;
    font-size: .8rem;
    margin-top: 20vh;
}


                                /* mobile display responsiveness */

@media only screen and (min-width: 600px) and (max-width: 950px) {

    #video {
        height: 70vh;
    }


    #see {
        height: 200vh;
    }
    
        .see_space {
            grid-column: span 6;
            grid-row: span 1;
        }
    
        .see_type {    
            grid-row: span 5;
            padding: 2vh;
            line-height: 1.5rem;
            font-size: .8rem;
        }
    
        .see_img {
            height: 100%;
            width: 100%;
            grid-column: span 2;
            grid-row: span 3;
        }

    footer {
        margin-top: 35vh;
    }


}




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

    #header {
        height: 10vh;
    }

        #plumbus-name {
            font-size: 2rem;
        }

        #nav-bar {
            top: 11%;
        }

        #nav-list {
            width: 30vw;
            list-style: none;
            display: flex;
            justify-content: space-between;
            font-size: .7rem;
        }

        #icon-list {
            width: 25vw;
        }

        .icon {
            width: 5vw !important;
            height: 5vw !important;
        }

    #video {
        height: 40vh;
    }


    #see {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(14, 1fr);
        height: 240vh;
    
    }
    
        .see_space {
            display: none;
        }
    
        .see_type {
            grid-column: span 6;
            grid-row: span 4;
            
    
            padding: 2vh;
            line-height: 1.5rem;
            font-size: .8rem;
        }
    
        .see_img {
            grid-column: span 2;
            grid-row: span 2;
        }
    
            #see_1 {
                grid-column: span 2;
                grid-row: span 2;
            }
            
            #see_4 {
                grid-column: span 3;
            }
    
            #see_6 {
                grid-column: span 1;
            }

    footer {
        margin-top: 37vh;
        font-size: .5rem;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console