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

              
                <!DOCTYPE html>
<html lang="en">
  <div id="page-wrapper">
    <header id="header">
      <div class="logo">
        <img id="header-img"
             src=" "
             alt="Garleb logo"
             />
      </div>
      <nav id="nav-bar">
        <ul>
          <li><a class="nav-link" href="#choose-us">Choose us</a></li>
          <li><a class="nav-link" href="#how-we-work">How We Work</a></li>
          <li><a class="nav-link" href="#pricing">Pricing</a></li>
        </ul>
        </nav>
    </header>
    
    <div class="container"></div>
    <section id="discount">
      <h2>Subscribe for discounts and offer on our work</h2>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input
               name="email"
               id="email"
               type="email"
               placeholder="Enter your email"
               required
               />
        <input 
               id="submit" 
               type="submit" 
               value="Subscribe" 
               class="btn"
               />
      </form>
    </section>
    
    <div class="container">
      <section id="choose-us">
        <div class="grid">
          
          <div class="desc">
            <h2>Premium Materials</h2>
            <p>Our equipment is top material. This increase a longlife for our repairs.</p>
          </div>
        </div>
        
        <div class="grid">
        <div class="desc">
          <h2>Fast Action</h2>
          <p>Once we receive the information our team roll out to act fast.</p>
        </div>
        </div>
        
        <div class="grid">
        <div class="desc">
          <h2>Quality Test</h2>
          <p>For every work we do we tested to make sure is working properly and there is no damaged made.</p>
        </div>
          </div>
      </section>
      
<section id="how-we-work">
  <iframe
          id="video"
          src="https://youtu.be/vjX-6L73E5o"
          allowfullscreen
          ></iframe>
      </section>
      
      <section id="pricing">
        <div class="service" id="refuel">
          <div class="level">Gasoline Refuel</div>
          <h2>$25</h2>
          <ol>
            <li>Starting price</li>
            <li>We arrived to were you are no matter the weather.</li>
          </ol>
          <button class="btn">Select</button>
        </div>
        
        <div class="service" id="installation">
          <div class="level">Gas Installation</div>
          <h2>$25</h2>
          <ol>
            <li>Starting price</li>
            <li>Count with us for either house or business installation</li>
          </ol>
          <button class="btn">Select</button>
          </div>
      </section>
      
      <footer>
      </footer>
      </div>
  </div>
  </html>
    
              
            
!

CSS

              
                body{
  background-color: #F2E6D8;
  font-family: sans-serif;
}
.grid{
  display: flex;
}
header{
  position: fixed;
  display: flex;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #f2e6d8;
  align-items: center;
  padding: 0px 20px;
}

@media (max-width: 430px) {
  #header {
    display: flex;
    flex-direction: column;
  }
}
#page-wrapper{
  position: relative;
}

li{
  list-style: none;
}

#choose-us{
  margin-top: 30px;
}

#choose-us .desc{
  flex-direction: column;
  justify-content: center;
}

#how-we-work{
  margin-top: 35px;
  justify-content: center;
  display: flex;
}

#how-we-work > iframe{
  max-width: 560px;
  width: 100%;
}

.btn{
  cursor: pointer;
  background: transparent;
  border: 1px black solid;
}

#discount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-top: 75px;
}

#pricing{
  margin-top: 20px;
  display: flex;
}
.service {
  display:flex;
  flex-direction: column;
  border: 1px black solid;
  background-color: white;
}

.service > .level {
  background-color: #ddd;
  padding: 15px;
  color: black;
  text-align: center;
}

.service > h2{
  text-align: center;
}
.service > ol{
  text-align: center;
  padding: 10px;
}
.service > button{
  background-color: pink;
  margin: 20px;
}


              
            
!

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