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

              
                <header id="header">
  <nav class="navbar navbar-expand-lg navbar-light" id="nav-bar">
  <div class="container-fluid">
    <a class="navbar-brand" href="#"><img src="https://1000logos.net/wp-content/uploads/2016/10/Canon-Logo.png" alt="pic" id="header-img" width="140"></a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav me-auto mb-2 mb-lg-0">
        <li class="nav-item">
          <a href="#Home" class="nav-link active">Home</a>
        </li>
        <li class="nav-item">
          <a href="#Features" class="nav-link">Features</a>
        </li>
        <li class="nav-item">
          <a href="#Pictures" class="nav-link">Pictures</a>
        </li>
        <li class="nav-item">
          <a href="#Contact" class="nav-link">Contact</a>
        </li>
        <li class="nav-item">
        <a href="#About" class="nav-link">About</a>
          </li>
      </ul>
        <button class="btn btn-danger">Buy Now</button>
    </div>
  </div>
</nav>
</header>

<section id="Home">
  <h1 class="pt-4">The Merrorless Camera EOS R5</h1>
  <h5 class="pb-4">High Image Quality For Your Next Shots</h5>
  
  <iframe id="video" width="700" height="450"
src="https://www.youtube.com/embed/ZkGmqj7nWsA">
</iframe>
</section>
<section id="Features" class="container-fluid">
  <div class="row row-cols-1 row-cols-md-3 g-4 p-4">
  <div class="col">
    <div class="card">
      <img src="https://www.usa.canon.com/internet/wcm/connect/us/41d179e7-7442-458f-b28c-0c3869d6701c/icon_45_megapixels_104x54.gif?MOD=AJPERES" class="card-img-top" alt="">
      <div class="card-body">
        <h5 class="card-title">
          High Image Quality
        </h5>
        <p class="card-text">
          The EOS R5 camera features an entirely new Canon-developed CMOS sensor with approx. 45 effective megapixels. It employs the DIGIC X Image Processor to enhance the speed of operations...
        </p>
      </div>
      <div class="card-footer">
        <button class="btn btn-danger">Learn more</button>
      </div>
    </div>
  </div>
  <div class="col">
    <div class="card">
      <img src="https://www.usa.canon.com/internet/wcm/connect/us/f8121f90-9fd9-4b05-970e-0695e0643383/icon_DIGIC_X_104x54.gif?MOD=AJPERES" class="card-img-top" alt="">
      <div class="card-body">
        <h5 class="card-title">
          DIGIC X Image Processor
        </h5>
        <p class="card-text">
          The EOS R5 camera is the first Canon EOS camera – in the Mirrorless series camera line — to feature a powerful DIGIC X Image Processor, which helps to enhance fine detail in your image.
        </p>
      </div>
      <div class="card-footer">
        <button class="btn btn-danger">Learn more</button>
      </div>
    </div>
  </div>
  <div class="col">
    <div class="card">
      <img src="https://www.usa.canon.com/internet/wcm/connect/us/0c6065d9-fa90-4c47-b2b6-40560e78be04/icon_dual_pixel_cmos_afII_104x54.gif?MOD=AJPERES" class="card-img-top" alt="">
      <div class="card-body">
        <h5 class="card-title">
          High-speed Focusing
        </h5>
        <p class="card-text">
          The EOS R5 camera’s highly responsive Dual Pixel CMOS AF system features an incredible 1,053 Automatic AF zones that can be designated as auto-focus focal points...
        </p>
      </div>
      <div class="card-footer">
        <button class="btn btn-danger">Learn more</button>
      </div>
    </div>
  </div>
    <div class="col">
    <div class="card">
      <img src="https://www.usa.canon.com/internet/wcm/connect/us/451546ce-b468-4a5d-ba03-904724ef0b28/icon_12fps_104x54.gif?MOD=AJPERES" class="card-img-top" alt="">
      <div class="card-body">
        <h5 class="card-title">
          Up to 12 fps
        </h5>
        <p class="card-text">
          Delivering incredible performance at speeds of up to 12 fps, the EOS R5camera can capture the split-second details between a subject’s movements.This is ideal for dynamic action...
        </p>
      </div>
      <div class="card-footer">
        <button class="btn btn-danger">Learn more</button>
      </div>
    </div>
  </div>
    <div class="col">
    <div class="card">
      <img src="https://www.usa.canon.com/internet/wcm/connect/us/7144d4bc-8b7f-43b4-a036-2659f6268236/icon_20fps_electronic_shutter_104x54.gif?MOD=AJPERES" class="card-img-top" alt="">
      <div class="card-body">
        <h5 class="card-title">
          Up to 20 fps Electronic
        </h5>
        <p class="card-text">
          Especially helpful for wildlife photography, journalism and situations where photographers needto remain discrete, the EOS R5 camera features a selectable electronic...
        </p>
      </div>
      <div class="card-footer">
       <button class="btn btn-danger">Learn more</button>
      </div>
    </div>
  </div>
