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

              
                

<main>
  <header id="header">
    <div>
      <img id="header-img" src="https://www.freelogodesign.org/file/app/client/thumb/6471c1eb-ae52-4704-8819-87a84de5a58d_200x200.png?1589112224135" alt="MIRROR logo" width="100" height="auto">
    </div>
    <nav id="nav-bar">
      <a class="nav-link" href="#description">Description</a>
      <a class="nav-link" href="#video">Video</a>
      <a class="nav-link" href="#email">Contact</a>
    </nav>
  </header>
  <div id="title">
    <h1>MIRROR</h1>
  </div>
  <article>
    <div id="image1">
      <img src="https://www.urdesignmag.com/wordpress/wp-content/uploads/2018/09/connected-fitness-device-mirror-brings-the-workout-to-your-home-2.jpg" width="500"  alt="the mirror fitness device">
    </div>
    <div class="description" id="description">
      <p> Refine Method founder Brynn Putnam’s startup Mirror introduces the world’s first nearly invisible, interactive home gym featuring live and on-demand fitness classes in a variety of workout genres.
        Founder and CEO Brynn Putnam has been a pioneer of the fitness industry for more than a decade.<br><br>Her career began as a professional dancer for the New York City Ballet, then as the founder of the acclaimed Refine Method fitness studios.<br><br> Now, Brynn is applying her deep expertise in fitness, both as an entrepreneur and an accomplished athlete, to transform the fitness industry again with Mirror.</p>
    </div>
    <div class="description">
      <p>Mirror’s all-in-one responsive display is comprised of an LCD panel, stereo speakers, camera (with lens cap for privacy), microphone and one-way mirror to create a fully immersive fitness experience within your home.<br><br>During a workout, instructors provide real-time instruction and even personal shout-outs. Mirror then optimizes in real time based on a user’s goals, preferences and biometric data.<br><br> Sync a Bluetooth heart rate monitor or Apple Watch to enable competition mode and Mirror’s proprietary algorithm will track your ability to achieve, maintain and recover from target heart rate zones.</p>
    </div>
    <div id="image2">
      <img src="https://www.urdesignmag.com/wordpress/wp-content/uploads/2018/09/connected-fitness-device-mirror-brings-the-workout-to-your-home-4.jpg" width="500"  alt="the mirror fitness device">
    </div>
    <div id="video-content">
      <iframe id="video" width="560" height="368"src="https://www.youtube.com/embed/S9yIcNyEfbY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
    <div id="pricing">
      <div class="pricing-item">
        <h3>Basic Pack</h3>
        <p>This pack contain the Mirror
        <br>249,99€</p>
        <div class="cart-button">
          <a href="#"><i class="fas fa-shopping-cart"></i>Add to cart</a>
        </div>
      </div>
      <div class="pricing-item">
        <h3>Medium Pack</h3>
        <p>This pack contain the Mirror + the mat
        <br>269,99€</p>
        <div class="cart-button">
          <a href="#"><i class="fas fa-shopping-cart"></i>Add to cart</a>
        </div>
      </div>
      <div class="pricing-item">
        <h3>Premium Pack</h3>
        <p>This pack contain the Mirror + the mat + premium acces to all the course<br>249,99€</p>
        <div class="cart-button">
          <a href="#"><i class="fas fa-shopping-cart"></i>Add to cart</a>
        </div>
      </div>
    </div>
  </article>
  <div id="form-content">
    <form id="form" method="POST" action="https://www.freecodecamp.com/email-submit">
      <p> Enter your E-mail to get more informations</p>
      <br>
      <label for="email">E-Mail</label>
      <input id="email" type="email" placeholder="E-mail" name="email">
      <input id="submit" type="submit">
    </form>
  </div>
  <footer id="footer">
    <p>© 2020 MIRROR</p>
  </footer>

</main>
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
}
main {
  display: flex;
  flex-direction: column;
  background-image: url("https://cdn.pixabay.com/photo/2015/12/01/15/43/black-1072366_960_720.jpg");
}
#header {
  position: fixed;
  display: flex;
  flex-basis: content;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #662b66;
  width: 100%;
  height: 100px;
}
#header-img {
  padding-left: 25px;
}

#nav-bar {
  padding-top: 40px;
  padding-right: 25px;
}
.nav-link {
  padding-right: 30px;
  text-decoration: none;
  color: white;
  font-family: "Roboto", sans-serif;
}

#title {
  margin-top: 10%;
  text-align: center;
  font-family: "Roboto", sans-serif;
  color: white;
  padding-top:25px;
  text-shadow: 5px 5px 3px black;
}
article {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-top: 2%;
  justify-content: space-around;
  font-family: "Roboto", sans-serif;
  letter-spacing: 2px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.description {
  padding-top: 20px;
  width: 600px;
  color: white;
  font-family: "Roboto", sans-serif;
  letter-spacing: 2px;
}
#video-content {
  padding-top: 50px;
}
form {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  color: white;
  font-family: "Roboto", sans-serif;
  letter-spacing: 2px;
}
#footer {
  background: #662b66;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  color: white;
}
#pricing{
  padding-top:50px;
  color:white;
}
.pricing-item{
  border: 2px ridge #ff8810;
  border-radius:5px;
  margin-bottom:5px;
  text-align:center;
  background:#662b66;
  
}
@media (max-width:1120px){
  article{
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
  }
  
}
.cart-button{
  border:2px ridge #ff8810;
  border-radius: 5px;
  padding:5px;
  margin: 10px 100px;
  background: #ff8810;  
}
.cart-button a{
  text-decoration:none;
  color: white;
  font-family: "Roboto", sans-serif;
}
  a:hover {
  color: black;
  font-weight:bold; 
 
}
i{
  padding-right: 8px;
}
              
            
!

JS

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!
999px

Console