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>


    <div id="page-wrapper">
        <header id="header">
            <div class="logo">
                <img id="header-img" src="https://github.com/doger83/ProductLandingPage/blob/master/docs/img/logo.png?raw=true" alt="original trombones logo" />
            </div>

            <nav id="nav-bar">
                <ul>
                    <li><a class="nav-link" href="#hero">Home</a></li>
                    <li><a class="nav-link" href="#features">About</a></li>
                    <li><a class="nav-link" href="#how-it-works">Works</a></li>
                    <li><a class="nav-link" href="#pricing">Buy It</a></li>
                </ul>
            </nav>
        </header>





        <div class="container">
            <section id="hero">

                <h2>Handcrafted, home-made masterpieces</h2>
                <form id="form" action="https://www.freecodecamp.com/email-submit">
                    <input name="email" id="email" type="email" placeholder="Enter your email address" required />
                    <input id="submit" type="submit" value="Get Started" class="btn" />
                </form>
            </section>
            <section id="features">
                <div class="grid">
                    <div class="icon"><i class="fa fa-3x fa-fire"></i></div>
                    <div class="desc">
                        <h2>The NEON Effect</h2>
                        <p>
                            My canvases are made with GLOW IN THE DARK EFFEK. The intense luminosity of the color
                            becomes apparent after charging under a direct light source - the self-luminous effect color
                            becomes even more brilliant with the help of UV light
                        </p>
                      <p>
                            Lorem ipsum, dolor sit amet consectetur adipisicing elit. Provident deleniti unde quas?
                            Iste, ad modi. Repellendus dolorem totam quam, nam molestiae earum illo expedita pariatur
                            officia quas ex architecto, omnis consequatur cumque optio doloremque impedit dolor ipsa
                            libero tenetur! Corporis eveniet tempore dolor commodi modi accusamus provident rerum
                            recusandae quis.
                        </p>
                    </div>
                </div>
                <div class="grid">
                    <div class="icon"><i class="fa fa-3x fa-truck"></i></div>
                    <div class="desc">
                        <h2>Fast Shipping</h2>
                        <p>
                            We make sure you recieve your order as soon as we have finished
                            making it. We also provide free returns if you are not satisfied.
                        </p>
                      <p>
                            Lorem ipsum, dolor sit amet consectetur adipisicing elit. Provident deleniti unde quas?
                            Iste, ad modi. Repellendus dolorem totam quam, nam molestiae earum illo expedita pariatur
                            officia quas ex architecto, omnis consequatur cumque optio doloremque impedit dolor ipsa
                            libero tenetur! Corporis eveniet tempore dolor commodi modi accusamus provident rerum
                            recusandae quis.
                        </p>
                    </div>
                </div>
                <div class="grid">
                    <div class="icon">
                        <i class="fa fa-3x fa-battery-full" aria-hidden="true"></i>
                    </div>
                    <div class="desc">
                        <h2>Quality Assurance</h2>
                        <p>
                            For every purchase you make, we will ensure there are no damages or
                            faults.
                        </p>
                      <p>
                            Lorem ipsum, dolor sit amet consectetur adipisicing elit. Provident deleniti unde quas?
                            Iste, ad modi. Repellendus dolorem totam quam, nam molestiae earum illo expedita pariatur
                            officia quas ex architecto, omnis consequatur cumque optio doloremque impedit dolor ipsa
                            libero tenetur! Corporis eveniet tempore dolor commodi modi accusamus provident rerum
                            recusandae quis.
                        </p>
                    </div>
                </div>
            </section>
            <section id="how-it-works">
                <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/o0Sb25h1kQc" frameborder="0"
                    allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
                    allowfullscreen></iframe>
            </section>
            <section id="pricing">
                <div class="product" id="work1">
                    <div class="level">Canvas daylight</div>

                    <h2>$600</h2>
                    <img src="https://github.com/doger83/ProductLandingPage/blob/master/docs/img/works/work1.jpg?raw=true" class="img-responsive img-thumbnail" alt="">
                    <ol>
                        <li>Lorem ipsum dolor.</li>
                    </ol>
                    <button class="btn">Select</button>
                </div>
                <div class="product" id="work2">
                    <div class="level">Canvas NEON-light</div>

                    <h2>$600</h2>
                    <img src="https://github.com/doger83/ProductLandingPage/blob/master/docs/img/works/work2.jpg?raw=true" class="img-responsive img-thumbnail" alt="">
                    <ol>
                        <li>Lorem ipsum dolor.</li>
                    </ol>
                    <button class="btn">Select</button>
                </div>
                <div class="product" id="work3">
                    <div class="level">Sculptures</div>

                    <h2>$1200</h2>
                    <img src="https://github.com/doger83/ProductLandingPage/blob/master/docs/img/works/work3.jpg?raw=true" class="img-responsive img-thumbnail" alt="">
                    <ol>
                        <li>Lorem ipsum dolor.</li>
                    </ol>
                    <button class="btn">Select</button>
                </div>
            </section>
            <footer>
                <ul>
                    <li><a href="#">Privacy</a></li>
                    <li><a href="#">Terms</a></li>
                    <li><a href="#">Contact</a></li>
                </ul>
                <span>&copy; Copyright 2020, Dominic Gerweck</span>
            </footer>
        </div>
    </div>
              
            
