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

              
                <header id="header">
  <div class="header-logo">
    <img id="header-img" src="http://stellinadiving.com/wp-content/uploads/2018/10/free-football-logo-design-free-logo-maker-soccer-football-logo-design-template-printable.png" alt="logo" alt="flame-soccer-ball">
    <p class="header-txt">Champions Soccer Balls</p>
  </div>
  <nav id="nav-bar">
    <ul>
      <li><a href="#header" class="nav-link">Home</a></li>
      <li><a href="#product-select" class="nav-link">Products</a></li>
      <li><a href="#intro" class="nav-link">Description</a></li>
      <li><a href="#form" class="nav-link">Sign Up</a></li>
    </ul>
  </nav>

</header>

<div id="container">

  <div class="ball-img">
    <div class="column1">
      <h2>Champion's Professional Soccer Balls</h2>
      <p> Having just the right soccer ball can make it easy to sharpen your skills each time you step on the soccer pitch. If you're headed to the park to play a quick pickup game, brightly colored adidas soccer balls can help make it easy to distinguish
        your match from other games that might be being played nearby. <br><br>Dribbling skills conducted with mini soccer balls can hone your control skills, so you can glide past defenders with ease. Look for 12-panel soccer balls that provide a true,
        accurate flight with each strike. <br><br>If you prefer playing indoors, check out a futsal ball that's slightly smaller than regulation soccer balls and is designed for use on hard indoor courts.
      </p>
    </div>
    <img class="column2" src="https://fgl.scene7.com/is/image/FGLSportsLtd/FGL_332562679_10_a?wid=288&hei=288&op_sharpen=1&resMode=sharp2" alt="a-soccer-ball">
  </div>

  <div id="intro">
    <div class="intro-text">
      <h2>Our Soccer Balls</h2>
      <p>Our balls provide a realistic feel and bounce as you move down the pitch, or choose colorful Brava soccer balls to show off support for your country's World Cup team. Pick up adidas soccer balls that highlight your love for your favorite football
        club, so that everyone will know if you support Man U or Chelsea.</p>
    </div>
    <div class="intro-vid">
      <iframe id="video" width="300" height="270" src="https://www.youtube.com/embed/zbLjk4OTRdI" allowfullscreen></iframe>

    </div>
  </div>

  <div class="prdct-heading">
    <h2>Find The Coolest Soccer Balls For Less:</h2>
  </div>

  <div id="product-select">
    <div class="buy-card">
      <div class="card-head">
        <h3>Tornado</h3>
      </div>
      <p>$100</p>
      <img src="https://www.soccermaster.com/wp-content/uploads/sc3101_008_nike_pitch_training_ball_sm_01.jpg" alt="tornado-ball">
      <button type="submit" name="buy">Select</button>
    </div>
    <div class="buy-card">
      <div class="card-head">
        <h3>Bullet</h3>
      </div>
      <p>$100</p>
      <img src="https://images.footballfanatics.com/FFImage/thumb.aspx?i=/productimages/_2684000/ff_2684796_full.jpg&w=900" alt="bullet-ball">
      <button type="submit" name="buy">Select</button>
    </div>
    <div class="buy-card">
      <div class="card-head">
        <h3>Dynamo</h3>
      </div>
      <p>$150</p>
      <img src="https://s3-eu-west-1.amazonaws.com/images.linnlive.com/f8cdeb43a8fbb907a6efe8a78fb17e14/a9226212-6b94-4721-8984-9b6ee140e504.jpg" alt="dynamo-ball">
      <button type="submit" name="buy">Select</button>
    </div>
    <div class="buy-card">
      <div class="card-head">
        <h3>Shruken</h3>
      </div>
      <p>$180</p>
      <img src="https://soccersworlds.com/wp-content/uploads/2017/05/HTB1q3ffMVXXXXcUXFXXq6xXFXXXI-1.jpg" alt="shruken-ball">
      <button type="submit" name="buy">Select</button>
    </div>
    <div class="buy-card">
      <div class="card-head">
        <h3>Golden</h3>
      </div>
      <p>$500</p>
      <img src="https://fixedmatches.tips/wp-content/uploads/2017/07/cropped-soccer-ball-logo-1.png" alt="golden-ball">
      <button type="submit" name="buy">Select</button>
    </div>
    <div class="buy-card">
      <div class="card-head">
        <h3>Universe</h3>
      </div>
      <p>$300</p>
      <img src="http://cdn3.volusion.com/goz35.avhz4/v/vspfiles/photos/EB-NISC2461-774-2.jpg" alt="universe-ball">
      <button type="submit" name="buy">Buy</button>
    </div>
  </div>

  <div id="service">
    <div class="grt-prdct">
      <i class="fas fa-certificate"></i>
      <h3>Great Product</h3>
      <p>Our balls are made from the finest polyester material and tested under laboratory and field conditions
    </div>
    <div class="shipping">
      <i class="fas fa-shipping-fast"></i>
      <h3>Fast Shipping</h3>
      <p>We ship your orders same day they are placed and also offer free returns</p>
    </div>
    <div class="cust-serv">
      <i class="fas fa-comment"></i>
      <h3>Excellent Customer service</h3>
      <p>Our team are always ready to chat with you. Contact us through any of our contact links and we will be there to attend to you.</p>
    </div>
  </div>

  <form id="form" action="https://www.freecodecamp.com/email-submit">

    <input name="email" type="email" id="email" placeholder="Enter your email" required/>

    <input type="submit" id="submit" value="Submit" />

  </form>