</div>
</section>
<section  id="Pictures">
   <div class="container-fluid p-4" id="galery">
     <img src="https://picsum.photos/id/1077/250" alt="Maico Amorim">
     <img src="https://picsum.photos/id/1048/250" alt="Anthony DELANOIX">
     <img src="https://picsum.photos/id/1062/250" alt="Karl Fredrickson">
     <img src="https://picsum.photos/id/111/250" alt="Gabe Rodriguez">
     <img src="https://picsum.photos/id/129/250" alt="Charlie Foster">
     <img src="https://picsum.photos/id/152/250" alt="Steven Spassov">
     <img src="https://picsum.photos/id/190/250" alt="">
     <img src="https://picsum.photos/id/280/250" alt="">
   </div>
</section>
<section id="Contact">
  <div class="form-header p-4">
    <h1>Contact Us</h1>
    <p>Leave your message and we'll get back to you shortly.</p>
    <i class="fa fa-envelope"></i>
  </div>
  <div class="form-body p-4">
    <form action="https://www.freecodecamp.com/email-submit" id="form">
    <div class="form-group">
  <label for="name" class="form-label">Fullname*</label>
  <input type="name" class="form-control" id="name" placeholder="Your full name" required>
</div>
    <div class="form-group">
  <label for="email" class="form-label">Email address*</label>
  <input type="email" class="form-control" id="email" name="email" placeholder="name@example.com" required>
</div>
<div class="form-group">
  <label for="message" class="form-label">Message*</label>
  <textarea class="form-control" id="message" rows="4" placeholder="Your message ...."required></textarea>
</div>
     <input type="submit" class="btn btn-light mt-2" id="submit">
  </form>
    
  </div>
  
</section>
<section id="About">
  <div class="container-fluide p-4">
    <div id="div-flex">
      <div>
  <h1>About Us</h1>
    <p class="p-4">Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore magni sunt quo iste totam quam ipsam soluta unde eveniet, asperiores illo labore vel. Nam voluptates neque architecto eum molestiae eius.</p>
  <button class="btn btn-danger">Discover more</button>
    </div>
  <div>
    <img src="https://picsum.photos/id/250/400" alt="pic">
  </div>
    </div>
    </div>
</section>
<footer>
  <div id="footer-links">
    <ul id="product-links">
    <li><a href="#link1" class="nav-link text-light">Link1</a></li>
    <li><a href="#link2" class="nav-link text-light">Link2</a></li>
    <li><a href="#link3" class="nav-link text-light">Link3</a></li>
    <li><a href="#link4" class="nav-link text-light">Link4</a></li>
  </ul>
  <ul id="company-links">
    <li><a href="#link1" class="nav-link text-light">Link1</a></li>
    <li><a href="#link2" class="nav-link text-light">Link2</a></li>
    <li><a href="#link3" class="nav-link text-light">Link3</a></li>
    <li><a href="#link4" class="nav-link text-light">Link4</a></li>
  </ul>
  <ul id="social-links">
    <li><a href="#link1" class="nav-link text-light">Link1</a></li>
    <li><a href="#link2" class="nav-link text-light">Link2</a></li>
    <li><a href="#link3" class="nav-link text-light">Link3</a></li>
    <li><a href="#link4" class="nav-link text-light">Link4</a></li>
  </ul>
  </div>
  <div id="copyright">
  <i class="fa fa-copyright">All right reserved 2021</i>
  </div>
</footer>

              
            
!

CSS

              
                body{
  text-align:center;
}
#header{
  background:rgba(0,0,0,0.7);
  position:fixed;
  top:0;
  left:0;
  z-index:1000;
  width:100%;
}
#nav-bar a{
  font-size:30px;
  text-decoration:none;
  color:white;
}
#nav-bar a:hover{
  color:red;
}
.navbar-brand{
  padding:0;
}
#Home{
  margin-top:100px;
}
.card{
  box-shadow:0 2rem 3rem rgba(0,0,0,0.2);
}
.card img{
  width:15vw;
  align-self:center;
  padding:10px;
}
q{
  display:block;
  font-size:30px;
  padding:10px;
  margin:auto;
}
h1{
 font-family:monospace;
  font-weight:bold;
  font-size:30px;
}
p{
}
#galery{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
}
#galery img{
  margin:2px;
}
#Contact{
  background:#dc3545;
  color:white;
  display:flex;
  justify-content:center;
}
.form-header,form-body{
}
form{
  width:fit-content;
  margin:auto;
}
.form-label{
  float:left;
}
.fa-envelope{
  font-size:20vh;
}
.form-label{
  padding-top:4px;
}
#div-flex{
  display:flex;
}
#About p{
  text-align:left;
  font-size:20px;
}
footer{
  background:grey;
  color:white;
}
#footer-links{
  display:flex;
  justify-content:space-evenly;
}
.nav-link:hover{
  color:#dc3545 !important;
}
ul{
  list-style-type:none;
}
@media (max-width: 700px){
  #Contact{
  flex-direction:column;
}
  #div-flex{
  flex-direction:column;
}
  #div-flex button{
  margin-bottom:20px;
}
  #video{
    width:100%;
  }
}
              
            
!

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