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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Project 3 - Product</title>
    <link rel="stylesheet" href="skin.css">
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<body>
    <header id="header">
        <nav id="nav-bar">
            <div class="logo">
                <h1><a href="">NEXTLEVEL THEMES</a></h1>
                <img id="header-img" src="https://cdn2.iconfinder.com/data/icons/rounded-set-1/512/Computer-512.png" alt="">
            </div>
            <div class="menu">
                <ul>
                    <li><a class="nav-link" href="#header">Home</a></li>
                    <li><a class="nav-link" href="#video-sec">Demo</a></li>
                    <li><a class="nav-link" href="#price">Pricing</a></li>
                    <li><a class="nav-link" href="#footer">Contact</a></li>
                </ul>
            </div>
        </nav>
    </header>
    <section class="head-main">
        <div class="left-head">
            <div>
                <h1>Best Wordpress theme</h1>
                <p>Competitors will cry after seeing this</p>
            </div>
        </div>
        <div class="right-head">
            <img id="header-img0" src="https://i.imgur.com/pt5ezGP.png" alt="">
        </div>
    </section>  
    <!--Video-->
    <section id="video-sec">
        <h2>Theme demo</h2>
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/NQYJ-M7eCM0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </section>
    <!--Pricing-->
    <section id="price">
        <h2>Pricing</h2>
        <div>
            <div class="card">
                <h3>1-year lisence</h3>
                <p class="price">$49.99</p>
                <ul class="info">
                    <li>24/7 support</li>
                    <li>Responsive</li>
                    <li>Free guide</li>
                </ul>
                <button>Buy Now</button>
            </div>
            <div class="card">
                <h3>2-year lisence</h3>
                <p class="price">$79.99</p>
                <ul class="info">
                    <li>24/7 support</li>
                    <li>Responsive</li>
                    <li>Free guide</li>
                </ul>
                <button>Buy Now</button>
            </div>
            <div class="card">
                <h3>3-year lisence</h3>
                <p class="price">$99.99</p>
                <ul class="info">
                    <li>24/7 support</li>
                    <li>Responsive</li>
                    <li>Free guide</li>
                </ul>
                <button>Buy Now</button>
            </div>
        </div>
    </section>
    <!--Email Form and Credits-->
    <footer id="footer">
        <br><h2>Doubt ? Contact Us</h2>
        <div class="form-sec">
            <form action="https://www.freecodecamp.com/email-submit"  id="form">
                <input type="email" id="email" name="email" placeholder="ENTER YOUR E-MAIL">
                <input type="submit" name="" id="submit">
            </form>
        </div>
        <div class="footer">
            <div class="credits">
                <p>Created by <a href="https://moseschand.com">Moses Chandramouli</a> | 
                    Copyright &copy; <a href="https://moseschand.com">Moses Chandramouli</a>
                </p>
            </div>
            <div class="company">
                <p>NextLevel & Co</p>
            </div>
        </div>
    </footer>
    <!--Smooth scroll JS-->
    <script>
        var scroll = new SmoothScroll('a[href*="#"]', {
            speed: 1000, 
            speedAsDuration: true
        });       
    </script>
