Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
    <title>Beginner Challenge</title>
    <link rel="stylesheet" type="text/css" href="layout.css">
    <link rel="shortcut icon" href="https://www.dropbox.com/s/oc1s54wasp54ud5/favicon-32x32.png?raw=1" type="image/png">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
    <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
    <div id="main">
        <header>
            <img src = "https://www.dropbox.com/s/rn0mvg7imza1a22/logo.svg?raw=1" alt = "Challenge Logo">
            <a href = "#">Try It Free</a>
        </header>
        <main>
            <div id="intro">
                <h1 class="headings">Build The Community Your Fans Will Love</h1>
                <p>Huddle re-imagines the way we build communities. You have a
                voice, but so does your audience. Create connections with your users as you engage in genuine discussion.</p>
                <a href = "#" class="get-started-button">Get Started For Free</a>
        </div>
        <div id="image">
            <img src="https://www.dropbox.com/s/e7zadg04zqjzx64/illustration-mockups.svg?raw=1" alt="mockup Image"
            class="jumbotron">
        </div>
        </main>
    </div>
    <div id="section-tile">
        <div class="tile right">
            <div class="right">
                <img src="https://www.dropbox.com/s/hhi6cudoioyaiw3/illustration-grow-together.svg?raw=1" alt="Growing Image">
            </div>
            <div class="tile-text">
                <h3 class="headings">Grow Together</h3>
                <p>Generate meaningful discussions with your
                audience and build a strong, loyal community.
                Think of the insightful conversations you miss out on with a feedback form.</p>
            </div>
        </div>
        <div class="tile">
            <div class="tile-image">
                <img src="https://www.dropbox.com/s/a453gm0f6r0c7sh/illustration-flowing-conversation.svg?raw=1" alt="Conversation Image">
            </div>
            <div class="tile-text">
                <h3 class="headings">Flowing Conversations</h3>
                <p>you wouldn't paginate a conversation in real life,
                so why do it online? Our threads have just-in-time
                loading for a more natural flow.</p>
            </div>
        </div>
        <div class="tile right">
            <div>
                <img src="https://www.dropbox.com/s/j0j1shvt6qlj695/illustration-your-users.svg?raw=1" alt="Your Users">
            </div>
            <div class="tile-text">
                <h3 class="headings">Your Users</h3>
                <p>It takes no time at all to integrate Huddle
                with your app's authentication solution. This
                means, once signed in to your app, your users can start chatting immediately.</p>
            </div>
        </div>
    </div>
    <div id="get-started">
        <h3 class="headings">Ready To Build Your Community?</h3>
        <a href="#" class="get-started-button">Get Started For Free</a>
    </div>
    <footer>
        <img src="https://www.dropbox.com/s/iic2hhrmwg0yv9z/logo.png?raw=1" alt="Logo">
        <div id="container-footer">
            <div id="contact">
                <p><i class="fas fa-map-marker-alt"></i>Lorem ipsum dolor sit amet,
                    consectetur adipiscing elit, sed do
                    eiusmod tempor incididunt ut labore et dolore magna aliqua</p>
                <p><i class="fas fa-phone-volume"></i>+1-543-123-4567</p>
                <p><i class="fas fa-envelope-open-text" ></i> example@fylo.com</p>
            </div>
            <div id="nav">
                <ul>
                    <div class="link-section">
                        <li><a href="#" class="link-item">About Us</a></li>
                        <li><a href="#" class="link-item">What We Do</a></li>
                        <li><a href="#" class="link-item">FAQ</a></li>
                    </div>
                    <div class="link-section">
                        <li><a href="#" class="link-item">Career</a></li>
                        <li><a href="#" class="link-item">Blog</a></li>
                        <li><a href="#" class="link-item">Contact Us</a></li>
                    </div>
                </ul>
            </div>
            <div id="social">
                <a href="#"><i class="fab fa-facebook-f"></i></a>
                <a href="#"><i class="fab fa-twitter"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
            </div>
        </div>
        <p id="copyright">&copy; Copyright 2019 Huddle. All rights reserved</p>
    </footer>