</div>

<footer>
  <div class="assoc">
    <img src="https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/UEFA_Champions_League_logo_2.svg/1200px-UEFA_Champions_League_logo_2.svg.png" alt="uefa-logo">
    <img src="https://les10meilleurs.fr/wp-content/uploads/2014/12/fifa-logo.png" alt="fifa-logo">
    <img src="http://logok.org/wp-content/uploads/2014/11/Premier-League-Logo-shield.png" alt="epl-logo">
    <img src="http://www.cafonline.com/portals/0/Images/Caf-logo-.jpg" alt="caf-logo">
  </div>
  <p>Copyright @ mdotcoder</p>
</footer>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Abel', sans-serif;
}

#container {
  width: 1000px;
  margin: 0 auto;
}
  
#header {
  background: #ddd;
  height: 130px;
}

.header-logo {
  width: 500px;
  margin-left: 250px;
  display: grid;
  grid-template-columns: 200px 300px; 
}

#header-img {
  width: 100px;
  margin: 0 auto;
  margin-right: 10px;
  
}

.header-txt {
  margin-top: 15px;
  font-family: 'Ceviche One', cursive;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 3em;
  color: green;
  text-shadow: 1.5px 1.5px #558ABB;
}

#nav-bar {
  width: 100%;
  top: 0;
  position: fixed;
  text-align: end;
  
}

#nav-bar ul {
  list-style-type: none;
  
}

#nav-bar li {
  display: inline-block;
  padding: 4px;
  margin: 35px 30px;
  font-size: 1.5em;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  color: #302107
}

.nav-link:hover {
  color: #ad771b
}

.ball-img {
  width: 100%;
  margin: 80px auto; 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.column1 {
  flex: 0 0 60%;
}

.column2 {
  flex: 0 0 25%;
}

.ball-img img {
  width: 100px;
}

#intro {
  display: flex;
  width: 100%;
  margin: 40px auto;
  justify-content: space-between;
}

.intro-text {
  
  flex: 0 0 60%;
}

.intro-vid {
  
  flex: 0 0 20%;
}

.prdct-heading {
  margin: 0 auto;
}

#product-select {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 100%;
  margin: 30px auto 80px;
}

.buy-card {
  
  margin: 10px;
  padding: 2px 0 10px;
  border: 1px solid black;
  border-radius: 3px;
  flex: 1 0 25%;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; 
  text-align: center;
}

.buy-card p, img {
  margin-top: 10px;
}

.card-head {
  background: #ddd;
  align-self: stretch;
  position: top;
  padding: 10px 0;
  width: 100%;
}

.buy-card button[type="submit"] {
  box-sizing: border-box;
  border-radius: 2px;
  background: #8b798c;
  font-weight: 300;
  text-transform: uppercase;
  color: white;
  padding: 0.35em 0.75em;
  margin: 1em;
  border: none;
  font-size: 1.1em;
  text-decoration: none;
  cursor: pointer;
}

.buy-card img
{
  width:150px;
  cursor: pointer;
}

#service {
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
}

#service i {
    color: #ea1809;
    text-shadow: 1px 1px 1px #ccc;
    font-size: 2.5em;
}

.grt-prdct {
  max-width: 850px;
  display: grid;
  grid-template-columns: 100px 100px 500px;
  grid-template-rows: 80px;
}

.shipping {
  display: grid;
  grid-template-columns: 100px 100px 500px;
  grid-template-rows: 80px;
}

.cust-serv {
  display: grid;
  grid-template-columns: 100px 100px 500px;
  grid-template-rows: 80px;
}

#form {
  width: 60%;
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
}

#email {
  width: 500px;
  box-sizing: border-box;
  background: #e9e9e9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.5em 1em;
  border: none;
  font-size:1.1em;
  text-decoration: none;
  line-height: normal;
  max-height: 3em;
}

#submit {
  box-sizing: border-box;
  border-radius: 0px 2px 2px 0px;
  background: #8b798c;
  font-weight: 300;
  text-transform: uppercase;
  color: white;
  padding: 0.5em 1em;
  border: none;
  font-size: 1.1em;
  text-decoration: none;
  cursor: pointer;
}

#submit:hover {
  background: grey;
}

footer {
  margin-top: 80px;
  margin-bottom: 0px;
  padding: 20px;
  background: #e5e3e3;
  
}

.assoc {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-around;
}

.assoc img {
  width: 60px;
  height:50px;
}

footer p {
  text-align: center; 
  
}

@media (max-width: 800px) {
    #product-select { max-width: 300px; width: 100%; margin: 0 auto; margin-bottom: 10px; }
  }

              
            
!

JS

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

              
            
!
999px

Console