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

              
                <body>
  <header id="header">
    <div class="flexbox logo">
      <img id="header-img" class="logo" src="images/logo.png" alt="Company Logo">
      <h2>Company</h2>
    </div>

    <nav>
      <ul class="nav_link">
        <li><a href="#features">FEATURES</a></li>
        <li><a href="#video">VIDEOS</a></li>
        <li><a href="#products">BUY IT</a></li>
      </ul>
    </nav>
  </header>

  <div class="flexbox container">
    <div class="container-get">
      <h2>GET IN TOUCH</h2>
      <form action="https://www.freecodecamp.com/email-submit" id="form">

        <input id="email" type="email" placeholder="Email" required>
        <br>
        <button id="submit" type="submit">SUBMIT</button>
      </form>
    </div>
    <br>
    <br>
    <div class="flexbox">
      <div class="features" id="features">
        <div class="thingy flexbox">
          <img src="images/github.svg" alt="icone1">
          <div class="content">
            <h3>Github</h3>
            <p class="centraliza">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quo, repellat.
            </p>
          </div>
        </div>
        <div class="thingy flexbox">
          <img src="images/film.svg" alt="icone2">
          <div class="content">
            <h3>Movies</h3>
            <p class="centraliza">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
          </div>
        </div>
        <div class="thingy flexbox">
          <img src="images/box.svg" alt="icone2">
          <div class="content">

            <h3>Cubic</h3>
            <p class="centraliza">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Similique
              asperiores delectus ad molestiae!</p>
          </div>
        </div>
      </div>
    </div>

    <div class="flexbox">
      <div class="video">
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/YgGzAKP_HuM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
    </div>

    <div class="flexbox container">
      <div class="products" id="products">
        <div class="item">
          <div class="header-item">
            <h3 id="title-item1">ITEM 1</h3>
          </div>
          <div class="content-item">
            <h3 id="value-item" class="value">$666</h3>
            <p>Lorem, ipsum dolor sit
              amet consectetur
              adipisicing elit.</p>
            <br>
            <button>COMPRA</button>
          </div>
        </div>
        <div class="item">
          <div class="header-item">
            <h3 id="title-item2">ITEM 2</h3>
          </div>
          <div class="content-item">
            <h3 id="value-item2" class="value">$9999</h3>
            <p>Lorem, ipsum dolor sit
              amet consectetur
              adipisicing elit.</p>
            <br>
            <button>COMPRA</button>
          </div>
        </div>
        <div class="item">
          <div class="header-item">
            <h3 id="title-item3">ITEM 3</h3>
          </div>
          <div class="content-item">
            <h3 id="value-item3" class="value">$10000</h3>
            <p>Lorem, ipsum dolor sit
              amet consectetur
              adipisicing elit.</p>
            <br>
            <button>COMPRA</button>
          </div>
        </div>
      </div>
    </div>
    <footer id="footer">
      <h4>é isso aí</h4>
    </footer>
  </div>

</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;900&display=swap");

* {
  font-family: "Montserrat", sans-serif;
  padding: 0;
  margin: 0;
}
body {
  background-color: #3aafa9;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 400px;
  background-color: #2b7a78;
  box-shadow: 0px 0px 10px 5px #2b7a78;
}
.flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
  max-width: 60px;
  max-height: 60px;
}

.nav_link {
  position: relative;
  min-width: 300px;
  display: flex;
  justify-content: space-around;
  right: 25%;
}

.nav_link li {
  display: inline-block;
  list-style: none;
}
/* colors from #00FF5B TO #0014FF*/
.nav_link li a {
  color: #feffff;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.5s;
  transform: scaleX(20px) 2s;
}

.nav_link li a:hover {
  color: red;
}

.nav_link li a:active {
  color: red;
}

.container {
  margin-top: 80px;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.container-get {
  width: 300px;
  height: 12em;
  /* background-color: #2b7a78; */
}
.container-get h2 {
  padding: 10px;
  font-weight: bold;
}
.container-get form {
  margin: 10px;
}
.container-get input {
  background-color: #feffff;
  border: 2px solid #bdbcbc;
  border-radius: 5px;
  width: 100%;
  height: 20px;
  text-align: center;
  margin-bottom: 10px;
}
.container-get button {
  margin-top: 10px;
  width: 50%;
  height: 2em;
  font-size: 0.8em;
  color: #feffff;
  background-color: #17252a;
  border: 0;
  border-radius: 5px;
  border-color: #17252a;
  font-weight: bold;
}
.container-get button:hover {
  transition: 1s;
  color: #17252a;

  background-color: #feffff;
  border-color: #feffff;
}

.thingy {
  min-width: 560px;
  min-height: 80px;
  justify-content: flex-start;

  text-align: center;
  margin: 20px;
}

.thingy img {
  margin: 30px;
  width: 80px;
  height: 80px;
}
.content {
  width: 100%;
  display: flex;

  justify-content: flex-start;
  align-items: center;
}
.content h3 {
  font-size: 1.3em;
  flex-grow: 1;
  min-width: 100px;
}
.centraliza {
  max-width: 300px;
  flex-grow: 6;
  justify-self: flex-end;
}

.products {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-width: 560px;

  height: 300px;
}
.item {
  font-size: 1.2em;
  width: 20%;

  height: 200px;
}
.header-item {
  margin-top: 20px;
  padding: 10px;
}

.value {
  margin-top: 0px;
}

.content-item {
  font-weight: 300;
  text-align: center;
}

.content-item button {
  margin-top: 10px;
  width: 80%;
  height: 2em;
  font-size: 0.8em;
  color: #feffff;
  background-color: #17252a;
  border: 0;
  border-radius: 5px;
  border-color: #17252a;
  font-weight: bold;
}
.content-item button:hover {
  transition: 1s;
  color: #17252a;

  background-color: #feffff;
  border-color: #feffff;
}
footer {
  color: #bdbcbc;
  background-color: #17252a;
  width: 100%;
  height: 40px;
  margin-top: 50px;
}

@media (max-width: 600px) {
  nav {
    width: 60px;
    display: flex;
    font-size: 0.5em;
    justify-content: flex-end;
    align-items: flex-end;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console