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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <html lang="en">

<head>
  <title>RF Travel Landing Page</title>
</head>

<div id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
    <header id="header">
      <nav id="nav-bar" class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"> 
      <a class="navbar-brand" href="#home"><img id="header-img" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/RFTSmallIcon.png' alt=''> R.F. Travel Services</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
       <span class="navbar-toggler-icon"></span>
     </button>
      <!--End Toggle Button-->
      <div class="collapse navbar-collapse text-center px-2" id="navbarNav">
        <ul class="navbar-nav">
          <li class="nav-item active">
            <a class="nav-link" href="#header">Home</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#about">About Us</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#video">Video</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#trips">Destinations</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#social-icons">Follow Us</a>
          </li>
        </ul>
      </div>
    </nav>
    <!--End Navbar-->
  </header>
  <!--End Header-->

  <div class="jumbotron d-flex flex-column align-items-center text-center m-auto">
    <h1 class="w-50">Welcome <br>to <br>R.F. Travel Services</h1>
    <h5 class="w-50">Let our escapes be the key to your relaxation!</h5>
    <form id="form" class="w-50" action="https://www.freecodecamp.com/email-submit" name="email">
      <div class="input-group-sm input-group-append">
        <input id="email" type="email" name="email" class="form-control" size="50" placeholder="Email Address" required>
        <input type="submit" id="submit" class="bg-secondary" value="Submit" style="width:130px;">
      </div>
    </form>
  </div>
  <!--End Jumbotron-->

  <!--About Section-->
  <div id="about" class="company container-fluid">
    <div class="row">
      <div class="col-lg-8 col-md-12 col-sm-12 col-xs-12">
        <h2 class="about-title">About R. F. Travel Services</h2>
        <h5 class="about-intro text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </h5>
        <p class="about-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p><br>
      </div>
      <!--Company-->
      <div class="company col-lg-4 col-md-12 col-sm-12 col-xs-12">
        <img class="img-fluid m-1 p-1" width="100%" height="100%" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/RFTravelLogo.png' alt='R.F. Travel Services Logo'>
      </div>
    </div>
  </div>
  <!--End About Section-->

  <!--Video Section-->
  <div class="container-fluid bg-grey">
    <div class="row">
      <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 embed-responsive embed-responsive-16by9">
        <iframe id="video" class="embed-responsive-item" width="560" height="315" src="https://www.youtube.com/embed/YbU9qrHwpVg" allow="autoplay; encrypted-media" allowfullscreen></iframe>
      </div>
      <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
        <h2 class="video-title">Caribbean Islands</h2>
        <h5 class="video-intro text-muted">Welcome to the Caribbean Islands!</h5>
        <p class="video-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
      </div>
      <!--End Video Lead-->
     </div><!--End Video Row-->
    </div><!--End Video Container-->
    
  </div>


  <!--Trip Container-->
  <div id="trips" class="container-fluid">
      <div class="trip-section-title">
        <h2 class="trip-title">Destinations</h2>
        <h5 class="trip-intro text-muted">Some of our top excursions!</h5>
    </div>
    <div class="card-deck">
      <div class="row">
        <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
          <div class="card thumbnail">
            <img class="card-img-top" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/JamaicaRF.jpg' alt='Jamaica'>
            <div class="card-body">
              <h5 class="card-title">Jamaica</h5>
              <p class="card-text">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
            </div>
            <!--End Card Body-->
            <div class="card-footer">
              <button class="btn btn-default btn-secondary">Visit Jamaica..</button>
            </div>
          </div>
          <!--End Jamaica Card-->
        </div>

        <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
          <div class="card thumbnail">
            <img class="card-img-top" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/TurksCaicosRF.jpg' alt='Turks and Caicos'>
            <div class="card-body">
              <h5 class="card-title">Turks and Caicos</h5>
              <p class="card-text">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
                exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
            </div>
            <!--End Card Body-->
            <div class="card-footer">
              <button class="btn btn-default btn-secondary">Visit Turks & Caicos..</button>
            </div>
          </div>
          <!--End Turks and Caicos Card-->
        </div>

        <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
          <div class="card thumbnail">
            <img class="card-img-top" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/GrenadaSeaViewRF.jpg' alt='Grenada'>
            <div class="card-body">
              <h5 class="card-title">Grenada</h5>
              <p class="card-text">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
                exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
            </div>
            <!--End Card Body-->
            <div class="card-footer">
              <button class="btn btn-default btn-secondary">Visit Grenada..</button>
            </div>
          </div>
          <!--End Grenada Card-->
        </div>
      </div>
      <!--End Row-->
    </div>
    <!--End Card Deck-->
  </div>
  <!--End Trip Section-->

  <!--Begin Contact Section-->
  
  
  <!--Begin Footer Section-->
  <footer class="container-fluid d-flex flex-row align-items-center col-md-12 col-sm-12 col-xs-12">
    
    <div id="social-icons" class="mt-1">
      <a href="#"><i class="fa fa-twitter"></i></a>
      <a href="#"><i class="fa fa-github"></i></a>
      <a href="#"><i class="fa fa-free-code-camp"></i></a><br>
      <p>R.F. Travel Services</p>
    </div>
    
    <div id="topcaret">
      <a href="#myPage" title="Back To Top"><i class="fa fa-caret-up"><p>Back to the Top</p>
      </i></a>
    </div>
    
    <div id="copyright">
      <p><i class="fa fa-copyright"></i> 2018 T.Lanette Pollard for <br><a href="www.rogetfreelancing.com">Roget Freelancing</a></p>
    </div>
  </footer> 
