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

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

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
    <!doctype html>
    <html lang="en">
      <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <!-- Font For Nav-Links -->
        <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
        <!-- Font Style For Content Area After Iframe -->
        <link href="https://fonts.googleapis.com/css?family=Merienda" rel="stylesheet">
        <!-- Bootstrap CSS --> 
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css">
        <!-- External Stylesheet -->
        <link rel="stylesheet" type="text/css" href="./css/product_landing_page.css">
        <title>Product Landing Page</title>
          </head>
          <body>
        <header id="header">
            <nav id="nav-bar" class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
             <a href="#" class="navbar-brand"> Yes
                  <img src="https://s19.postimg.cc/7l37r9h4z/punch_logo.jpg" alt="yes_i_can_logo" id="header-img" class="rounded-circle"> I Can
             </a>
             <button class="navbar-toggler" data-toggle="collapse" data-target="#headernav">
                 <span class="navbar-toggler-icon mt-3"></span>
             </button>

             <div class="collapse navbar-collapse text-center" id="headernav">
              <ul class="navbar-nav ml-auto">
                 <li class="nav-item">
                      <a href="#about_us" class="nav-link">About Us</a>
                  </li>
                  <li class="nav-item">
                      <a href="#select_city" class="nav-link">Select Your Preferred City</a>
                  </li>
                  <li class="nav-item">
                      <a href="#ticket_price" class="nav-link">Ticket Pricing</a>
                  </li>
                  <li class="nav-item">
                      <a href="#contact_us" class="nav-link">Contact Us</a>
                  </li>
              </ul> 
         </div>
            </nav>
        </header>


        <iframe  id="video" src="https://www.youtube.com/embed/oLrrQl8d28A?autoplay=1"></iframe>
            

        <div class="content-area">
           <div class="container-fluid text-center mt-3" id="about_us">
               <h2>About Us</h2>
               <p class="text-justify">Yes I Can Series is a Series of High Power Motivational Seminar Series by India's No.1 Motivational Speaker & Youtuber <strong>Sandeep Maheshwari,</strong> Who Have More Then <em>6 Million Subscribers</em> In His <a href="https://www.youtube.com/user/SandeepSeminars">Youtube Channel</a>. As Well As <u>Sandeep Maheshwari Is The Founder & CEO</u> Of <a href="https://www.imagesbazaar.com/">Images Bazaar</a>, The <strong>Largest Collection Of Indian Images.</strong> Latest upcoming seminar <em>Jaipur, Delhi & Mumbai.</em></p>
           </div>

            <div class="container-fluid">
            <div class="row">
                <div class="col-lg-6 text-center mt-3 mt-sm-1">
                   <img src="https://s19.postimg.cc/7l37r9h4z/punch_logo.jpg" alt="punch">
                    <h6 class="d-md-inline mt-3">Yes I Can Series is Answer For All Questions Like...</h6>
                    <ul class="mt-4 mt-sm-3 mt-md-0">
                        <li>How To Be Practical In Real Life?</li>
                        <li>How to Become An Entrepreneur?</li>
                        <li>How To Stand Out Of The Crowd?</li>
                        <li>How To Become A Public Speaker?</li>
                        <li>How To Keep Motivated All The Time?</li>
                        <li>How To Enhance Own Personlity And Soft Skills?</li>
                        <li>How To Adopt Habits of Successful People In Own Life?</li>
                        <li>How To Use Time Smartly As Well As How To Do Meditation?</li>
                        <li>How To Set Long-Term Goals & Best Real Practical Ways To Get Them?</li>
                        <li>How To Make, Build & Sustain Good Kin In Personal & Professional Life?</li>
                    </ul>
                </div>

                <div class="col-lg-6 d-sm-none d-md-none d-lg-block">
                    <div class="carousel slide mt-2 mt-lg-3" id="my_carousel" data-ride="carousel">
                        <ul class="carousel-indicators">
                            <li data-target="#my_carousel" data-slide-to="0" class="active"></li>
                            <li data-target="#my_carousel" data-slide-to="1"></li>
                            <li data-target="#my_carousel" data-slide-to="2"></li>
                            <li data-target="#my_carousel" data-slide-to="3"></li>
                            <li data-target="#my_carousel" data-slide-to="4"></li>
                        </ul>
                        <div class="carousel-inner">
                            <div class="carousel-item active">
                                <img src="https://s19.postimg.cc/bhgjn8uer/image.jpg" alt="">
                                <div class="carousel-caption">
                                    <h6>“Do not wait to strike till the iron is hot but make it hot by striking.” – William B. Sprague</h6>
                                </div>
                            </div>
                            <div class="carousel-item">
                                <img src="https://s19.postimg.cc/cjqq5ricz/image.jpg" alt="">
                                <div class="carousel-caption">
                                   <h6>“I get knocked down. But I get up again. You’re never going to keep me down.” – Chumbawamba</h6>
                                </div>
                            </div>
                            <div class="carousel-item">
                                <img src="https://s19.postimg.cc/4r02du243/image.jpg" alt="">
                                <div class="carousel-caption">
                                    <h6>“To hell with circumstances I create opportunities.” – Bruce Lee</h6>
                                </div>
                            </div>
                            <div class="carousel-item">
                                <img src="https://s19.postimg.cc/shzfvwzqb/image.jpg" alt="">
                                <div class="carousel-caption">
                                    <h6>“There is no such thing as failure. There are only results.” – Tony Robbins</h6>
                                </div>
                            </div>
                            <div class="carousel-item">
                                <img src="https://s19.postimg.cc/4e8o7nrk3/image.jpg" alt="">
                                <div class="carousel-caption">
                                    “Start where you are. Use what you have. Do what you can.”— Arthur Ashe
                                </div>
                            </div>
                        </div>
                        <a href="#my_carousel" class="carousel-control-prev" data-slide="prev">
                            <span class="carousel-control-prev-icon"></span>
                        </a>
                        <a href="#my_carousel" class="carousel-control-next" data-slide="next">
                            <span class="carousel-control-next-icon"></span>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div class="container-fluid">
            <div class="row mt-3">
                <div class="col-lg-6">
                    <h4 class="text-center">Yes I Can Series Is Coming In Your City</h4>
                    <h4 class="text-center">Get Ready For It....</h4>
                     <table class="table">
      <thead>
        <tr>
          <th>Date Of Session</th>
          <th>City</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>26.07.2018</td>
          <td>Jaipur</td>
        </tr>
        <tr>
          <td>15.08.2018</td>
          <td>Delhi</td>
        </tr>
        <tr>
          <td>25.09.2018</td>
          <td>Mumbai</td>
        </tr>
        <tr>
            <td>12.10.2018</td>
            <td>Bengluru</td>
        </tr>
        <tr>
            <td>17.11.2018</td>
            <td>Kolkata</td>
        </tr>
        <tr>
            <td>31.12.2018</td>
            <td>Chennai</td>
        </tr>
          </tbody>
    </table>

                </div>

                <div class="col-lg-6">
                   <h4 class="text-center" id="select_city">Book Your Tickets "Right Now"</h4>
                   <div class="form-group">
                    <form id="form" action="https://www.freecodecamp.com/email-submit">
                           <div class="row">
                               <div class="col-sm-6">
                                   <label for="name_label" class="ml-2">Name :</label>
                        <input type="text" id="name_label" name="name" class="form-control" placeholder="Enter Your Name" required>
                               </div>
                               <div class="col-sm-6">
                                    <label for="email" class="ml-2 mt-2 mt-sm-0">Email :</label>
                        <input type="email" id="email" name="email" class="form-control" placeholder="Enter Your Email" required>
                               </div>
                           </div>

                           <div class="row">
                               <div class="col-sm-6">
                                  <div>
                                   <label for="neuter" class="ml-2 mt-2">Gender :</label>
                                   </div>
                                  <select class="form-control" id="neuter" required>
                                      <option selected disabled>Select An Option</option>
                                      <option>Male</option>
                                      <option>Female</option>
                                  </select>
                               </div>
                               <div class="col-sm-6">
                                   <label for="contact_no" class="ml-2 mt-2">Enter Your Mobile No.</label>
                                   <input type="tel" id="contact_no" class="form-control" required placeholder="+91 - 12345-67890">
                               </div>
                           </div>

                           <div class="row mt-sm-3">
                               <div class="col-sm-4 col-md-3">
                                   <label for="city_select" class="ml-2 mt-2">Select Your City:</label>
                               </div>
                               <div class="col-sm-8 col-md-9">
                                   <select name="" id="" class="form-control" required>
                                       <option value="" selected disabled>Select City</option>
                                       <option value="">Jaipur</option>
                                       <option value="">Delhi</option>
                                       <option value="">Mumbai</option>
                                       <option value="">Bengluru</option>
                                       <option value="">Kolkata</option>
                                       <option value="">Chennai</option>
                                   </select>
                               </div>
                           </div>

                           <div class="row mt-sm-3">
                              <div class="col-sm-6 col-md-5">
                               <p class="ml-2 mt-2 mt-sm-0">No. Of Tickets You Want To Buy:</p>
                               </div>
                               <div class="col-sm-3 col-md-2 col-lg-3">
                                   <input type="radio" name="booking_of_ticket" id="single_ticket" class="ml-2" required>
                                   <label for="single_ticket"><span class="ml-2">1 Ticket</span></label>
                               </div>
                               <div class="col-sm-3 col-md-2 col-lg-4 mt-1 mt-sm-0">
                                   <input type="radio" name="booking_of_ticket" id="two_tickets" class="ml-2">
                                   <label for="two_tickets"><span class="ml-2">2 Tickets</span></label>
                               </div>
                           </div>

                           <div class="row">
                              <div class="col-sm-6 col-md-7">
                               <label for="no_of_tickets" class="ml-2">Enter No. Of Tickets If You Are:
                                   </label>
                                  <input type="number" class="form-control" min="3" max="10" id="no_of_tickets" placeholder="Buying More Than 2 Tickets ">

                         </div>
                               <div class="col-sm-6 col-md-5">
                                   <label for="address_of_recipient" class="ml-2 mt-2 mt-sm-0">Enter Your Address :</label>
                                   <input type="text" class="form-control" id="address_of_recipient" placeholder="My Address Is" required>
                               </div>
                           </div>

                           <div class="row mt-3">
                              <div class="col-sm-7 text-sm-left">
                               <input type="checkbox" id="agreement" class="ml-2 mt-2" checked>
                               <label for="agreement">I Agree All Terms & Conditions</label>
                               </div>

                               <div class="col-sm-3">
                                   <input type="submit" id="submit" value="Book Now" class="p-1 rounded ml-2">
                               </div>
                               <div class="col-sm-1 ml-2 mt-2 mt-sm-0">
                                   <input type="reset" class="p-1 rounded">
                               </div>
                           </div>

                              </form>
                               </div>
                              </div>
                             </div>
        </div>

                             <div class="container-fluid mt-3">
                             <h2 class="text-center" id="ticket_price">Pricing Of Tickets</h2> 
                             <div class="row pricing_of_ticket">
                                 
                                 <div class="col-sm-6 col-lg-4 student_dhamaka_offer text-center">
                                    <h4 class="mt-2">Student Dhamaka</h4>  
                                    <h5>Hurry Up (Limited Seats Are Available)</h5>
                                    <ul>
                                        <li>Ticket Price - 250 Rupees Per Pupil.</li>
                                        <li>Best Seats In The House For Students.</li>
                                        <li>Randomly Selected 7 Students Will Ask Live Questions.</li>
                                        <li>All School & College Going Students Are Elibible For This "Student Dhamkaka Offer".</li>
                                        <li>Additional 25% Discount If You Buy More Then 2 Tickets.</li>
                                    </ul>
                                    <button type="button" class="btn btn-primary">I Will Attend</button>
    <button type="button" class="btn btn-secondary ml-2 ml-sm-0">Maybe I Will</button>
                                 </div>

                                 <div class="col-sm-6 col-lg-4 pro_bonanza text-center mt-3 mt-sm-0">
                                     <h4 class="mt-2">Pro Bonanza</h4>
                                     <h5>For All Professionals & Entrepreneurs</h5>
                                     <ul>
                                         <li>Ticket Price - 800 Rupees Per Person.</li>
                                         <li>Meet & Greet Ceremony After Session.</li>
                                         <li>Randomly Selected 3 Gentleperson Will Ask Live Questions.</li>
                                         <li>Chance To Meet More Then 10000 Professionals and Entrepreneurs Under A Roof.</li>
                                         <li>Additonal 15% Discount If You Buy More Then 2 Tickets.</li>
                                     </ul>
                                     <button type="button" class="text-sm-left btn btn-success mt-">I am Excited
                                     </button>
    <button type="button" class="btn btn-danger ml-2 ml-sm-0">No I Am Not</button>
                                 </div>

                                 <div class="col-lg-4 empower_women text-center mt-3 mt-sm-0">
                                     <h4 class="mt-2">Empower Women</h4>
                                     <h5>Especially Reserved Seats For Women</h5>
                                     <ul>
                                         <li>Ticket Price - 600 Rupees Per Woman.</li>
                                         <li>More Than 2000 Seats For Women.</li>
                                         <li>Randomly Selected 5 Women Will Ask Live Questions.</li>
                                         <li>"Empower Women" Seats is For Every Professional, Business Owner & Retired Women.</li>
                                         <li>Additional 20% Discount If You Buy More Then 2 Tickets.</li>
                                     </ul>
                                     <button type="button" class="btn btn-warning">Let's Go</button>
    <button type="button" class="btn btn-info ml-2">Very Less Will Come</button>
                                 </div>
                                   </div>
                             </div>

                             <div class="container-fluid mt-3" id="contact_us">

                              <h2 class="text-center">Get In Touch With Us</h2>
                               <div class="row mt-3">
                                   <div class="col-12 col-sm-7 col-lg-6 text-justify">
                                       <h4 class="text-center">Contact Us</h4>
                                        <h5>For Any Enquiry & Furthur Assistance Feel Free To Call Us On Our Toll Free Mobile No. +91-98765-43210</h5> 
                                   </div>

                                   <div class="col-12 col-sm-5 col-lg-6 mt-3 mt-sm-0 text-center">
                                       <h4 class="office_address mt-sm-1">Our Corporate Office</h4>
                                       <h5 class="mt-sm-2">7 Ta 12 Jawahar Nagar, Jaipur, 302004</h5>
                                   </div>
                                     </div>

                                     <div class="container d-lg-none d-xl-none">
                                     <div class="row text-center text-sm-left ">
                                   <div class="col-12 col-sm-6 mt-3">
                                      <h4 class="mail_us">You Can Mail Us Too
                                       </h4>
                                       </div>

                                      <div class="col-12 col-sm-5"><h5 class="mt-sm-3">
                                         <a href="#" class="mail_us">yesican@gmail.com</a>
                                         </h5>
                                         </div>
                                         </div>

                                             <div class="row text-center text-sm-left"><div class="col-12 col-sm-6"><h4 class=" official_website"> Our Official Website</h4>
                                      </div>
                                      <div class="col-12 col-sm-6"><h5>
                                      <a href="#" class=" official_website">Yes I Can Series</a>
                                      </h5></div></div>
                                  </div>    

                             </div>
                             <footer class="bg-dark">
                                 &copy;Naveen Sharma
                             </footer>
                             </div>
      


        <!-- Optional JavaScript -->
        <!-- jQuery first, then Popper.js, then Bootstrap JS -->
        <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js"></script>
      </body>
    </html>
              
            
