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

              
                <html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
    <link rel="stylesheet" href="resources/css/style.css">
    <title>Ravis Portfolio</title>
  </head>
  <body>
    <!-- Navbar -->
    <nav id="navb" class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
      <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>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav  ml-auto">
          <li class="nav-item active">
            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#about">About Me</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#portfolio">Portfolio</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#contact">Get in Touch</a>
          </li>
          
        </ul>
      </div>
    </nav>
    
    <!-- Carousel -->
    <div class="carousel-container">
      <div class="carousel-header">
        <h1>Front End <span>Web Developer</span></h1>
        <p> Hey Im Ravi, Thanks for stopping by,i love all things art,but mostly I love to design slick and clutterfree websites</p>
      </div>
      <div id="carouselExampleFade" class="carousel slide carousel-fade" data-ride="carousel" data-interval="5000">
        <div class="carousel-inner">
          <div class="carousel-item active">
            <div class="tint">
            <img class="w-100" src="resources/images/kayak.jpg" alt="First slide"></div>
          </div>
          <div class="carousel-item">
            <div class="tint t2">
            <img class=" w-100" src="resources/images/mountain.jpg" alt="Second slide">
          </div>
        </div>
          
          <div class="carousel-item">
            <div class="tint t2">
            <img class="w-100" src="resources/images/tree.jpg" alt="Third slide">
            </div>
          </div>
        </div>
      </div>



      <!-- About Me -->

          <section id="about">
               <div class="container">
          <h2 class="text-center pb-3 pt-5">A bit about me</h2>
          <hr class="style14">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque quaerat, necessitatibus facere hic dolore asperiores illum vitae, deleniti officiis, reiciendis beatae. Delectus commodi architecto quibusdam harum et! Perspiciatis, at consequuntur Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime ex eius, delectus nesciunt quae nisi!.
          </p>
        </div>
          </section>




      <!-- Portfolio -->
      <section id="portfolio">
        <div class="container">
          <h2 class="text-center pb-3 pt-5">My Projects</h2>
          <hr class="style14">
        </div>

        <!-- Portfolio Item 1 -->
        <div class="container">
          <div class="row">
            <div class="col-md-6">
              <img src="resources/images/mock1.png" class="img-fluid" alt="">
            </div>
            <div class="col-md-6">
              <h3>Data Analytics</h3>
              <h5>Auckland Data Analytics company</h5>
            </div>
          </div>
          <hr>


          <!-- Portfolio Item 2 -->
          <div class="row">
            <div class="col-md-6">
              <h3>Loop Lab</h3>
              <h5>A fictional data company</h5>
            </div>
            <div class="col-md-6">
              <a href="https://www.google.com"><img src="resources/images/mock2.png"  class="img-fluid" alt=""></a>
            </div>
          </div>
          <hr>


          <!-- Portfolio Item 3 -->
          <div class="row">
            <div class="col-md-6">
              <img src="resources/images/mock3.jpeg" class="img-fluid" alt="">
            </div>
            <div class="col-md-6">
              <h3>Vercettis</h3>
              <h5>A fictional Italian restaurant</h5>
            </div>
          </div>
       
        <hr>

        <!-- Portfolio Item 4 -->
             <div class="row">
            <div class="col-md-6">
              <h3>Loop Lab</h3>
              <h5>A fictional data company</h5>
            </div>
            <div class="col-md-6">
              <a href="https://www.google.com"><img src="resources/images/mock2.png"  class="img-fluid" alt=""></a>
            </div>
          </div>
        </div>
          <hr>


        
   <section id="contact">
      <div class="contact-title">
        <h2>Lets talk about building your new site</h2>
        <h3>Contact me today and ill be in touch soon</h3>
      </div>

      <div class="contact-form">
        <form id="contact-form" method="post" action="">

          

          <input name="name" type="text" class="form-control" placeholder="Your Name" required>
          <br>

          <input name="email" type="email" class="form-control" placeholder="Your Email" required>
          <br>


           <input name="phone" type="text" class="form-control" placeholder="Your Phone" required>
          <br>

          <textarea name="message" class="form-control"  cols="60" rows="10" placeholder="Message goes here"></textarea>
          <br>

          <input type="submit" class="form-control submit" value="SEND MESSAGE">
         
        </form>
      </div>
   </section>

      
   

     


      <script>
      $('.carousel').carousel({
      interval: 2000;
      })
      </script>
      <!-- Optional JavaScript -->
      <!-- jQuery first, then Popper.js, then Bootstrap JS -->
      <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
      <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous">
        
      </script>
    </body>
