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

              
                <header id="header">
  <nav id="nav-bar">
    <a href="#header" class="nav-link">About</a>
    <a href="#features" class="nav-link">Features</a>
    <a href="#video-wrapper" class="nav-link">Video</a>
    <a href="#join" class="nav-link">Pricing</a>
  </nav>
  
  <div class="container">
    <div class="header-left">
      <h1>Application Ideas</h1>
      <p>
        Have you ever wanted to build something but you had no idea what to do? Just as authors sometimes have "writers block" it's also true for developers. This list is intended to solve this issue once and for all! 👍
      </p>
      
      <a class="btn" href="#">Repo Link</a>
    </div>
    <div class="header-right">
      <img id="header-img" src="https://github.com/florinpop17/app-ideas/raw/master/app-ideas.png" alt="thumbnail"
    </div>
  </div>
</header>

  <section id="features">
    <h2>Features</h2>
    <div class="container">
      <div class="feature">
        <i class="fas fa-users"></i>
        <h2>User Stories</h2>
        <p>A list of User Stories which should be implemented (these stories act more as a guideline than a forced list of To-Do's. Feel free to add your own stories if you want);</p>
      </div>
      <div class="feature">
        <i class="fas fa-user-plus"></i>
        <h2>Bonus Features</h2>
        <p>A list of bonus features that not only improve the base project, but also your skills at the same time (these are optional and should be attempted only after you have completed the required user stories)</p>
      </div>
      <div class="feature">
        <i class="fas fa-boxes"></i>
        <h2>Resources and Examples</h2>
        <p>All the resources and links to help you find what you need to complete the project</p>
      </div>
    </div>
  </section>
  
  <section id="video-wrapper">
    <h2>Video</h2>
      <div class="container">
      <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/TNzCfgwIDCY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        
        </div>
  </section>
  
 <section id="join" class="bg-yellow">
    <div class="container">
        <form id="form" action=" https://www.freecodecamp.com/email-submit">
          <h2>Stay up-to-date with what we're doing</h2>
            <div class="flex">
              <input id="email" name="email" type="email" placeholder="Enter your email..."/>
              <input id="submit" type="submit" class="btn btn-ghost" value="Submit" />
              </div>
        </form>
    </div>   
 </section>

  <footer>
    Made with <i class="fas fa-heart"></i> by Mark Jarnagin
  </footer>
              
            
!

CSS

              
                /*

- Linear Gradient: hsl(236, 72%, 79%) to hsl(237, 63%, 64%)

-Very light Grayish Blue: hsl(240, 78%, 98%)
-Light Grayish Blue: hsl(234, 14%, 74%)
-Grayish Blue: hsl(233, 13%, 49%)
-Dark Grayish Blue: hsl(232, 13%, 33%)

*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:400,600&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 50px 0 0;
  line-height: 1.5;
}

iframe {
  max-width: 95%;
  margin-bottom: 30px;
  border-radius: 5px;
}

img {
 max-width: 100%;
 border-radius: 5px;
}

section {
  margin-bottom: 20px;
}

section h2 {
  text-align: center;
  margin-top: 20px;
  padding-left: 10px;
}

.bg-yellow {
  background-color: #FFDB15;
}

.btn {
  background-color: #FFDB15;
  border-radius: 5px;
  ox-shadow: 2px 2px 2px #8a7400;
  color: black;
  display: inline-block;
  font-size: 14px;
  padding: 10px 25px;
  text-decoration: none;
  position: relative;
  transition: all 0.1s ease;
}

.btn-ghost {
  background-color: black;
  color: #FFDB15;
  box-shadow: none;
  border: none; 
}

.btn:active {
  box-shadow: 0 0 0 #8a7400;
  transform: translate(2px, 2px);
}

.btn-ghost:active {
  transform: none; 
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 10px;
}

/* Nav & Header */

nav {
  background-color: #FFDB15;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.09);
  display: flex;
  justify-content: center;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.nav-link {
  color: black;
  text-decoration: none;
  margin: 0 15px;
}

.header-left {
  padding-left: 10px;
  padding-right: 10px;
  width: 60%;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%
}

/* Features Section */
.feature {
  border-radius: 5px;
  /* box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.09); */
  margin: 0 1.66%;
  padding: 10px;
  width: 30%;
  text-align: center;
  background-color: #FFDB15;
}

.feature i {
  margin-top: 15px; 
  font-size: 30px;
}

.feature h2 {
  font-size: 20px;
  margin-top: 5px;
}

.feature p {
  font-size: 12px;
  line-height: 24px;
}

/* Form section*/
form {
  margin-bottom: 40px;
}

form .flex {
  display: flex;
  flex-wrap: wrap;
}

form input[type="email"] {
  border-radius: 5px;
  border: 0;
  color: black;
  display: inline-block;
  font-size: 14px;
  padding: 10px 25px;
  flex: 1;
}

/* Footer Styling */
footer {
  background-color: black;
  color: #FFDB15;
  margin-top: 20px;
  padding: 10px;
  text-align: center; 
}

footer .fa-heart {
  color: red; 
}

@media (max-width: 480px) {
  .header-left, .header-right {
    width: 100%;
  }
  
  .header-right {
    order: 0;
  }
  
  .header-left {
    order: 1;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }
  
  .header-left h1 {
    display: none;
  }
  
  .feature {
    margin: 10px;
    width: 100%;
  }
  
  .flex input, .flex .btn-ghost {
    margin: 5px 10px;
    width: 100%;
  }
}

              
            
!

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