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>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
  <title>Community Wanderers</title>
</head>

<body>

  <header id="header">
    <div class="top">
    <div class="logo">
       <img id="header-img" src="https://github.com/be2mbs/trailtrekkers/blob/master/trail-trek-logo.png?raw=true" alt="Trail Trekkers Logo">
        <h1 id="logo-text">Community Wanderers</h1>
    </div>
    <div class="nav-links">
      <nav id="nav-bar">
          <ul>
            <li><a href="#content" class="nav-link">What We Do</a></li>
            <li><a href="#inspiration" class="nav-link">Why We Do It</a></li>
            <li><a href="#pricing" class="nav-link">How To Join</a> </li>
          </ul>
      </nav>
    </div>
    </div>

  </header>
  <div>
    <img id="splash" src="https://github.com/be2mbs/trailtrekkers/blob/master/girl-hike.jpg?raw=true" alt="A girl facing a forest on a hike">
  </div>
  <br><br>
    <section id="content">
      <div class="anchor">
  <a name="content">&nbsp;</a>
    <h2 class="margin">Where Community Meets Serenity</h2> 
      </div> <br>
           <div id="brochure">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input name="email" id="email" type="email" placeholder="your@email.com" /> 
      <input id="submit" type="submit" value="Request Our Brochure!" class="btn" />
    </form>
  </div>
      <br>
    <p class="about">Community Wanderers isn't about climbing the tallest mountain, breaking speed records, or even staying on the central path. Instead, we give you a safe environment to explore as you will, allowing you the freedom and serenity to truly appreciate the beauty surrounding you. With a group of friends, strangers, or both, we helicopter you to the center of one of our forested regions and drop you off at a designation point. From there the group may wander as you choose. Perhaps you'll follow the beaten path; perhaps you won't. Our land has been mapped thoroughly and is maintained daily by staff to ensure a safe and calm experience.</p>
    <p class="about">We currently have three options to choose from:</p>
    <div class="icon-align">
    <p class="icons"><i class="fas fa-tree"></i> Two-Hour Retreat </p>
    <p class="icons"><i class="fas fa-map"></i> Six-Hour Expedition </p>
    <p class="icons"><i class="fas fa-campground"></i> Overnight Exploration </p>
    </div>
    <br>
  </section>
 
    <section id="inspiration">
    <h2>The Inspiration</h2>
    <p class="about">The idea behind Community Wanderers was based off a video by John Green in which he and his friends decided to hike in the pouring rain for six hours. While some may find that absolutely deplorable, he found himself overcome with extraordinary happiness. And of course he did! We've grown remarkable as a civilization, but now and then we need to leave behind the rush of society and simply enjoy the natural world.</p>
  </section> <br><br>
  <div id="vidcon">
    <p>Check out his video below!</p>
        <iframe id="video" width="500" height="350" src="https://www.youtube.com/embed/XgSLML7pqq0" allowfullscreen></iframe>
  </div>
  <br>
  <section id="pricing">
    <h2>How to Join</h2>
    <p class="about">As stated above, we offer three different options for joining. The Six-Hour and Overnight options also feature a subscription-like model where you pay a yearly fee and may schedule your stay as you choose. We suggest the Two-Hour Retreat for all first-timers and beginners.</p> 
  </section>
  <div id="pricetables">
    <div class="session" id="two-hour">
      <div class="type">Two-Hour Retreat</div>
      <h3>$75/person</h3>
      <h4>Beginner-level hike featuring a variety of flora & fauna, streams, and great views.</h4>
      <button class="btn">Select</button>
    </div>
    <div class="session" id="six-hour">
      <div class="type">Six-Hour Expedition</div>
      <h3>$200/person</h3>
      <h4>Intermediate-level hike featuring canoeing lake, hidden caves, and small caverns.</h4>
      <button class="btn">Select</button>
    </div>
       <div class="session" id="overnight">
      <div class="type">Overnight Exploration</div>
      <h3>$500/person</h3>
         <h4>Advanced-level hike featuring waterfalls, fishing river, and cliffs. Camping gear included.</h4>
      <button class="btn">Select</button>
    </div>
  </div>