</body>
</html>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Baloo+Thambi+2&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'Baloo Thambi 2', cursive;
}
#header{
    height: 10vh;
    position: fixed;
    width: 100vw;
    margin-top: 0;
    margin-left: 0;
    z-index: 2;
}
#nav-bar{
    position: fixed;
    width: 100%;
    height: 10vh;
    display: flex;
    margin-top: 0;
    margin-left: 0;
    background: linear-gradient(60deg, #FF3333, #F50057);
    z-index: 2;
}
.logo{
    width: 50%;
    height: 9vh;
    display: flex;
    align-items: center;
}
.logo img{
    width: 30px;
}
.logo h1 a{
    padding-left: 50px;
    font-size: 30px;
    color: white;
    text-decoration: none;
}
.logo h1:hover{
    cursor: pointer;
}
.menu{
    width: 50%;
    height: 9vh;
}
.menu ul{
    width: 100%;
    height: 9vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.menu ul li{
    list-style: none;
     font-size: 20px;
     font-weight: bold;
     text-transform: uppercase;
}
.menu ul li:hover{
    background-color: #000000;
    cursor: pointer;
}
.menu ul li a{
    color: white;
    text-decoration: none;
}
.head-main{
    display: flex;
    height: 100vh;
    background: linear-gradient(60deg, #FF3333, #F50057);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 80%);
    color: white;
}
.right-head{
    width: 50%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
#header-img0{
    width: 90%;
    max-width: 90%;
    margin-top: 20px;
}
.left-head{
    width: 50%;
    height: 90vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;

}
.left-head h1{
    font-size: 50px;
    font-weight: 900;
    text-transform: uppercase;
}
.left-head p{
    font-size: 25px;
    padding: 20px 0;
    text-transform: uppercase;
}
#video-sec{
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}
#video-sec h2{
    text-transform: uppercase;
    text-align: center;
    font-size: 60px;
    color: #F50057;
    text-decoration: underline;
}
iframe{
    width: 1120;
    height:630;
}
#price{
    width: 100%;
    height: 100vh;
    background: linear-gradient(60deg, #FF3333, #F50057);
    clip-path: polygon(0% 0%, 100% 20%, 100% 100%, 0% 100%);
}
#price{
    color: white;
    text-transform: uppercase;
}
#price h2{
    padding-top: 15vh;
    text-align: center;
    font-size: 60px;
    height: 10vh;
}
#price > div{
    margin-top: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60vh;
}
.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    color: black;
    width: 30vw;
    height: 60vh;
    background: linear-gradient(45deg, );
}
.card h3{
    margin-top: 2vh;
    font-size: 40px;
}
.card p{
    font-size: 30px;
    color: rgb(60, 0, 0);
    font-weight: 500;
}
.card ul li{
    list-style: none;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}
.card button{
    width: 100%;
    height: 20%;
    text-transform: uppercase;
    font-size: 20px;
    color: white;
    background: linear-gradient(to right, #101010 , #000000);
}
.card button:hover{
    background: linear-gradient(to right, #000000, #101010);
    cursor: pointer;
}
#footer{
    height: 100vh;
}
#footer > h2{
    height: 10vh;
    text-transform: uppercase;
    text-align: center;
    font-size: 50px;
    color: #F50057;
    text-decoration: underline;
}
.form-sec{
    width: 100%;
    height: 80vh;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
form{
    border-style: solid;
    border-color: #F50057;
    width: 70vw;
    height: 40vh;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
#email{
    width: 35vw;
    height: 10vh;
    border-style: solid;
    border-color: #F50057;
    text-align: center;
    margin-right: 20px;
}
#submit{
    width: 14vw;
    height: 10vh;
    border-style: solid;
    border-color: #F50057;
    text-align: center;
}
#submit:hover{
    background: linear-gradient(60deg, #FF3333, #F50057);
    cursor: pointer;
}
.footer{
    width: 100%;
    height: 10vh;
    background: linear-gradient(60deg, #FF3333, #F50057);
    display: flex;
    justify-content: space-around;
    color: white;
    font-size: 20px;
    font-weight: 500;
}
.footer a{
    color: wheat;
    text-decoration: none;
}
.credits{
    flex-basis: 60%;
    display: flex;
    align-items: center;
}
.company{
    flex-basis: 30%;
    display: flex;
    align-items: center;
}
@media only screen and (max-width: 925px){
    .card h3{
        margin-top: 2vh;
        font-size: 35px;
    }
    .card p{
        font-size: 25px;
        color: rgb(60, 0, 0);
        font-weight: 500;
    }
    .card ul li{
        list-style: none;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
    }
    .card button{
        width: 100%;
        height: 20%;
        text-transform: uppercase;
        font-size: 15px;
        color: white;
        background: linear-gradient(to right, #101010 , #000000);
    }
}
@media only screen and (max-width: 815px){
    .logo h1 a{
        padding-left: 50px;
        font-size: 10px;
        color: white;
        text-decoration: none;
    }
    .left-head h1{
        font-size: 30px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .card h3{
        margin-top: 2vh;
        font-size: 25px;
    }
    .card p{
        font-size: 25px;
        color: rgb(60, 0, 0);
        font-weight: 500;
    }
    .card ul li{
        list-style: none;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
    }
    .card button{
        width: 100%;
        height: 20%;
        text-transform: uppercase;
        font-size: 10px;
        color: white;
        background: linear-gradient(to right, #101010 , #000000);
    }
    .logo h1 a{
        padding-left: 50px;
        font-size: 20px;
        color: white;
        text-decoration: none;
    }
}
@media only screen and (max-width: 600px){
    iframe{
        width: 1120;
        height:630;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console