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>




<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;500&display=swap" rel="stylesheet">
<script src="https://unpkg.com/ionicons@5.4.0/dist/ionicons.js"></script>
  

<link rel="stylesheet" href="style.css"> 

<body> 
  
  <header id="header">    
    <nav id="nav-bar">
      
      <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGFAoj_dXY2FI6cFn_km-BQ1Xau6VwyABKYg&usqp=CAU"  alt="logo" id="header-img">
      
      
      <ul class="main-nav" >
        <li><a href="#1" class="nav-link">Features</a></li>
        <li><a href="#2" class="nav-link">How we do</a></li>
        <li><a href="#3" class="nav-link">Prices</a></li>
      
    </ul>
      
      
  </nav>
  </header >

  <main>

    <div class="main-sign" >
      <h2 id="uno">  
        Create account
      </h2>
      <p>
        For purchases to be aware of offers and delivery, subscribe!
      </p>

      <form  id="form" action="https://www.freecodecamp.com/email-submit"> 
        
        <input type="email" name="email" id="email" placeholder="Put you email here!" required>
        <input type="submit" id="submit" class="button" value="Subscribe!">
      
    </form>
    </div>
    
    

    <section id="1">

    <div class="main-description" >
      <div class="row">

      <div class="col-1-of-3">
        <ion-icon name="logo-whatsapp" class="icon icon-1"></ion-icon>  
        <h3>
          We are avalaible 24/7
        </h3>
              
          <p class="short-p">We work 24 hours a day, 7 days a week, do not hesitate to call or write us, we are always there for you</p>
      </div>

      <div class="col-1-of-3">
        <ion-icon name="heart-outline" class="icon icon-2"></ion-icon>
        <h3>
          Healthy ingredients
        </h3>
        
        <p class="short-p">
          In our menu, high quality ingredients predominate and for any taste, we use 100% organic and quality ingredients, gluten-free or vegan pizzas
        </p>
      </div>

      <div class="col-1-of-3">
        <ion-icon name="warning-outline" class="icon icon-3"></ion-icon>
        <h3>Consider</h3>
        <p class="short-p">
          Due to the time we are living, to eat on our site you only have until noon, the delivery will work 24 hours
        </p>
      </div>

    </div>
    </div>
      
      </section>


      

      

    
    <section class="section-video" id="2">
    <div class="main-video" >
      <h2>
        See how we do it
      </h2>

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

    </div>
      </section>

    <div class="plan-prices" id="3">

      <div class="row">

        <h2>
          Our prices
        </h2>

      <div class="col-1-of-3 box">

        <h3>Personal</h3>
        

          <div class="items">

          

          <ul>
            <li>1 pizza</li>
            <li>2 ingredients</li>
            <li>1 soda</li>
          </ul>

        </div>

        
        <div class="price">2<span>$</span></div>


      </div>

      <div class="col-1-of-3 box">

        <h3>Familiar</h3>
        

          <div class="items">
          <ul>
            <li>1 pizzas</li>
            <li>1 ingredients each</li>
            <li>5 tequeños</li>
            <li>1 soda</li>
          </ul>
        </div>
        
        <div class="price">2<span>$</span></div>


      </div>

      <div class="col-1-of-3 box">

        <h3>Jumbo</h3>
        

          <div class="items">

          <ul>
            <li>2 pizzas</li>
            <li>2 ingredients each</li>
            <li>2 deserts</li>
            <li>1 soda</li>
          </ul>
        
          </div>
        
        <div class="price">2<span>$</span></div>


      </div>

    </div>

    </div>


  </main>

  <footer class="footer">

    <p class="p-footer">
      &copy; Web created by Leandro Davila, all right deserved, 2021
    </p>

  </footer>


</body>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  line-height: 1.7;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

#header {
  background-color: #fff;
  
  
}



#header-img {
  height: 15rem;
  width: auto;
  margin-left: 5rem;
  margin-top: -2rem;
}

nav {
  /* display: block; */
  display: inline-block;
  width: 100%;
  position: fixed;
  top: 0;
  min-height: 7.5rem;
  background-color: #fff;
  z-index: 1;
  height: 11.2rem;
}

main {
  margin-top: 25rem;
}

.main-nav {
  display: block;
  float: right;
  margin-right: 6rem;
  margin-top: 4rem;
}

.main-nav li {
  display: inline-block;
  margin-left: 4.5rem;
  list-style: none;
}

.main-nav li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 3px;
  transition: all .1s;
}

