Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

<header id="header">
  <img src="https://place-hold.it/300x50" alt="Tick-Tock Logo" id="header-img">
  <nav id="nav-bar">
    <ul>
      <li>
        <a href="#intro" class="nav-link">Tick-Tock</a>
      </li>
      <li><a href="#how-it-works" class="nav-link">How it works?</a>
      </li>
      <li><a href="#early-access" class="nav-link">Early Access</a></li>
    </ul>
  </nav>
</header>
<main>
  <div class="container">
    <div id="intro">
      <h2>Why Tick-Tock?</h2>
      <p>So, you have started an hobby and wanted to track how consistent you with your routine but at the same time you don't want to use an dairy. You have come the right place. Tick-Tock can help you keep your habbits/hobbies in check.</p>
    </div>
    <div id="how-it-works">
      <h2>How it works?</h2>
      <p>Tick-Tock is so simple. All you have to do is just create a new Tick-Tock widget and give it a title and choose the start date. Once you are done, the timer gets updated everyday.</p>
    </div>
    <div id="why-use-it">
      <h2>Why should you use it?</h2>
      There are many other tools exists already. But, most of them are added with a lot and lots of features and requires lot of user activity. Here are the reasons why should you give it a try:
      <ul>
        <li>So simple and yet intuitive</li>
        <li>Brilliant User interface</li>
        <li>Built on latest technologies such as React.js, Google Firebase, etc,.</li>
      </ul>
    </div>
  </div>
  <div id="demo">
    <video id="video" src=""></video>

  </div>
  <div id="early-access">
    <h2>Early Access</h2>
    <p>You want to become a beta user for Tick-Tock. Please drop your email address. We'll get back to you with the special access</p>
    <form action="https://www.freecodecamp.com/email-submit" id="form">
      <input id="email" name="email" type="email" placeholder="Enter you mail address">
      <input id="submit" type="submit" value="Get Access">
    </form>
  </div>
</main>
<footer>
  <p>This has been created for one of my project. Interesting? Do you want to contribute? <a href="https://github.com/hisivasankar/tick-tock">Please send a Pull request?</a></p>
</footer>
              
            
!

CSS

              
                body, input {
  font-family: 'Roboto', sans-serif;
  line-height: 1.75rem;
  background-color: white;
}
header {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid black;
}
h2 {
  color: hsl(240deg, 60%, 60%);
}
main {
  margin-top: 1rem;
  width: 80%;
  margin: 10rem auto;
}
#header-img {
  width: 100%;
}
nav li {
  list-style-type: none;
}
nav a {
  text-decoration: none;
  color: hsl(240deg, 60%, 60%);
  font-weight: 900;
  font-size: 1.225rem;
}
nav ul {
  display: flex;
  justify-content: space-around;
  padding: 0;
}
video {
  border: 2px dashed green;
  margin: 0px auto;
}

#demo {
  display: flex;
  justify-content: space-around;
}

#early-access form {
  width: 60vw;
  display: flex;
  flex-direction: column;
  margin: auto;
}

#early-access  form input {
  margin: .5rem;
  padding: .5rem;
}
#email {
  max-width: 400px;
  align-self: center;
  width: 100%;
  font-size: 1.5rem;
  text-align: center;
}
#submit {
  border: 0;
  font-size: 1rem;
  max-width: 250px;
  text-transform: uppercase;
  color: white;
  align-self: center;
  width: 100%;
  background: hsl(240deg, 60%, 60%);
}
footer {
  bottom: 0;
  left: 0;
  right: 0;
}
footer p {
  text-align: center;
}

@media (min-width: 600px) {
  main {
    margin-top: 5rem;
    width: 70%;
  }
  #header-img {
    width: 55vh;
  }
  header {
    flex-direction: row;
    justify-content: space-between;
  }
  nav li {
    padding: 0 1.25rem;
  }
  nav ul {
    justify-content: space-between;
  }
}


              
            
!

JS

              
                // coded by @atjonathan
const projectName = 'product-landing-page';
localStorage.setItem('example_project', 'Product Landing Page');
// REPLACE CDN WITH GITCDN!!!

              
            
!
999px

Console