Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Groovy Basses</title>
    <link rel="stylesheet" href="stylesheet.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
    <link href="https://fonts.googleapis.com/css?family=Bree+Serif|Open+Sans|Source+Sans+Pro" rel="stylesheet">
</head>
<body>
    <header id="header">
        <div class="logo">
            <img id="header-img" src="https://res.cloudinary.com/cloudavid/image/upload/e_bgremoval/v1542853875/CrappyLogo_bwchku.png" alt="logo" width="256px">
        </div>
        <nav id="nav-bar">
            <ul id="nav-bar-list">
                <li><a class="nav-link" href="#features">Features</a></li>
                <li><a class="nav-link" href="#see-them-in-action">See them in action</a></li>
                <li><a class="nav-link" href="#pricing">Pricing</a></li>
            </ul>
        </nav>
    </header>
    <!--Heading-->
    <div id="heading">
        <h1>Own a piece of the groove!</h1>
    </div>
    <!--Contact form-->
    <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" name="email" id="email" placeholder="Enter your email"><br>
        <input type="submit" value="Yes, I want the groove!" id="submit">
    </form>
    <!--Features section-->
    <section id="features">
        <div id="features-container">
            <div id="top-icon">
                <i class="fas fa-tree"></i>
            </div>
            <h2 id="feat-top-h">Top-Notch Woods</h2>
            <p id="feat-top-p">Your music deserves the best tone. Our selection of <strong>premium woods</strong> ensures your low notes will resonate through the ages. Choose between our wide selection of <strong>Alder</strong>, <strong>Cherry</strong>, <strong>Koa</strong>, <strong>Maple</strong>, <strong>Poplar</strong>, <strong>Cocobolo</strong>, and <strong>Wenge</strong> bodies and fretboards, and take our music to a whole new level of low-end, groovy goodness!</p>
            <div id="mid-icon">
                <i class="fas fa-microchip"></i>
            </div>
            <h2 id="feat-mid-h">Premium Electronics</h2>
            <p id="feat-mid-p">Do you prefer <strong>active or passive pickups</strong>? Are you a <strong>single-coil or humbucker</strong> kind of player? Just choose your flavor and we'll deliver! Fancy an <strong>active, 3-band, parametric EQ</strong>? You got it! Want to explore tonal possibilities with <strong>MIDI pickups</strong>? We got you covered! Groovy Basses let you shape the sound you want.</p>
            <div id="bot-icon">
                <i class="fas fa-clipboard-check"></i>
            </div>
            <h2 id="feat-bot-h">Guaranteed Quality</h2>
            <p id="feat-bot-p">With Groovy Basses your bass-playing gets backed-up by our stringent <strong>quality control</strong> processes. Every step of our manufacturing chain is tightly supervised so the instrument that ends up in your hands is the best possible one. Our <strong>Quality Assurance System</strong> guarantees an optimal, premium playing experience.</p>
        </div>
    </section>
    <!--Video section-->
    <section id="see-them-in-action">
        <div id="video-container">
            <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/ocZQz50n_YM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
    </section>
    <!--Pricing section-->
    <section id="pricing">
        <div id="pricing-container">
            <h2 id="bass-title-left">4-string bass</h2>
            <h3 id="bass-price-left">$1200</h3>
            <ul id="bass-features-left">
                <li>Bolted Wenge / Purpleheart neck</li>
                <li>34" scale length</li>
                <li>24 med jumbo frets</li>
                <li>Active pickups</li>
                <li>Vol / blend / bass / mid / treb controls</li>
            </ul>
            <button type="submit" class="bass-button" id="bass-button-left">Select</button>
            <h2 id="bass-title-center">5-string bass</h2>
            <h3 id="bass-price-center">$1800</h3>
            <ul id="bass-features-center">
                <li>Bolted Wenge / Purpleheart neck</li>
                <li>34" scale length</li>
                <li>24 med jumbo frets</li>
                <li>Active pickups</li>
                <li>Slap contour switch</li>
            </ul>
            <button type="submit" class="bass-button" id="bass-button-center">Select</button>
            <h2 id="bass-title-right">6-string bass</h2>
            <h3 id="bass-price-right">$2700</h3>
            <ul id="bass-features-right">
                <li>Bolted Wenge / Purpleheart neck-thru body</li>
                <li>34" scale length</li>
                <li>24 med jumbo frets</li>
                <li>Active pickups</li>
                <li>Custom parametric frequency selector</li>
            </ul>
            <button type="submit" class="bass-button" id="bass-button-right">Select</button>
        </div>
    </section>
    <!--Footer-->
    <footer id="footer">
        <ul id="footer-list">
            <li class="footer-link"><a href="https://www.freecodecamp.com/privacy">Privacy</a></li>
            <li class="footer-link"><a href="https://www.freecodecamp.com/terms">Terms</a></li>
            <li class="footer-link"><a href="https://www.freecodecamp.com/contact">Contact</a></li>
        </ul>
        <p id="footer-p">&copy; Copyright 2018, David Martinez</p>
    </footer>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
</html>
            
          
!
            
              /* Palette: https://www.colourlovers.com/palette/92095/Giant_Goldfish */

body {
    margin: 0;
    background-color: #E0E4CC;
}

a {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
}

header {
    display: flex;
    position: fixed;
    justify-content: space-around;
    align-items: center;
    background-color: #A7DBD8;
    top: 0px;
}

.logo {
    width: 45vw;
}

#header-img {
    position: relative;
    left: 0%;
    background-color: #A7DBD8;
}

@media screen and (max-width: 600px) {
    #header-img {
        width: 160px;
    }
}

#nav-bar-list {
    display: flex;
    font-family: 'Open Sans', sans-serif;
    list-style-type: none;
    background-color: #A7DBD8;
    width: 55vw;
}