!

CSS

              
                * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   background-color: #d9a7c7 !important;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header>nav>a>img {
    width: 3rem;
    height: 3rem;
}

.navbar {
    padding: 0rem !important;
}

.navbar-brand {
    padding: 0.3rem 0.8rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
   padding: 0.8rem;
    font-size: 1.3rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: #d9a7c7;
}

@media(max-width: 788px) {
    .navbar-dark .navbar-nav .nav-link {
        font-size: 1.2rem;
    }
}
#video {
  display: block;
  position: relative;
  top: 3.7em;
  margin-bottom: 3.7em;
  max-width: 97vw;
  min-width: 97vw;
  max-height: 90vmin;
  min-height: 50vw;
}

.content-area {
    font-family: 'Merienda', sans-serif; 
}

[alt~=punch] {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 100%;
}

.carousel img {
    height: 16.9rem;
    width: 100%;
}

@media(min-width: 992px) and (max-width: 1230px) {
    table {
        height: 25.5rem;
    }
}

@media(min-width: 992px) and (max-width: 1096px) {
    .carousel img {
        height: 22rem !important;
        width: 100%;
    }
}

@media(min-width: 992px) and (max-width: 1022px) {
    [for~="agreement"] {
        font-size: 0.9em;
    }
}

h6+ul>li {
    list-style: none;
    position: relative;
    bottom: 0.8rem;
}

