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 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> 

<head lang="en">
    <meta charset="UTF-8">
    <title>BALMUDA The Toast</title>
    <link rel="stylesheet" href="landingpage.css">
    <link href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" rel="stylesheet">
</head>

<header id="header">
        <img id="header-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/BALMUDA_company_logo.svg/320px-BALMUDA_company_logo.svg.png" alt="BALMUDA company logo.svg">
        <nav id="nav-bar">
            <ul>
                <li>
                    <a href="#modes" class="nav-link">Modes</a>
                </li>
                <li>
                    <a href="#features" class="nav-link">Features</a>
                </li>
                <li>
                    <a href="#contact" class="nav-link">Contact</a>
                </li>
            </ul>
        </nav>
    </header>

    <body>
        <section class="top-wrapper"></section>
        <section id="modes">
            <div class="container">
                <h1>Modes</h1>
                <div class="five-modes">
                    <div class="bread-mode">
                        <div class="mode">
                            <h2>Sandwich Bread Mode</h2>
                            <p>Ideal for everyday thin-sliced bread and English muffins.</p>
                        </div>
                    </div>
                    <div class="bread-mode">
                        <div class="mode">
                            <h2>Artisan Bread Mode</h2>
                            <p>If you want to enjoy a crisp and delicious surface, let's try this mode.</p>
                        </div>
                    </div>
                    <div class="bread-mode">
                        <div class="mode">
                            <h2>Pizza Mode</h2>
                            <p>Are there leftover pizza? Use this mode to make them delicious again.</p>
                        </div>
                    </div>
                    <div class="bread-mode">
                        <div class="mode">
                            <h2>Pastry Mode</h2>
                            <p>Heat croissants with this mode. It is so crisp.</p>
                        </div>
                    </div>
                    <div class="bread-mode">
                        <div class="mode">
                            <h2>Oven Mode</h2>
                            <p>This mode is perfect for gratin, cookies or frozen foods.</p>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </section>
        <section id="features">
            <div class="container">
                <h1>Features</h1>
                <div class="video">
                    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/CcCqY5B1Pz8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                </div>
            </div>
        </section>
        <section id="contact">
            <div class="container">
                <h1>Contact</h1>
                <form id="form" action="https://www.freecodecamp.com/email-submit">
                    <div class="form-group">
                        <label for="name">name</label>
                        <input name="name" id="name" type="text" placeholder="please enter your name" required>
                    </div>
                    <div class="form-group">
                        <label for="email">email</label>
                        <input name="email" id="email" type="email" placeholder="please enter your email" required>
                    </div>
                    <input id="submit" type="submit"></input>
                </form>
            </div>
        </section>
        </article>
        <aside>
            <div class="container">
                <ul>
                    <li>
                        <a href="#"><i class="fab fa-twitter fa-2x"></i></a>
                    </li>
                    <li>
                        <a href="#"><i class="fab fa-facebook-f fa-2x"></i></a>
                    </li>
                    <li>
                        <a href="#"><i class="fab fa-instagram fa-2x"></i></a>
                    </li>
                </ul>
            </div>
        </aside>
    </body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Roboto&family=Work+Sans:wght@400&display=swap');

/* reset all css*/

li {
    list-style: none;
}

a {
    text-decoration: none;
}

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


/*set colors*/

:root {
    --color-base: #E6E4DF;
    --color-white: #ffffff;
    --color-gray: #807F7C;
    --color-black: #403F3E;
}


/* set fonts*/

h1 {
    font-family: 'Work Sans', sans-serif;
    margin-bottom: .5em;
}

#modes>.container>h1 {
    margin-top: 1.2em;
}

h2 {
    font-family: 'Work Sans', sans-serif;
    margin-bottom: 0.8em;
}

h3 {
    font-family: 'Roboto', sans-serif;
}

p,
li,
label,
input {
    font-family: 'Roboto', sans-serif;
}


/* global element*/

body {
    background-color: var(--color-white);
}

.container {
    width: 400px;
    padding: 10px;
    margin: 0 auto;
}


/* header */

header {
    background-color: var(--color-white);
    width: 100%;
    position: fixed;
    top: 0;
    min-height: 75px;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.nav-link {
    color: var(--color-black);
    position: relative;
}

.nav-link::after {
    content: "";
    width: 0%;
    height: 1px;
    background-color: var(--color-black);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all .25s linear;
}

.nav-link:hover::after {
    width: 120%;
}

#nav-bar>ul {
    display: flex;
    flex-direction: column;
}

#nav-bar>ul>li {
    font-size: 80%;
    padding: 3px;
}


/*top-wrapper*/

.top-wrapper {
    width: 100%;
    height: 280px;
    background-image: url(https://drive.google.com/uc?export=view&id=1K5-TvqP7NswFgVrZiN8-ghGFjnc4mJnf);
    background-size: cover;
    background-repeat: no-repeat;
}


/*Modes*/

.bread-mode {
    margin-bottom: 1.2em;
}

.mode {
    background-color: var(--color-white);
    opacity: 80%;
    padding: 1.5em 1em 1.5em 1.5em;
    border: solid 1px var(--color-gray);
}


/*Features*/

.video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*contact*/

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 1.2em;
    padding: 3px 0;
}

input {
    font-size: inherit;
    line-height: 2rem;
    border: solid 1px var(--color-gray);
}

#submit {
    width: 30%;
    margin: 1rem 0;
    padding: .2rem;
    background-color: var(--color-white);
    border: solid 1px var(--color-gray);
}

#submit:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transition: .15s;
    border: solid 1px var(--color-black);
}

::placeholder {
    background-color: var(--color-white);
    padding: .5rem;
}


/*aside*/

aside {
    background-color: var(--color-gray);
}

aside>.container {
    width: 50%;
    padding: 1.5em 0;
}

aside>.container>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.fab {
    color: var(--color-white);
}

.fab:hover {
    color: var(--color-base);
    transition: .15s;
}


/*For tablet*/

@media (min-width:600px) {
    .container {
        width: 500px;
        padding: 20px;
    }
    header {
        padding: 10px 20px;
    }
    #nav-bar>ul {
        flex-direction: row;
    }
    #nav-bar>ul>li {
        font-size: 100%;
        padding: 10px;
    }
    .top-wrapper {
        height: 350px;
    }
    .mode>p {
        line-height: 2em;
    }
}


/*For desktop */

@media (min-width:768px) {
    .container {
        width: 700px;
        padding: 20px;
    }
    #nav-bar>ul>li {
        padding: 20px;
    }
    .top-wrapper {
        height: 400px;
    }
    .five-modes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .bread-mode {
        width: 320px;
    }
    #submit {
        width: 20%;
    }
}


/*For larger desktop */

@media (min-width:992px) {
    .container {
        width: 900px;
        padding: 20px;
    }
    header {
        justify-content: space-around;
    }
    #nav-bar>ul>li {
        padding: 20px;
    }
    .top-wrapper {
        height: 600px;
    }
    .bread-mode {
        width: 420px;
    }
    .mode>p {
        font-size: 1.13em;
    }
    input {
        width: 80%;
    }
    .form-group {
        margin-bottom: .8rem;
    }
    #submit {
        padding: .4rem;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console