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 lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/css/style.css">
    <title>Wizard's Bookstore</title>
</head>
<body>
  
    <header id="header">
        <nav id="nav-bar">
           <section id="home">
            <div class="container">
                <a href="#home"><img id="header-img" src="https://www.mistral-bus.com/wp-content/uploads/2018/09/cropped-mistral-logo.png" alt="logo"  </a>

                  <ul class="nav">
           <li><a href="#home" class="nav-link">Home</a></li>
           <li><a href="#stock" class="nav-link">Stock</a></li>
           <li><a href="#about" class="nav-link">About</a></li>
           <li><a href="#subscribe" class="nav-link">Subscribe</a></li>
           <li><a href="#contact" class="nav-link">Contact</a></li>
        </ul>
         </div>
         </section>
        </nav>
    </header>
     <section id="subscribe">
        <div class="homie">
        <form action="post" action="https://www.freecodecamp.com/email-submit" id="form">
        <h1>Subscribe to our news letter</h1>
        <input type="email" placeholder="enter your email adress" name="email" id="email" required>
        <br>
        <input type="submit" id="submit" value="submit">
    </form>
</div>
</section>
 
<section id="stock">
       <div class="stock">
        <i class="fas fa-shopping-cart"></i>    
            <h2>we're always on stock</h2>
           <p>Lorem ipsum dolor sit amet consectetur hjhjhvj ugg adipisicing elit.  iusto ipsam. Atque.</p>
       </div>
       <div class="stock">
        <i class="fas fa-globe"></i>
           <h2>find us everywhere</h2>
           <p>Lorem ipsum dolor sittia dignissimos repellendus repellat sit consequuntur quod dolorem molestias deserunt reprehenderit magnam architecto facere, dolore, eos cum, velit quaerat?</p>
       </div>
       <div class="stock">
        <i class="fas fa-envelope-open"></i>
         <h2>if in doubt contact us</h2>
           <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. id debitis saepe at?</p>
       </div>
 </section>
<section id="about">
     <h2>About Us</h2>
     <div class="containerV">
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/xI0TQvLFgzU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
        </iframe>
     </div>
 </section>
      
      

    <footer id="contact">
        <p>Made by Eslem Ouederni</p>
        
        <p>CopyRight 2020, HooHoo</p>
    </footer>
</body>
</html>
              
            
!

CSS

              
                *{
    box-sizing: border-box;
    margin: 0;    
}
body{
    font-family:'Oswald', sans-serif;
    line-height: 1.6;

}
img{
    width: 100px;
}
section h2{
    text-align: center;
    text-transform: uppercase;
    margin-top: 30px;
}
header{
    max-width: 100%;
    height: 80%;   
}
ul{
    list-style-type: none;
}
.container{
    background-color: rgb(247, 200, 100);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;

}
.containerV{
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
#nav-bar{
    z-index: 2;
    overflow: hidden;
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0;
}
#nav-bar .container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20rem;
}
#nav-bar ul{
    justify-self: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.nav-link{
    color: black;
    font-size: 23px;
    margin: 0 20px;
}
a{
    text-decoration: none;
}
/* stock */
.stock i{
    color: rgb(247, 200, 100);
      font-size: 25px;
  }

.stock{
    width: 50% ;
    margin: 50px auto 0 auto;
    padding: 10px;
    box-shadow: 3px 5px 10px rgb(189, 189, 189);
    border-radius: 8px;
    display: flex;
    flex-direction: column; 
    text-align: center;
}
.stock h2{
    text-transform: capitalize;
    margin-bottom: 10px;
    margin-top: 5px;
    
}
.stock p{
    font-size: 18px;
    line-height: 22px;
    text-align: center;
}
/* subscribe */
#subscribe{
    margin-top: 130px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 500px;
   
}
#email{
    width: 350px;
    font-size: 25px;
    border: 1px solid rgb(167, 131, 55);
    border-radius: 3px;
    margin-top: 10px;
}

#submit{
    width: 150px;
    font-size: 20px;
    margin-top: 8px;
    margin-bottom: 50px;
    background-color: rgb(236, 166, 14);
    color: white;
    outline: none;
    border: none;
    border-radius: 2px;
    box-shadow: 2px 2px rgb(109, 109, 109);
    position: relative;
    transition: all 0.05s ease;
    z-index: 1;
}
#submit:active{
    box-shadow: 0 0 rgb(95, 91, 84);
    transform: translate(2px, 2px);
}
::placeholder{
    font-size: 20px;
    color: gray;
}

/* Footer */
footer{
    width:100%;
    background-color: rgb(247, 217, 152);
    margin: 20px auto 0 auto;
    padding: 10px;
    font-size: 17px;
    text-align: center;
}
@media (max-width: 480px){
    .nav-link{
        font-size: 12px;
    }
    #header-img{
        width: 50px;
    }
    .homie{
        text-align: center;
    }
    .video{
        margin-right:auto ;
        margin-left: auto;
    }
 
}
              
            
!

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