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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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>


<head>
  <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Raleway&display=swap" rel="stylesheet"> 
  <title>PLANTREE: Indoor plants.</title>
 </head>

<body>
  <header id="header">
    <nav id="nav-bar" class="navigation-bar">
      <img class="logo" id="header-img" src="https://i.ibb.co/zfs70N7/iconoverde.png" alt="This product plants one tree">
      <p id="header-name">PLANTREE</p>
      <ul>
        <li><a href="#caracteristicas" class="nav-link">Características</a></li>
        <li><a href="#video" class="nav-link">Vídeo</a></li>
        <li><a href="#precios" class="nav-link">Precios</a></li>
      </ul>
    </nav>
  </header>
  
  <main>
    <section id="caracteristicas">
      <h1 id="title">Plantas de interior para todo tipo de espacios.</h1>
      
      <form id="form" action="/https://www.freecodecamp.com/email-submit">
        
        <input type="email"  id="email" name="email" placeholder="  Introduce tu email." pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" required>
      <br> 
        <input id="submit" type="submit" value="Submit">
        </form><br>
      
    <div class="column">
      <div class="row">
        <img src="https://blush.design/api/download?shareUri=5GPXoTIrV&w=800&h=800&fm=png" alt="Dibujo minimalista de una planta" class="icon1">
        <article class="textos" id="beneficios"> 
          <h2>NUMEROSOS BENEFICIOS</h2>
          <p class="smalltext">Las plantas de interior reducen los niveles de dióxido de carbono, incrementan la humedad del aire, relajan y hacen más agradable el ambiente del hogar. También se ha comprobado que aumentan la eficiencia laboral en las oficinas.</p>
        </article>
        
        
      </div>
      <div class="row">
        <img src="https://blush.design/api/download?shareUri=wklzjlmRn&w=800&h=800&fm=png" alt="Dibujo minimalista de una planta" class="icons2">
       
        <article id="asesoramiento">
          <h2>ASESORAMIENTO GRATUITO</h2>
          <p class="smalltext">En Plantree, amamos las plantas y queremos compartir nuestra pasión contigo ayudándote a elegir tus plantas en función de tus gustos y necesidades. Si tienes dudas, nuestros expertos te asesorarán para escoger las plantas que más se ajusten a tus necesidades.</p>
        </article>
      </div>
      
      <div class="row">
        <img src="https://blush.design/api/download?shareUri=4iVuOOA2n&w=800&h=800&fm=png" alt="Dibujo minimalista de una planta" class="icons2">
        <article class="textos" id="variedad">
          <h2>GRAN VARIEDAD DE PLANTAS</h2>
          <p class="smalltext">Existe una gran variedad de colores, formas y tamaños de las hojas, por lo que siempre es posible combinar con cualquier tipo de decoración y colores de la estancia. El estilo de la maceta también es muy importante, para no desentonar con el resto de elementos decorativos.</p></article>
      </div>
    </div> 
      
      <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/W8sVA4Ds97I?rel=0&amp;controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </section>
    
    <section id="precios">
      <div id="pothos" class="card">
        <h3>Pothos Golden</h3>
        <p class="cardText">Improve your mood with some green splashed with sunbeams!  This lush vining indoor plant can actually climb, transforming its space into a golden-green cascade.  The Pothos Golden, also known as Money Plant, is a particularly great choice for your home of office because it is beautiful AND easy to keep healthy.</p>
        <div class="horizontal">
          <p class="price">$27.50</p>
          <button type="button">COMPRAR</button>
        </div>
      </div>
      <div id="calathea" class="card">
        <h3>Calathea Compact</h3>
        <p class="cardText">This Prayer Plant brings elegance to the prayer plant party! The signature green and red foliage of the Calathea Compact Star will fall at night and rise again to greet the new day. This Prayer Plant brings elegance to the prayer plant party! The signature green and red foliage of the Calathea Compact Star will fall at night. </p>
        <div class="horizontal">
          <p class="price">$39.00</p>
          <button type="button">COMPRAR</button>
        </div>
      </div>
      <div id="monstera" class="card">
        <h3> Monstera Adansonii </h3>
        <p class="cardText">This unique, easy-care vining houseplant can be hard to find, but you’ve come to the right spot! Nicknamed the Swiss Cheese Vine for its perforated, pointed leaves with oblong holes, it is fast-growing and loves to climb. This unusual, yet elegant plant will add personality to any space.</p>
        <div class="horizontal2">
          <p class="price">$65.50</p>
          <button type="button">COMPRAR</button>
        </div>
      </div>
    </section>
    
    
  </main>
 
  
</body>
              
            
!

CSS

              
                body {
background-color: white;
margin: 0;
}