.main-nav li a:hover {
border-bottom: 2px solid orangered;
}

.main-sign {
  text-align: center;
  margin-top: 4rem;
}

.main-sign h2 {
  margin-bottom: 2rem;
  font-size: 3rem;
  transition: all .2s;
}
.main-sign h2:hover {
  transform: skewY(1deg) skewX(1deg) scale(1.1);
  text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2);
}

.main-sign h2:after {
  display: block;
  content: '';
  /* the line */
  border-bottom: 3px solid orangered;
  /* the width of line */
  width: 22rem;
  /* //center */
  margin: 0 auto;
  /* distanci for h2 and the border */
  margin-top: 1rem;
}

input {
  margin-top: 2rem;
  font-size: inherit;
  font-family: inherit;
  outline: none;
}



.button {
  display: block;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 1rem 2rem 1rem 2rem;
  border-radius: 1rem ;
  border: none;
  cursor: pointer;
  background-color: orangered;
  color: #fff;
  box-shadow: 0.5rem 0.8rem 2.8rem #000;
  transition: all .2s;
}

.button:hover {
  transform: scale(1.1);
}


/* distance for main description and main sign */

.main-description {
  background-color: #fff;
  padding: 2rem;
  margin-top: 15rem;
  height: 35rem;
}


.row {
  max-width: 114rem;
  
  margin: 0 auto; }
  .row:not(:last-child) {
    margin-bottom: 8rem; }
  .row::after {
    content: "";
    display: table;
    clear: both; }
  .row [class^="col-"] {
    
    float: left; }
    .row [class^="col-"]:not(:last-child) {
      margin-right: 6rem; }
  .row .col-1-of-2 {
    width: calc((100% - 6rem) / 2); }
  .row .col-1-of-3 {
    width: calc((100% - 2 * 6rem) / 3); }
  .row .col-2-of-3 {
    width: calc(2 * ((100% - 2 * 6rem) / 3) + 6rem); }
  .row .col-1-of-4 {
    width: calc((100% - 3 * 6rem) / 4); }
  .row .col-2-of-4 {
    width: calc(2 * ((100% - 3 * 6rem) / 4) + 6rem); }
  .row .col-3-of-4 {
    width: calc(3 * ((100% - 3 * 6rem) / 4) + 2 * 6rem); }
  


.icon {
  display: block;
  font-size: 5rem;
  margin-bottom: 3rem;
  color: orangered;
  text-align: center;
}

.short-p {
  margin-top: 2rem;
  font-size: 1.8rem;
}

.icon-1 {
  color:#25D366;
}

.icon-2 {
  color: red;
}

.icon-3 {
  color: orange;
}



.main-video {
  margin-top: 2rem;
}

.main-video h2 {
  text-align: center;
  margin-top: 4rem;
  font-size: 3rem;
  transition: all .2s;
}

.main-video h2:after {
  display: block;
  content: '';
  border-bottom: 3px solid orangered;
  width: 22rem;
  margin: 0 auto;
  margin-top: 1rem;
}

.main-video h2:hover {
  transform: skewY(1deg) skewX(1deg) scale(1.1);
  text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2);
}



#video {
  margin-left: 42rem;
  margin-top: 12rem;
}

/* for tablets */

@media only screen and (max-width: 979px) {
  #video {
    margin-left: 20rem;
  }
}

.plan-prices {
  display: flex;
  margin-top: 12rem;
  background-color: #fff;
}


.box {
  justify-content: center;
  text-align: center;
  padding: 3rem;
  border: 1px solid black;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 1rem 1rem #000;  
}

.items {
  border-top: 1px solid black;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid black;
}

.items ul {
  padding: 1rem;
  list-style: none;
}

.items ul li {
  padding: 5px 1rem;
}

.price {
  font-weight: 600;
}

.plan-prices h2 {
  
  font-size: 3rem;
  margin-bottom: 10rem;
  margin-top: 4rem;
  text-align: center;
  transition: all.2s;
}

.plan-prices h2:after {
  display: block;
  content: '';
  /* the line */
  border-bottom: 3px solid orangered;
  /* the width of line */
  width: 22rem;
  margin: 0 auto;
  margin-top: 1rem;
  
}

.plan-prices h2:hover {
  transform: skewY(1deg) skewX(1deg) scale(1.1);
  text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2);
}

.footer {
  background-color: rgb(51, 51, 51);
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  padding: 5rem 0;
  margin-top: 5rem;
}
              
            
!

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