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

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


<header class="header" id="header"> 
   <img src="https://media.istockphoto.com/photos/white-silhouette-strenge-man-on-the-black-background-picture-id876895654?b=1&k=20&m=876895654&s=170667a&w=0&h=DGPgcTMmsTPECWzhylYXB25JeSUahl9xFyijYpoaG9E=" id="header-img" height="50px" width="50px">
   <span id="logo2">FitnessTemple</span>
    <span id="menu" onclick="opennav()">&#9776;</span>
    <nav class="nav" id="nav-bar">
      <a class="nav-link" href="#video" id="closenav" onclick="closenav()">&times;</a>
      <a class="nav-link"  href="#plan3">Join</a>
      <a class="nav-link" href="#plans">plans</a>
      <a  class="nav-link" href="#contact">contact</a>
  </nav>
  </header>

<!-- end of header -->
          <marquee behavior="alternate">We have just launch our gym</marquee>
    <div class="content">
        <!-- form -->
        <div class="form">
            <h1>Join FitnessTemple gym</h1>
            <form action="https://www.freecodecamp.com/email-submit" method="POST" id="form">
                <input id="email" type="email" name="email" id="email" placeholder="enter email" required ><br>
                <input id="submit" type="submit" value="let's join gym">
            </form>
        </div>
        <!-- end of form -->
        <!-- whyjoin gym -->
         <div class="whyJoin">
             <div class="open">
                 <span id="watch">&#8986;</span>
                 <h1>Open 24/7</h1>
                 <p>Anytime Fitness is always open 24/7,</p>
                 <p>close to work and home and provides <br>
                    an exceptional</p> 
                 <p>workout at an exceptional price!</p>
             </div>
             <div class="worldwide">
                 <span id="globe"> &#127760;</span>
                 <h1>worldwide Access</h1>
                 <p>Anytime Fitness is the best solution,<br>
                  when it comes to anywhere access.<br>
                       We have more than 4800 gyms which<br>
                        are accessible worldwide in more <br>
                        than 40 countries!! that too with a <br>
                        single key. No matter where you go, <br>
                        you will find us! </p>
             </div>
             <div class="app">
                 <span id="app">&#128241;</span>
                 <h1>Workout App</h1>
                 <p>Anytime WorkoutsTM is our revolutionary app,<br>
                    available exclusively to Anytime Fitness members.<br>
                    As a bonus to your membership, extra support <br>
                    is available at the touch of a button with <br>
                    over 3000 workouts.</p>
             </div>
        </div>
     <!-- end of whyjoin -->
     <!-- video -->
             <div class="video">
                 <h2>Watch our video</h2>
                 <video id="video" src="https://cdn.videvo.net/videvo_files/video/free/2018-09/small_watermarked/180419_Boxing_06_01_preview.webm"
                 controls
                 poster="https://media.istockphoto.com/photos/be-as-strong-as-you-were-born-to-be-picture-id1279902517?b=1&k=20&m=1279902517&s=170667a&w=0&h=aPyWkKtfeQbDLeKzr82TcNrYED6fLp80k6Bpkksoe48="
                 preload="metadata"
                 >
                we are sorry!,for inconvenience,your browser do not support html video kindy update your browser</video>
             </div>
    <!-- end of video -->
    <!-- plans -->
             <div class="plans" id="plans">
                 <div class="plan1">
                     <h1>$50 - Member</h1>
                     <p>- GYM all Facility</p>
                     <p>- book guide</p>
                     <div class="getplan">
                        <a href="#join" class="getplan">Get plan</a>
                     </div>
                 </div>
                 <div class="plan2">
                     <h1>$60 - pro Member</h1>
                     <p>-GYM all Facility</p>
                     <p>-Book guide</p>
                     <p>-Video Guide</p>
                     <div class="getplan">
                        <a href="#join" class="getplan">Get plan</a>
                     </div>  
                 </div>
                 <div class="plan3" id="plan3">-
                     <h1>$70 - Gold Member</h1>
                     <p>-GYM all Facility</p>
                     <p>-Book guide</p>
                     <p>-Video Guide</p>
                     <p>-Personal Trainer</p>
                     <div class="getplan">
                        <a href="#join" class="getplan">Get plan</a>
                     </div>
                </div>
             </div>
      <!-- end of plans -->
    </div>
