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>

<header id="header">
  <div class="logo">
    <img id="header-img" src="https://www.freelogodesign.org/file/app/client/thumb/28f76385-4902-446c-91bf-d93378bb4641_200x200.png?1586279262075" alt="streamia logo">
  </div>
  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link" href="#features">Features</a></li>
      <li><a class="nav-link" href="#last-added-movie">Last added movie</a></li>
      <li><a class="nav-link" href="#pricing">Pricing</a></li>
    </ul>
  </nav>
</header>

<div class="container">
  <section id="features">
    <div class="grid">
      <div class="icon"><i class="material-icons">map</i></div>
      <div class="desc">
        <h2>Avaible everywhere</h2>
        <p>
          Streamia is available everywhere in the world!
        </p>
      </div>
    </div>
    <div class="grid">
      <div class="icon"><i class="material-icons">star</i></div>
      <div class="desc">
        <h2>Recommendation</h2>
        <p>
          We make sure you receive our recommendations based on your preferences.
        </p>
      </div>
    </div>
    <div class="grid">
      <div class="icon"><i class="material-icons">wifi_off</i></div>
      <div class="desc">
        <h2>Available offline</h2>
        <p>
          You can download your favorite movies and series to watch offline.
        </p>
      </div>
    </div>
  </section>
  <section id="last-added-movie">
    <iframe id="video" src="https://www.youtube.com/embed/fnaojlfdUbs" allowfullscreen frameborder="0" height="300"></iframe>
  </section>
  <section id="pricing">
    <div id="list-pricing">
      <div id="basic">
        <h3>Basic</h3>
        <ul>
          <li>1 screen you can watch on at the same time</li>
          <li>Watch on your laptop, TV, phone and tablet</li>
          <li>Unlimited movies and TV shows</li>
          <li>Cancel anytime</li>
          <li>First month free</li>
        </ul>
        <button class="btn"></button>
      </div>
      <div id="standard">
        <h3>Standard</h3>
        <ul>
          <li>HD available</li>
          <li>2 screens you can watch on at the same time</li>
          <li>Watch on your laptop, TV, phone and tablet</li>
          <li>Unlimited movies and TV shows</li>
          <li>Cancel anytime</li>
          <li>First month free</li>
        </ul>
        <button class="btn"></button>
      </div>
      <div id="premium">
        <h3>Premium</h3>
        <ul>
          <li>Ultra HD available</li>
          <li>4 screens you can watch on at the same time</li>
          <li>Watch on your laptop, TV, phone and tablet</li>
          <li>Unlimited movies and TV shows</li>
          <li>Cancel anytime</li>
          <li>First month free</li>
        </ul>
        <button class="btn"></button>
      </div>
    </div>
  </section>

  <div id="contact-details">
    <section id="user-information">
      <h1>Contact us</h1>
      <form id="form" action="https://www.freecodecamp.org/email-submit">
        <input name="email" id="email" type="email" placeholder="Enter your email address" required>
        <input id="submit" type="submit" value="Submit" class="btn">
      </form>
    </section>
  </div>

  <footer>
    <ul>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <span>Copyright 2020, Streamia</span>
  </footer>
</div>
              
            
!

CSS

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

body {
  font-family: "Roboto", sans-serif;
  margin: 0px;
}

.container {
  position: relative;
  width: 100%;
  max-width: 62.5em;
  margin: 0 auto;
}

#header {
  background-color: #ffa100;
  position: fixed;
  top: 0;
  height: 5em;
  width: 100%;
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

header ul {
  display: flex;
  margin-right: 10px;
  color: #fff;
}

@media (max-width: 800px) {
  header ul {
    flex-direction: column;
    text-align: center;
  }
}

#header-img {
  padding: 10px;
  width: 10em;
  height: 10em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 15px;
}

#nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1em;
  margin-right: 1em;
}

a {
  text-decoration: none;
  color: black;
}

li {
  list-style: none;
}

.nav-link {
  margin: 0px;
  padding: 11px;
}

.btn {
  padding: 0 20px;
  height: 2.5em;
  font-size: 1em;
  font-weight: 900;
  border: 3px black solid;
  border-radius: 2px;
  background: orange;
  cursor: pointer;
}

.btn:hover {
  background-color: white;
  transition: background-color 1s;
}

#nav-bar > .btn {
  margin-left: 10px;
}

#features {
  margin-top: 10em;
}

.grid {
  display: flex;
}

#features .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 7.8em;
  width: 80vw;
  padding: 5px;
}

#features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.8em;
  width: 20vw;
}

#features i {
  display: block;
  height: 1em;
  width: 1em;
  margin-left: 1em;
  position: relative;
  font-size: 4em;
  color: #ffa500;
}

@media (max-width: 550px) {
  #features .icon {
    display: none;
  }
}

#last-added-movie {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#last-added-movie > iframe {
  max-width: 560px;
  width: 100%;
}

#pricing {
  margin: 2em;
  margin-bottom: 50px;
}

#list-pricing {
  display: flex;
  justify-content: center;
}
#basic,
#standard,
#premium {
  margin: 0 30px;
  border-radius: 10px;
  width: 20%;
  height: 25em;
  min-width: 300px;
  max-width: 450px;
  border: 1px solid #000;
}

@media (max-width: 1000px) {
  #list-pricing {
    flex-direction: column;
    align-items: center;
  }

  #basic,
  #premium,
  #standard {
    margin-bottom: 20px;
  }
}

#list-pricing h3 {
  background: #ffa500;
  margin: 0;
  height: 3.1em;
  line-height: 3.1em;
  color: #000;
  border-radius: 10px 10px 0 0;
  text-align: center;
  text-transform: uppercase;
}

#list-pricing button {
  background: ##ffa500;
  margin-bottom: 0;
  bottom: 0;
  height: 3.1em;
  width: 100px;
  line-height: 3.1em;
  color: #000;
  display: block;
  margin: 0 auto;
}

#basic button {
  margin-top: 2.9em;
}

#basic button::after {
  content: "$8";
}
#basic button:hover::after {
  content: "Select";
}

#basic button:hover {
  border: 3px black solid;
  border-radius: 2px;
  background-color: white;
  transition: background-color 1s;
  color: #000 !important;
}

#standard button::after {
  content: "$10";
}
#standard button:hover::after {
  content: "Select";
}

#standard button:hover {
  border: 3px black solid;
  border-radius: 2px;
  background-color: white;
  transition: background-color 1s;
  color: #000 !important;
}

#premium button::after {
  content: "$12";
}
#premium button:hover::after {
  content: "Select";
}

#premium button:hover {
  border: 3px black solid;
  border-radius: 2px;
  background-color: white;
  transition: background-color 1s;
  color: #000 !important;
}

#list-pricing ul {
  list-style: none;
  padding: 10px 0;
}

#list-pricing li {
  margin-bottom: 10px;
  text-align: center;
}

#contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 12.5em;
  margin-top: 50px;
}

#contact-details input[type="email"] {
  max-width: 275px;
  width: 100%;
  padding: 5px;
}

#contact-details input[type="submit"] {
  max-width: 150px;
  width: 100%;
  height: 1.8em;
  margin: 15px 0;
}

section {
  padding-top: 4em;
}

footer {
  margin-top: 30px;
  background-color: #fff;
  padding: 20px;
}

footer > ul {
  display: flex;
  justify-content: flex-end;
}

footer > ul > li {
  padding: 0 10px;
}

footer > span {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
  color: #000;
}

footer a:hover {
  color: #ff8c00;
  transition: color 1s;
}

              
            
!

JS

              
                
              
            
!
999px

Console