ul {
  top: 0;
  right: 0;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

li, ul {
  float: right;
}

li a {
  font: normal 25px Bebas Neue;
  display: flex;
  color: #493C4C;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 14px 16px;
  margin-top: 50px;
  margin-right: 50px;
  text-decoration: none;
}

li a:hover {
  color: #0F564F;
  text-decoration: underline;
}

.navigation-bar {
    top: 0;
    position: fixed;
    width: 100%;  
    height: 150px; 
    background-color: #f2f1ed; 
    z-index: 1;
}

.logo {
    display: inline-block;
    vertical-align: top;
    width: auto;
    height: 87px;
    margin-left: 89px;
    margin-top: 31px;
}

#header-name {
  display: inline-block;
  vertical-align: top;
  font: normal normal 80px Bebas Neue;
  margin-top: 30px;
  color: #0F564F;
} 

main {
  text-align: center;
}

#title {
  margin-top: 200px;
  text-align: center;
  font: normal normal 40px Raleway;
  line-height: 47px;
  color: #0A7056;
}

#email {
  display: inline-block;
  width: 628px;
  height: 52px;
  background: rgba(159, 200, 185, 0.2);
  border: 1px solid #493C4C;
  box-sizing: border-box;
  border-radius: 5px;
  font: normal normal 24px/28px Raleway;
  text-align: center;
}

#submit {
  width: 264px;
  height: 37px;
  background: #FFFFFF;
  border: 1px solid #4AAF72;
  box-sizing: border-box;
  border-radius: 20px 0px;
  margin-top: 20px;
  font: normal bold 24px/28px Raleway;
  color: #493C4C;
  text-transform: uppercase;
}

#submit:hover {
  background-color: #4AAF72; 
  color: white;
}

.icon1 {
  margin-top: 7px;
  margin-left: 122px;
  width: auto;
  height: 130px;
}

.icons2 {
  margin-top: 7px;
  margin-left: 142px;
  width: auto;
  height: 130px;
}

.column {
  margin-top: 100px;
  display: flex; 
  flex-flow: column nowrap;
}

.row {
  display: flex;
  flex-flow: row nowrap;
  margin-top: 50px;
  margin-bottom: 50px;
}

article {
  position: absolute;
  left: 302px;
  right: 189px;
}

h2 {
  font: italic bold 24px/28px Raleway;
  letter-spacing: 0.12em;
  color: #493C4C;
  text-align: left;
}

.smalltext {
  font: normal normal 18px/21px Raleway;
  text-align: justify;
  letter-spacing: 0.12em;
  color: #000000
}

#video {
  margin-top: 100px;
}

#precios {
  margin-top: 66px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin-bottom: 100px;
}

.card {
  display: flex;
  flex-flow: column nowrap;
  margin: 50px;
  width: 268px;
  height: 390px;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 10px;
}

h3 {
  font: normal bold 18px/57px Raleway;
  letter-spacing: 0.12em;
  margin-top: 0;
  height: 57px;
  background: #ECF4F1;
  border-radius: 10px;
}

.cardText {
  font: normal normal 14px/16px Raleway;
  text-align: justify;
  padding: 0 21px 21px 21px;
  letter-spacing: 0.12em;
  color: #000000;
}

.horizontal {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
}

.price {
  font: normal bold 18px/21px Raleway;
  color: #493C4C;
}

button {
  width: 123px;
  height: 37px;
  background: #FFFFFF;
  border: 1px solid #4AAF72;
  box-sizing: border-box;
  border-radius: 20px 0px;
  font: normal bold 18px/21px Raleway;
  color: #493C4C;
}

button:hover {
  background-color: #4AAF72; 
  color: white;
}

.horizontal2 {
  margin-top: 15px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
}

@media only screen and (max-width: 600px) {
  #header-img, #header-name {
    display: none;
  }
  
 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: top;
}

li, ul {
  float: none;
}

li a {
  display: inline-block;
  margin: 0;
}

.navigation-bar {
    text-align: center;
    height: 170px; 
}
  
 main {
  text-align: center;
}

#title {
  margin: 200px 30px 0 30px;
  font-size: 7vw;
  text-align: justify;
  text-justify: auto;
  padding: 20px 0 40px 0;
}

#email {
  display: block;
  position: absolute;
  top: 354px;
  left: 30px;
  width: 65%;
  height: 40px;
  font-size: 4vw;
  text-align: left;
}

#submit {
  position: absolute;
  top: 334px;
  margin-right: 34px;
  width: 40vw;
  height: 40px;
  font-size: 4vw;
}

.icon1, .icons2 {
  margin-left: 34px;
  width: auto;
  height: 40vw;
}

.column {
  margin-top: 0px;
  margin-right: 34px;
  display: flex; 
  justify-content: space-evenly;
}

.row {
  margin-top: 50px;
}

article {
  padding: 0 20px;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
  background: #FFFFFF;
  box-sizing: border-box;
  position: absolute;
  left: 170px;
  right: 0;
  margin-right: 34px;
}

h2 {
  font-size: 3.5vw;
  letter-spacing: 0.06em;
  text-align: center;
}

.smalltext {
  font-size: 3vw;
  text-align: justify;
  letter-spacing: 0.05em;
  color: #000000
}
  
  
}

              
            
!

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