!

CSS

              
                @import "https://fonts.googleapis.com/css?family=Lato:400,700";
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css";
:root{
  --main-bg-color: #770456;
}


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

body {
  background-color: var(--main-bg-color);


  font-family: "Lato", sans-serif;
}

#page-wrapper {
  position: relative;

}

li {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
}

/** global classes styling **/

.container {
  // max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 250px;
  background-color:var(--main-bg-color);
}

.btn {
  padding: 0 20px;
  height: 40px;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  border: 3px black solid;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.grid {
  display: flex;
}

header {
  position: sticky;
  top: 0;
  // min-height: 50px;
  padding: 0px 250px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--main-bg-color);

}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
}



.logo {
  width: auto;

}

@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
}

.logo > img {
  // width: 85%;
  // height: 85%;
  max-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  // margin: 20px;
  padding: 15PX;
  border-radius: 20px;
}

@media (max-width: 650px) {
  .logo > img {
    margin: 0 auto;
  }
}

nav {
  font-weight: 400;

}

.nav-link{
  color: #fff;
  font-size: 1.5rem;
}
.nav-link:hover{
  color: #42C534;
}

@media (max-width: 650px) {
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 25px;
  }
  nav li {
    padding-bottom: 5px;

  }
}

nav > ul {
  width: 35vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  color: #fff;
}

@media (max-width: 650px) {
  nav > ul {
    flex-direction: column;
  }
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  

  // margin-top: 50px;
  padding: 0 50px;
  background-image: url(https://github.com/doger83/ProductLandingPage/blob/master/docs/img/background.png?raw=true);
  height: 90vh; /* You must set a specified height */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

#hero > h2 {
  // margin-bottom: 20px;
  // word-wrap: break-word;

  font: 45px/1.1em "opensans-bold", sans-serif;
  color: #fff;
  letter-spacing: -2px;
  margin: 0 auto 18px auto;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
}

#hero input[type="email"] {
  max-width: 275px;
  width: 100%;
  padding: 5px;
}

#hero input[type="submit"] {
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #CB0994;
  color: #fff;
}

#hero input[type="submit"]:hover {
  background-color: #770456;
  transition: background-color 1s;

}

@media (max-width: 650px) {
  #hero {
    // margin-top: 120px;
  }
}

#features {
  margin-top: 30px;
  background-color: #8D0D89;
  color: #42C534;
  
}

#features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  width: 20vw;
  color: #42C534;

}

@media (max-width: 550px) {
  #features .icon {
    display: none;
  }
}

#features .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 125px;
  width: 80vw;
  padding: 5px;
}

@media (max-width: 550px) {
  #features .desc {
    width: 100%;
    text-align: center;
    padding: 0;
    height: 150px;
  }
}

@media (max-width: 650px) {
  #features {
    margin-top: 0;
  }
}

#how-it-works {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#how-it-works > iframe {
  max-width: 560px;
  width: 100%;
}

#pricing {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100% / 3);
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
  background-color: #8D0D89;
  
}

.product > .level {
  background-color: #42C534;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
}

.product > h2 {
  margin-top: 15px;
  color: #42C534;
}

.product > ol {
  margin: 15px 0;
  color: #42C534;
}

.product > ol > li {
  padding: 5px 0;
}

.product > button {
  border: 0;
  margin: 15px 0;
  background-color: #42C534;
  font-weight: 400;
}

.product > button:hover {
  background-color: #dfff00;
  transition: background-color 1s;
}

@media (max-width: 800px) {
  #pricing {
    flex-direction: column;
  }
  .product {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}
// .product img {
//   width: 150px;
// }

footer {
  margin-top: 30px;
  background-color: #770456;
  color: #42C534;
  
  padding: 20px;
}
footer a {
  color: #42C534;
}

footer > ul {
  display: flex;
  justify-content: flex-end;
  color: #42C534;
}

footer > ul > li {
  padding: 0 10px;
  color: #42C534;
}

footer > span {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
  color: #dfff00;
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console