<!-- end of content -->
<!-- footer -->
    <div class="footer">
       <div class="footernav">
           <a href="#about">About</a>
           <a href="#terms">Terms</a>
           <a href="#privacy">Privacy</a>
           <a href="#Contact" id="contact">Contact</a>
       </div>
       <div class="copyright">
           <p> &copy; 2021 FitnessTemple</p>
       </div>
    </div>
<!-- end of footer -->
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
*{
    padding:0px;
    margin:0px;
}
body{
    background-color: #e7e9fb;
    color:#000;
}
.header{
   height:60px;
  width:100%;
  background-color:white;
  box-sizing:border-box;
}
#header-img{
  font-size:50px;
  padding:10px 0px 0px 50px;
  
}
#logo2{
  font-size:25px;
  font-style:italic;
   padding-bottom:20px;
}
#menu{
  float:right;
  padding:20px;
  font-size:20px;
  display:none;
}
.nav{
  float:right;
  padding:20px;
  }
.nav a{
  text-decoration:none;
  font-size:18px;
  margin-left:10px;
}
#closenav{
  display:none;
}

/* end of header */

.content{
    margin-top:60px;
    /* padding: 20px; */
    font-family: 'roboto',Arial, Helvetica, sans-serif;
}
.form{
    text-align: center;
}
.form h1{
    font-style: italic;
}
#email{
    padding:10px;
    width:50%;
    margin: 10px;
   border: 1px solid blue;
}
#submit{
    width:30%;
    padding:5px;
    background: #0000ffb1;
    color:white;
    border-radius: 10px;
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
    -ms-border-radius:10px;
    -o-border-radius:10px;
}
#submit:hover{
    background: blue;
}
/* end of form */

.whyJoin{
    background-color: white !important;
    padding:20px;
    margin-top:20px;
}
#watch,#globe,#app{
    font-size:90px;
}
.open,.worldwide,.app{
    margin:20px;
}
.worldwide{
    float: right;
    margin-top:-230px;
    padding-right: 50px;
}
.app{
    text-align: center;
    margin-top:50px;
}

/* end of whyjoin */

.video{
    background-color:#FFF4A3;
    text-align: center;
    padding:20px;
}
video{
    max-width:100%;
}
/* end of video */

.plans{
    background-color: #96D4D4;
    color:#000;
    padding:20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.getplan{
    margin-top: 20px;
    text-decoration: none;
    width: 100px;
    height:30px;
    padding: 5px;
    background-color:#04AA6D;
    color: white;
    border-radius: 10px;
}
.plan1,.plan2,.plan3{
    padding: 20px;
    margin:10px;
    border-radius: 10px;
}
.plan1:hover,.plan2:hover,.plan3:hover{
    background-color: white;
    color:#000;
    border-radius:20px;
}
.plan1{
    border: 1px solid white;
}
.plan2{
    border: 2px solid red;
}
.plan3{
    border: 3px solid yellow;
}
/* end of plans */

.footer{
    height:90px;
    padding:20px;
    text-align: center;
    background-color: #03061c;
}
.footernav a{
    color:rgba(255, 255, 255, 0.789);
    text-decoration: none;
    margin:5px;
}
.footernav a:hover{
    color:white;
}
.copyright{
    color: white;
    margin: 10px;
}
@media screen and (max-width:700px){
  
  #closenav{
    display:block;
  }
  #menu{
    display:block;
    cursor:pointer;
  }
  .nav{
    display:none;
    background-color:white;
    height:200px;
    position:absolute;
    right:0px;
  }
  .nav a{
    display:block;
    margin-top:10px;
  }
  #submit{
        width:50%;
    }
    .worldwide{
        float:none;
        margin-top:0px;
        text-align:center;
    }
    .open{
        text-align: center;
    }
}
@media screen and (min-width:700px){
  .nav{
    display:block !important;
  }
}
              
            
!

JS

              
                function opennav(){
  document.querySelector(".nav").style.display="block";
}
function closenav(){
  document.querySelector(".nav").style.display="none";
}
              
            
!
999px

Console