h5 {
    position: relative;
    left: 0.3rem
}

.student_dhamaka_offer, .pro_bonanza, .empower_women  {
    border: 2px solid black;
}

.student_dhamaka_offer ul li, .pro_bonanza ul li, .empower_women ul li   {
    list-style: none;
}

.student_dhamaka_offer h5, .pro_bonanza h5, .empower_women h5  {
    font-size: 19px;
}

button {
    position: relative;
    top: -0.4rem;
}

@media(max-width: 312px) {
    .btn-secondary, .btn-danger {
        margin-top: 0.5rem;
        position: relative;
        left: -0.3rem;
    }
    [for~="agreement"] {
        font-size: 0.9rem;
    }
}

@media(max-width: 334px) {
     .btn-info {
        margin-top: 0.5rem;
    }
}

@media(max-width: 638px) and (min-width: 577px) {
    .office_address {
        font-size: 1.3em;
    }
}

@media(max-width: 315px) {
    .mail_us, .official_website {
        font-size: 1.5rem;
    }
} 

footer {
    font-size: 1.1rem;
    color: antiquewhite;
    font-style: italic;
    display: flex !important;
    justify-content: center;
}

@media(min-width: 576px) and (max-width: 592px) {
    .btn-secondary, .btn-danger {
        margin-top: 0.5rem;
    }
}

@media(max-width: 1013px) and (min-width: 992px) {
    [for~="single_ticket"] {
        font-size: 0.9rem;
    }
}

@media(max-width: 816px) and (min-width: 768px) {
    [for~="two_tickets"] {
        font-size: 0.8rem;
    }
              
            
!

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