.nav-link {
    display: inline;
    margin-left: 32px;
    margin-right: 32px;
    padding: 32px;
}

@media screen and (max-width: 600px) {
    #nav-bar-list {
        display: block;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .nav-link {
        display: block;
        padding: 8px;
    }
}

#heading {
    font-family: 'Bree Serif', serif;
    font-size: xx-large;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 15px;
    background-color: #E0E4CC;
}

@media screen and (max-width: 600px) {
    #heading {
        font-size: x-large;
    }
}

h1 {
    padding-top: 20px;
}

#form {
    text-align: center;
    padding-bottom: 16px;
}

#email {
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    text-align: center;
}

#submit {
    background-color: #FA6900;
    border-radius: 8px;
    color: #E0E4CC;
    font-family: 'Open Sans', sans-serif;
    margin: 4px;
    border: none;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
}

#submit:hover {
    background-color: #F38630;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

#features-container {
    display: grid;
    grid-template-columns: 25% 65% 10%;
    background-color: #69D2E7;
}

#features-container p {
    font-family: 'Open Sans', sans-serif;
}

#features-container h2 {
    font-family: 'Bree Serif', serif;
}

#video-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 60px;
}

#top-icon {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    font-size: 300%;
    text-align: center;
    padding: 40px;
}

#mid-icon {
    grid-row: 3 / 5;
    grid-column: 1 / 2;
    font-size: 300%;
    text-align: center;
    padding: 40px;
}

#bot-icon {
    grid-row: 5 / 7;
    grid-column: 1 / 2;
    font-size: 300%;
    text-align: center;
    padding: 40px;
}

#feat-top-h {
    grid-row: 1;
    grid-column: 2 / 3;
}

#feat-top-p {
    grid-row: 2;
    grid-column: 2 / 3;
}

#feat-mid-h {
    grid-row: 3;
    grid-column: 2 / 3;
}

#feat-mid-p {
    grid-row: 4;
    grid-column: 2 / 3;
}

#feat-bot-h {
    grid-row: 5;
    grid-column: 2 / 3;
}

#feat-bot-p {
    grid-row: 6;
    grid-column: 2 / 3;
}

/* TODO: create margin lines for pricing container boxes */

#pricing-container {
    display: grid;
    grid-template-columns: 14% 24% 24% 24% 14%;
    grid-template-rows: repeat(4, 25%);
    grid-template-areas:
        ". b-title-l b-title-c b-title-r ."
        ". b-price-l b-price-c b-price-r ."
        ". b-feats-l b-feats-c b-feats-r ."
        ". b-buttn-l b-buttn-c b-buttn-r .";
    background-color: #69D2E7;
    padding-bottom: 20px;
}

@media screen and (max-width: 640px) {
    #pricing-container {
        display: grid;
        grid-template-columns: 100%;
        grid-template-areas:
        "b-title-l"
        "b-price-l"
        "b-feats-l"
        "b-buttn-l"
        "b-title-c"
        "b-price-c"
        "b-feats-c"
        "b-buttn-c"
        "b-title-r"
        "b-price-r"
        "b-feats-r"
        "b-buttn-r";
    }
}

#pricing-container h2 {
    font-family: 'Bree Serif', serif;
}

#pricing-container h3 {
    font-family: 'Source Sans Pro', sans-serif;
}

#pricing-container ul {
    font-family: 'Open Sans', sans-serif;
}

#pricing-container button {
    background-color: #E0E4CC;
    border-radius: 8px;
    color: #000;
    font-family: 'Open Sans', sans-serif;
    margin: 4px;
    border: none;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
    justify-self: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid black;
}

#pricing-container button:hover {
    background-color: #F38630;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

#bass-title-left {
    grid-area: b-title-l;
    text-align: center;
    border-left: 2px solid #E0E4CC;
}

#bass-title-center {
    grid-area: b-title-c;
    text-align: center;
    border-left: 2px solid #E0E4CC;
}

#bass-title-right {
    grid-area: b-title-r;
    text-align: center;
    border-left: 2px solid #E0E4CC;
    border-right: 2px solid #E0E4CC;
}

#bass-price-left {
    grid-area: b-price-l;
    text-align: center;
    border-left: 2px solid #E0E4CC;
}

#bass-price-center {
    grid-area: b-price-c;
    text-align: center;
    border-left: 2px solid #E0E4CC;
}

#bass-price-right {
    grid-area: b-price-r;
    text-align: center;
    border-left: 2px solid #E0E4CC;
    border-right: 2px solid #E0E4CC;
}

#bass-features-left {
    grid-area: b-feats-l;
    list-style-type: none;
    border-left: 2px solid #E0E4CC;
}

#bass-features-center {
    grid-area: b-feats-c;
    list-style-type: none;
    border-left: 2px solid #E0E4CC;
}

#bass-features-right {
    grid-area: b-feats-r;
    list-style-type: none;
    border-left: 2px solid #E0E4CC;
    border-right: 2px solid #E0E4CC;
}

#bass-button-left {
    grid-area: b-buttn-l;
}

#bass-button-center {
    grid-area: b-buttn-c;
}

#bass-button-right {
    grid-area: b-buttn-r;
}

button {
    width: 50%;
    margin: auto;
}

footer {
    display: flex;
    height: 100px;
    font-family: 'Open Sans', sans-serif;
    background-color: #F38630;
}

footer p {
    display: inline;
    position: absolute;
    margin-top: 60px;
    right: 9%;
}

#footer-list {
    list-style-type: none;
    margin: 0%;
    margin-right: 10px;
    padding: 20px;
    position: absolute;
    right: 0%;
}

.footer-link {
    display: inline;
    padding: 50px;
}

#footer-p {
    font-size: 12px;
    position: absolute;
    right: 5%;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console