</body>

</html>


              
            
!

CSS

              
                /* Colors: ffffe3, f7f7f7, 5c636e, f8b500, #00d1ff, ffdfdf, fb929e, aedefc, fff6f6, 393e46, 612c83, 40a8c4, 509aaf;
Colors Used: cacaca, 40a8c4, copyright, 87e0ff, ffffe3
Fonts: @import url('https://fonts.googleapis.com/css?family=Fontdiner+Swanky|Montserrat'); 
font-family: 'Fontdiner Swanky', cursive;
font-family: 'Montserrat', sans-serif; font-family: 'Indie Flower', cursive;*/


* {
 /* outline: 1px solid black; */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} 

html {
 background-color: ;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: 400 'Montserrat', sans-serif;
  line-height: 1.8;
  background-color:;
}

h1 {
  font-family: 'Indie Flower', cursive!important;
}

h2 {
  font-size: 24px;
  text-transform: uppercase;
  color:;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px; 
}

h5 {
  font-size: 22px;
  line-height: 1.375em;
  color:;
  font-weight: 400;
  margin-bottom: 20px;
}

h5.follow-social {
  font-size: 22px;
  
}

/*Header & Nav*/
.navbar {
  margin-bottom: 0;
  z-index: 9999;
  border: 0;
  line-height: 1.5!important;
  letter-spacing: 4px;
  border-radius: 0;
  font-family: Montserrat, sans-serif;
  font-size: 14px!important;
}



.navbar li a, .navbar .navbar-brand {
  color: #fff!important;
}

 li a:hover, li.active a {
   color: black!important;
  background-color: #ffffe3!important;
}

.navbar-toggler {
  border-color: transparent!important;
  color: #fff!important;
}


.bg-dark {
  background-color: #40a8c4!important;
}
.bg-grey {
  background-color: #cacaca;
}

/* Jumbotron */
.jumbotron {
  color: white;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/beach-1236581_1920.jpg);
  background-position: center;
  background-repeat: no repeat;
  background-size: cover;
  padding: 150px 25px;
}

#email {
  border-radius: 5px 0 0 5px!important;
}


.container-fluid {
  padding: 60px 50px;
}

/*About Section*/
h2.about-title {
  margin-top: 20px;
  
}

.about-title, .about-intro, .about-text {
  margin: 20px 60px;
}

/*Video Section*/
.video-title, .video-intro, .video-text {
  margin: 20px 60px;
}

#video {
  margin: 30px auto;
}

/*Trip Section*/

.trip-title, .trip-intro, {
  margin: 20px 60px;
}

h2.trip-title {
  margin-top: 10px;
  
}
.card-deck {
  
}

.card {
  border: 1px solid #1d97c1!important;
  border-radius: 0!important;
  transition: box-shadow 0.5s;
}
.card:hover {
  box-shadow: 5px 0px 40px rgba(0,0,0,.2);
}

.card-footer  {
  background-color: white;
  
}

.btn-secondary {
  background-color: #1d97c1;
  font-size: 16px!important;
}
.card-footer .btn:hover {
  border: 1px solid black;
  background-color: #fff!important;
  color: #1d97c1;
}

.card-title {
  color: black!important;
  font-weight: 700;
  background-color: #ffffe3;
  padding: 5px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.thumbnail {
  padding: 0 0 15px 0;
  border: none;
  border-radius: 0;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}



/*Footer*/
footer {
  display: flex;
  justify-content: space-between;
  background: #1d97c1;
  
}

#social-icons i.fa {
  padding: 10px 30px;
 /* border: 1px gray solid;*/
  font-size: 40px;
  color: #ffffe3;
}

#social-icons p {
  font-size: 18px;
  color: #ffffe3;
}
#copyright p {
  font-size: 12px;
}

#copyright a {
  color: #ffffe3;
}
.fa-caret-up {
  font-size: 26px!important;
  margin-bottom: 20px;
  color:  #ffffe3;
}
footer p {
  font-size: 14px;
  text-align: center;
}
footer div a {
  text-align: center;
}

/*Media Queries*/

@media screen and (max-width: 991.98px){
  div.company {
    display: flex!important;
    flex-direction: column!important;
     justify-content: center!important;
    align-items: center;
  }
  .img-fluid {
    width: 50%;
  } .card {
    width: 80%;
    margin: auto!important;
    margin-bottom: 40px!important;
  } .card-deck {
    margin-top: 50px;
  }
}

@media screen and (max-width: 1199.98){
  div.card-footer {
    text-align: left!important;
  }
}

              
            
!

JS

              
                $(document).ready(function() {
      //Adds smooth scrolling to all links in navbar + footer link
      $(".navbar a, footer a[href='#myPage']").on('click', function(event) {
        //Make sure this.hash has a value before overriding default behavior
        if (this.hash !== "") {
          //Prevent default anchor click behavior
          event.preventDefault();
          //Store hash
          var hash = this.hash;
          //Using jQuery's animate() method to add smooth page scroll
          // The optional number (900) specified area
          $('html, body').animate({
            scrollTop: $(hash).offset().top
          }, 900, function() {
            //Add has (#) to URL when done scrolling (default click behavior)
            window.location.hash = hash;
          });
        } //End if 
      });
      $(window).scroll(function() {
        $(".slideanim").each(function() {
          var pos = $(this).offset().top;
          var winTop = $(window).scrollTop();
          if (pos < winTop + 600) {
            $(this).addClass("slide");
          }
        });
      });
    });
              
            
!
999px

Console