</body>
</html>

              
            
!

CSS

              
                html, body {
        margin: 0;
        padding: 0;
        font-size: 18px;
        font-family: 'Open Sans', sans-serif;
        font-weight: 400, 700;
    }
.headings{
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }

header a{
    float: right;
    margin-right: 30px;
    padding: 3px 25px 3px 25px;
    border-radius: 25px;
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: black;
    background-color: white;
    text-align: center;
}

header{
        padding-top: 20px;
        padding-left: 10px;
    }

#main{
    background: url('https://www.dropbox.com/s/2gj8gnm0e8z283b/bg-hero-desktop.svg?raw=1');
    background-color: #EAF9FE;
}
main{
    display: flex;
    padding-bottom: 50px;
    padding-top: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.jumbotron{
    width: 95%;
}

.get-started-button{
        padding: 10px 60px 10px 60px;
        border-radius: 25px;
        background-color: #FD50BF;
        text-decoration: none;
        color: white;
        box-shadow: 1px 1px 10px 0px rgba(0,0,0,0.2);
        }

#section-tile{
        margin-top: 75px;
        text-align: center;
    }

.tile{
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 1px 1px 10px 0px rgba(0,0,0,0.2);
    border-radius: 25px;
    margin: 0 100px 50px 100px;
    padding-bottom: 30px;
    height: 400px;
}

.tile img{
    width: 300px;
}

.tile-text{
    text-align: left;
    margin-left: 20px;
    margin-right: 100px;
    color: gray;
}

.right{
    flex-direction: row-reverse;
}

#get-started{
        text-align: center;
        width: 500px;
        height: 100px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 5px 50px 5px;
        border: 1px solid transparent;
        border-radius: 20px;
        box-shadow: 1px 1px 10px 0px rgba(0,0,0,0.2);
        background-color: #fff;
        position: relative;
    }

footer{
    background-color: #002D38;
    color: white;
    padding-top: 100px;
    margin-top: -75px;
    margin-bottom: -30px;
    padding-left: 20px;
    padding: 100px 20px 50px 20px;

}

#container-footer{
    display: flex;
    align-content: center;
}

footer img{
    width: 200px;
    padding-top: 50px;
}

footer i{
        margin-right: 20px;
    }

#nav ul{
    list-style: none;
}

.link-item{
    text-decoration: none;
    color: white;
    }

#nav ul{
    display: flex;
    align-content: center;
}

.link-section{
    margin-right: 50px;
}

#social{
    display: flex;
    flex-direction: row;
    text-align: center;
}

#social a{
    color: white;
    text-decoration: none;
}

#social i{
    padding: 5px 10px 5px 10px;
    border: 1px solid white;
    border-radius: 50%;
}
#copyright{
    float: right;
}
@media only screen and (max-width: 800px){
    header img{
        width: 125px;
        padding-left: 30px;
     }

    #main{
        background: url('https://www.dropbox.com/s/ft1a2ikvkmrqe3j/bg-hero-mobile.svg?raw=1');
        background-color: #EAF9FE;
    }



    main{
        text-align: center;
        margin-top: 115px;
        margin-left: 40px;
        margin-right: 40px;
        flex-direction: column;
    }

    .jumbotron{
        width: 400px;
        margin-top: 50px;
        margin-bottom: 35px;
    }

    .tile{
        flex-direction: column;
        height: 450px;
        width: 400px;
        min-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    .right{
        flex-direction: column;
    }
    .tile img{
        width: 200px;
        margin-top: 50px;
    }

    .tile .headings{
        margin-top: 50px;
    }

    .tile-text{
        color: grey;
        font-size: 16px;
        margin-right: 20px;
        margin-left: 20px;
        text-align: center;
    }

    #container-footer{
        flex-direction: column;
    }

    #nav ul{
        margin-left: -40px;
        flex-direction: column;
    }

    nav li{
        padding-bottom: 20px;
    }

    }

    #copyright{
        text-align: center;
        font-size: 12px;
        float: left;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console