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>

<!DOCTYPE html>
<html>
    <head>
        <title>Page Title</title>
        <!-- Google Fonts -->
        <link href="https://fonts.googleapis.com/css?family=Cormorant+Garamond" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">
        <!-- Font Awesome icons database -->
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
    </head>
    <body>
        <!-- start HEADER -->
        <header id="header">
            <!-- logo & name -->
            <div id="header-left">
                <img id="header-img" src="https://image.flaticon.com/icons/svg/242/242336.svg">
                <h1 id="title">kwɪlt</h1>
            </div>
            <!-- nav -->
            <nav id="nav-bar">
                <div id="nav-dropdown">
                    <button id="nav-button">
                        <i class="fas fa-bars nav-icon"></i>
                    </button>
                    <div id="dropdown-content">
                        <ul id="dropdown-links">
                            <a href="#section1" class="nav-link">What is kwɪlt?</a>
                            <a href="#section2" class="nav-link">How it works</a>
                            <a href="#section3" class="nav-link">Spotlight</a>
                            <a href="#section4" class="nav-link">Newsletter</a>
                    </div>
                </div>
            </nav>    
        </header>
        <!-- end HEADER -->
        
        <!-- start MAIN CONTENT -->
        <main>
            <!-- What is kwɪlt? [section 1]-->
            <section class="section-containers" id="top-section">
                <a name="section1"> <h2 class="section-title">What is kwɪlt?</h2> </a>
                <p id="intro">Everything you need to make your next quilt in ONE BOX. </p>
                <div id="wik-grid">
                    <img class="wik-img" src="https://image.flaticon.com/icons/svg/831/831700.svg" alt="guide">
                    <img class="wik-img" src="https://image.flaticon.com/icons/svg/532/532048.svg" alt="fabrics">
                    <p class="wik-info">PROJECT GUIDE <br />incl. <br /> step by step instructions, <br /> tips and tricks</p>
                    <p class="wik-info">MATERIALS <br />incl. <br />fabrics, <br /> thread, <br /> batting </p>
                </div>
            </section>
            <!-- How it works [section 2] -->
            <a name="section2"></a>
            <section class="section-containers">
                 <h2 class="section-title">How it works</h2> 
                <div class="features">
                    <img src="https://image.flaticon.com/icons/svg/1039/1039362.svg" class="hiw-img-left">
                    <h3 class="hiw-title-right">Select your skill level.</h3>
                    
                </div>
                <div class="features">
                    <h3 class="hiw-title-left">Choose a color scheme.</h3>
                    <img src="https://image.flaticon.com/icons/svg/189/18909.svg" class="hiw-img-right">
                </div>
            </section>
            <section class="section-containers">
                <a name="section3"> <h3 class="section-title">Spotlight</h3> </a>
                <iframe  src="https://www.youtube.com/embed/PFmIDDYJhIM" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen id="video"></iframe>           
            </section>
            <!-- Newsletter [section 4] -->
            <section id="form-section">
                <a name="section4"> <h2 class="section-title">Newsletter</h2> </a>
                <p class="form-info">Want to keep up to date with our latest news and information?</p>
                <p class="form-info" id="extra-padding-bottom">Fill in your email address below to sign up to our monthly newsletter. </p>
                <form id="form">
                    <label for="email" id="email-label"> <input type="email" id="email" placeholder="Enter your email address."> </label>
                    <div id="form-button">
                        <button type="submit" id="submit">Sign up</button>
                    </div>
                </form>
            </section>
        </main>
        <!-- end MAIN CONTENT -->
        
    </body>
</html>

              
            
!

CSS

              
                body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #DFDBB2;
}

/* -- HEADER -- */
#header {
    height: 4em;
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
}
#header-left {
    display: flex;
}
#header-img {
    height: 2.25em;
    transform: rotate(45deg);
    margin-left: 0.75em;
    margin-top: 0.8em;
}
#title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 3.5em;
    color: #249189;
    margin-top: 0;
    margin-left: 0.25em;
    display: flex;
    flex-direction: column;
}
#nav-bar {
    overflow: hidden;
    background-color: #000000;
    font-family: 'Cormorant Garamond', sans-serif;
}
#nav-dropdown {
    float: left;
    overflow: hidden;
}
#nav-button {
    height: 4.75em;
    width: 4.75em;
    background-color: #000000;
    border: 1px solid black;
}
.nav-icon {
    font-size: 2.25em;
    color: #D6374C;
}
#dropdown-content {
    display: none;
    position: absolute;
    background-color: #000000;
    width: 100%;
    left:0;
    text-align: center;
    z-index: 1;
}
.nav-link {
    float: none;
    color: #D6374C;
    font-size: 1.75em;
    text-decoration: none;
    display: block;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
}
#dropdown-content a:hover {
    background-color: grey;
}
#nav-dropdown:hover #dropdown-content {
    display: block;
    width: 100%;
}

/* MAIN CONTENT */
.section-containers {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    background-color: #d8d3a0;
    border: 3px outset #D0CA8E;
    box-shadow: 0.25em 0.25em 1em grey;
}
#top-section {
    margin-top: 5em;
}
.section-title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 2.25em;
    text-align: center;
}
#intro {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.15em;
    font-style: italic;
    text-align: center;
    line-height: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 2em;
}
#wik-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    justify-items: center;
}
.wik-img {
    width: 3.5em;
    height: auto;
    display: block;
    border: 2px solid #249189;
    border-radius: 50%;
    background-color: #249189;
}
.wik-info {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.15em;
    font-variant: small-caps;
    text-align: center;
}
.features {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}
.hiw-img-left {
    height: 3.25em;
    width: auto;
    display: block;
    margin-left: 1.5em;
}
.hiw-title-right {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.1em;
    font-style: italic ;
    margin-left: 1em;
}
.hiw-title-left {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.1em;
    font-style: italic ;
    margin-left: 1.5em;
}
.hiw-img-right {
    width: 3.25em;
    height: auto;
    display: block;
    margin-left: 1.5em;
}
#video {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}
#form-section {
    width: 95%;
    margin: auto;
    padding: auto;
}
.form-info {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1em;
    text-align: center;
    line-height: 1.25em;
    margin-left: 1.5em;
    margin-right: 1.5em
}
#extra-padding-bottom {
    padding-bottom: 1.5em;
    
}
#email-label {
    text-align: center;    /* centers input field */
}
#email {
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.875em;
    width: 17em;
    height: 2em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    
}
#form-button {
    text-align: center;
}
#submit {
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    font-weight: bold;
    background-color: #AAAA67;
    border: 1px solid #AAAA67;
    border-radius: 5px;
    width: 7em;
    height: 2.5em;
    margin-bottom: 2em;
}


              
            
!

JS

              
                

              
            
!
999px

Console