</html>
              
            
!

CSS

              
                
body {
position: relative;
height: 100%;
}

/*<!-- NavBar -->*/

#navb {
background:#1a0315 !important;
-webkit-box-shadow: -8px 7px 75px 9px rgba(191,32,32,1);
-moz-box-shadow: -8px 7px 75px 9px rgba(191,32,32,1);
box-shadow: -8px 7px 75px 9px rgba(34,32,32,1);
}

.nav-link {
  color:#fff !important;
}

.active {
border-bottom: solid 2px #FE2E64 !important;
}

/*<!-- Carousel -->*/

.carousel-container{
position: relative;
height: 100%;
width: 100%;
}

/*<!-- Carousel -->*/
.carousel-inner {
height: 50rem;
}

/*<!-- Carousel Text -->*/
.d-block {
opacity: .8;
}

.carousel-header{
position:absolute;
top:40%;
left: 50%;
transform: translate(-50%,-90%);
z-index: 100;
background: #6e3667;
opacity: .7;
width:100%;
}

.carousel-header h1 {
text-align: center;
color:#fff;
font-size: 3rem;
font-weight: bold;
font-family: 'Khand', sans-serif;
letter-spacing: 3.5px;
}

span {
  color:#88d317;
}

.carousel-header p {
text-align: center;
color:white;
line-height: 4rem;
}

.active {
border-bottom: solid 2px lawngreen;
}




/*<!-- Projects Section -->*/

#portfolio {
  background: #fff;
  height:40rem;
}

span {
  color:lime;
}

hr.style14 { 
  border: 0; 
  height: .1px; 
  background-image: -webkit-linear-gradient(left, #88d317, #6e3667, #6e3667);
  background-image: -moz-linear-gradient(left, #88d317, #8c8b8b, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0); 
  padding-bottom: 1rem;
  margin-top:1px;
  margin-bottom:3rem;
  width:40%;
 
}



.img-fluid {
  box-shadow: rgba(255,0,0,.1) 2px 2px 2px 2px;
}


.tint {
  position: relative;
  margin-bottom: 20px;
  box-shadow: rgba(0,0,0,.2) 3px 5px 5px;
}

.tint:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background:rgba(255,0,0, 0.5);
  transition: all .3s linear;
}

#contact {
margin:0;
padding: 0;
text-align: center;
background: linear-gradient(rgba(0,0,50,0.5),rgba(0,0,50,0.5)),url('https://images.unsplash.com/photo-1491986926302-149ec463b90a?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=f34dc245ab45d60718efaa50bcdecee1&auto=format&fit=crop&w=1351&q=80');
background-size: cover;
background-position: center;
}

.contact-title {
  padding-top: 3rem;
  margin-top:50px;
  text-transform: uppercase;
  color: #fff;
  transition: all 4s ease-in-out;
}

.contact-title h2 {
 font-size: 4rem;

}


form {
  margin-top: 5rem;
  transition: all 4s ease-in-out;
  text-align: center;
}

.form-control {
  width:600px;
  background:transparent; 
  border:none;
  outline: none;
  border-bottom: 1px solid grey;
  color:#fff;
}


.form-control:hover {
  width:600px;
  background:transparent; 
  border:none;
  outline: none;
  border-bottom: 1px solid grey;
  color:#fff;
}

input {
  height:45px;
}

form .submit {
  background: #ff5722;
  border-color: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  height: 50px;
  margin-top: 20px;
  text-align: center;
}

form .submit:hover {
  background: #ff5722;
  cursor: pointer;
}

.contact-form {
  width: 100%;
  margin: 0 auto;
}


              
            
!

JS

              
                $(".nav-item").on("click", function(e){
  $("li.nav-item").removeClass("active");
  $(this).addClass("active");
});
              
            
!
999px

Console