</body>

</html>
              
            
!

CSS

              
                /* Fonts */
@import url("https://use.typekit.net/uds3qpg.css");
@import url('https://fonts.googleapis.com/css?family=Bahianita|Roboto+Condensed&display=swap');

/* General */

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

body {
  background-color: #cecbc4;
  font-family: 'Roboto Condensed', sans-serif;
  color: #452d29;
}

/* Nav Bar */

#header {
  background-color: #452d29;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 145px;
  justify-content: space-between;
  align-items: baseline;
}

.anchor {
  position: relative;
}

.anchor a {
  position: absolute;
  left: 0px;
  top: -155px;
}

.logo {
  display: flex;
  align-items: center;
}

#header-img {
  width: 100px;
  padding: 10px;
}

#logo-text {
  font-family: metallophile-sp8, 'Bahianita', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 50px;
  color: #b28c87;
}

.nav-links { 
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

li {
  list-style: none;
  display: inline;
  padding: 0px 10px 0px 10px;
}

a {
  color: #cecbc4;
  text-decoration: none;
  font-size: 2vw;  
}

/* Content */
#splash {
  width: 100%;
  margin-top: 100px;
}

h2 {
  font-size: 50px;
  text-align: center;
}

#brochure {
display: flex;
  flex-direction: row;
  justify-content: center;
}

input[type=email] {
  padding: 5px;
  margin: 5px;
  box-sizing: border-box;
}

.btn {
  padding: 0 20px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase; 
  color: #fff;
  background-color: #b28c87;
  cursor: pointer;
}

.about {
  padding: 10px;
  margin-left: 50px;
  margin-right: 50px;
  text-align: justify;
  font-size: 30px;
}

.icon-align {
  display: block;
  margin: 0 auto;
  width: 50%;
  
}

.icons {
 padding: 20px;
 font-size: 30px;
}

/* Inspiration */

#vidcon {
  display: block;
  margin: 0 auto;
  width: 500px;
  text-align: center;
  font-size: 30px;
  
}

/* Pricing */

#pricetables {
  display: flex;
  justify-content: center;
}

.session {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(100%  / 3);
  margin: 15px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.session > .type {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  padding: 10px 0;
  width: 100%;
  font-weight: 700;
}

.session > h3 {
  font-size: 30px;
}

.session > h4 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 2px;
  font-size: 15px;
  font-weight: 100;
}


/* Responsive */
@media only screen and (max-width: 668px ) {

  img {
    display: none;
  }
  
  li {
    padding: 0 5px 0 5px;
    font-size: 12px;
  }
}

@media only screen and (max-width: 450px ) {
  img {
    display: none;
  }
  
  .logo {
    display: block;
  }
  
  #logo-text {
    text-align: center;
    font-size: 30px;
  }
  
  ul {
    text-align: center;
  }

 ul > li {
    display: inline-block;
    padding: 5px 10px 0 10px;
    font-size: 16px;
  }
  
  .margin {
    margin-top: 150px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .about {
    font-size: 20px;
    text-align: left;
  }
  
  .icons {
    font-size: 16px;
  }
  
  #vidcon {
    width: 300px;
    font-size: 16px;

  }
  
  #vidcon iframe {
    width: 100%;
    height: 100;
  }
  
  input {
    display: block;
    width: 200px;
  }
  
  #pricetables {
  display: flex;
  flex-direction: column;
  justify-content: center;
    align-items: center;
}
  
  .session > h3 {
  font-size: 20px;
}
  
  .session > .type {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  padding: 10px 0;
  width: 100%;
  font-weight: 500;
}
  
}
              
            
!

JS

              
                
              
            
!
999px

Console