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

              
                <!DOCTYPE html>
<html lang="en">

<head>
   <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

    <meta charset="utf-8" />
    <title>FastingCoach</title>
    <link rel="icon" type="image/x-icon" href="https://i.ibb.co/QQPbvM3/favicon.png">
    <link rel="stylesheet" type="text/css" href="Landingpage.css">
    <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Mansalva|Montserrat&display=swap" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
        <!--cabecera-->
    <header id="header">
    <div id="barra">
        <nav id="nav-bar">
            <ul>
                <li><a href="#box1">Plans</a>
                    <ul>
                        <li><a href="#box1" class="nav-link">Basic</li></a>
                        <li><a href="#box1" class="nav-link">Advanced</li></a>
                        <li><a href="#box1" class="nav-link">Siddharta</li></a>
                    </ul>
                </li>
                <li><a href="#articles" class="nav-link">Video</a></li>
                <li><a href="index.html">Success Cases</a></li>
            </ul>
        </nav>


        <img id="header-img" src="https://i.ibb.co/CK4WYgq/Screenshot-1.png" alt="Logo">
    </div>


    </header>
<div id="main-content">
    <section id="Product">
        <P id="primert">
            <h1 id="main">FastingCoach</h1>

            <h2 id="core">Your Coach to Guide you in the intermitent Fasting method!</h2>
            <p class="state">Choose one of our plans to apply our unique method to lose weight and getting into
                intermitent fasting appropiately.</p>
        </P>
    </section>


    </div>
    <div class="flex-container">
        <div id="box1">
            <h1>Basic Plan</h1>
            <img src="https://i.ibb.co/2jwMy8g/comida-1.png" alt="topplan" />
            <h2>50$/mo</h2>
            <p><b>What you get:</b></p></br>
            <ol id="plan">
                <li>
                    Complete following about your fasting routine.
                </li></br>
                </br>
                <li>
                    Nutritional Advice
                </li>
            </ol>
        </div>
        <div id="box2">
            <h1>Advanced</h1>
            <img src="https://i.ibb.co/ZKdzgmy/dieta.png" alt="topplan" />
            <h2>80$/mo</h2>
            <p><b>Basic +</b></p></br>
            <ul id="plan">
                <li>
                    Complete Nutritional Design
                </li>
            </ul>
        </div>
        <div id="box3">
            <h1>Siddartha</h1>
            <img src="https://i.ibb.co/WvWksvT/agua.png" alt="topplan" />
            <h2>100$/mo</h2>
            <p><b>Advanced +</b></p></br>
            <ul id="plan">
                <li>
                    Complete Meditation and estoic package
                </li>
            </ul>
        </div>
    </div>
    <div class="videos">
        <div id="articles"></div>
        <h2>Test yourself the benefits of a correct intermiten fasting routine:</h2>

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

        </video>
    </div>

    <section id="prefooter">
        <p id="preform">Don't wait any longer and contact us!</p>
      
        <div id="formy">
          
             <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email"
        required
      />
      <input id="submit" type="submit" value="GO" class="btn" />
    </form>

         
        </div>

    </section>

    <footer>

<!--Inspirated online and asking-->
      
<ul class="social-icons">
    <li class="icon icon--twitter">
      <a id="iconitos" href="Landingpage.html">
        <span class="icon__name">Twitter</span>
      </a>
    </li>
    <li class="icon icon--linkedin">
      <a id="iconitos" href="Landingpage.html">
        <span class="icon__name">LinkedIn</span>
      </a>
    </li>
    <li class="icon icon--instagram">
      <a id="iconitos" href="Landingpage.html">
        <span class="icon__name">Instagram</span>
      </a>
    </li>
  </ul>
<div id="ending">
    All Rights reserved &copy FastingCoach
</div>    

</footer>
<div>
</body>

</html>
              
            
!

CSS

              
                /*
User Story #1: My product landing page should have a header element with a corresponding id="header". DONE]

User Story #2: I can see an image within the header element with a corresponding id="header-img". A company logo would make a good image here. [Done, changing definition of id]

User Story #3: Within the #header element I can see a nav element with a corresponding id="nav-bar".[DONE]

User Story #4: I can see at least three clickable elements inside the nav element, each with the class nav-link.[DONE]

User Story #5: When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.[DONE-INTERLINK]

User Story #6: I can watch an embedded product video with id="video".[DONE]

User Story #7: My landing page has a form element with a corresponding id="form".[DONE]

User Story #8: Within the form, there is an input field with id="email" where I can enter an email address.[DONE]

User Story #9: The #email input field should have placeholder text to let the user know what the field is for.[DONE]

User Story #10: The #email input field uses HTML5 validation to confirm that the entered text is an email address.[DONE]

User Story #11: Within the form, there is a submit input with a corresponding id="submit".[DONE]

User Story #12: When I click the #submit element, the email is submitted to a static page (use this mock URL: https://www.freecodecamp.com/email-submit) that confirms the email address was entered and that it posted successfully.[DONE]

User Story #13: The navbar should always be at the top of the viewport [DONE].

User Story #14: My product landing page should have at least one media query.[DONE]

User Story #15: My product landing page should utilize CSS flexbox at least once. [DONE]*/


/*Usar pseudoclases para seleccionar la lista* DONE/
/*usar Transitions:en botones o donde proceda, pòr ejemplo en las boxes de precio del container principal*/
/*Ver la manera de usar unas animaciones @keyframes DONE*/
/*En el footer trabajar con un fork de codepen para animaciones de social media*/
/*incluir animaciones y transiciones en los botos del menu desplegable DONE*/
/*Incluir Menus desplegables en el navbar DONE*/
/*TRABAJAR CON PSEUDOCLASES DONE*/
/*RESPONSIVE WEB DESIGN*/


body,html{
  padding: 0%;
    margin:0;
    width:100%;
  }
  html{
    position: absolute;
    top: 0px;
    left: 0px; /* Gap left */
    right: 10px; /* Gap right */
    bottom: 0px;
    background:url(paven.png);
  }
  #barra{
    display:block;
    max-height: 55px;
  }

  header{
    position:fixed;
    width: 100%;
    top:-10px;
    background-color: white;
    background-size: cover;
    margin:0px, auto;
    box-shadow: 1px 2px 2px grey;
  }

#header-img{
    float:left;
    width:90px;
    height: 80px;
    margin:0px auto;
    margin-left: 350px;
  }

  /*Menu and desplegable Menu*/
nav{
  display: block;
  text-align: left;
  width:100%;
 
  font-family: 'poppins';
  font-size: 20px;
 padding-bottom: 20px;
 

  
}



nav ul{
  list-style: none;
  text-decoration: none;
  padding: 0%;
  
  width: 1130px;

 
  
}


nav > ul > li{
  float:left;
  padding-right:25px;
  margin-bottom: 10px;
  transition: all 800ms;
  text-decoration: none;
  color:white;
  border-left: none;
  border-right: 1px solid grey;

}

nav > ul >li:last-child{
  border-right: none;
}

nav > ul > li > ul >li{
  display: block;
  margin:0px auto;
  width: 100%;
  padding-bottom:5px;

}

nav ul li a{
  display: block;
  padding-left: 20px;
  padding-right: 20px;
  color:white;
  text-decoration: none;
}

nav ul li:hover{
  background-color: #289DC9;
  color:white;
}


nav ul li:hover ul li{
  color:rgb(90, 86, 86);
}

nav > ul > li > ul >li:hover{
  color:white;
}

nav ul li ul{
  text-decoration: none;
  display: none;
  position: absolute;
  text-align:left;
  font-size: 14px;
  width:89px;
  height: 60px;
  z-index: 1;
  
}

nav > ul > li > ul >li{
  text-decoration: none;
  background-color: white;
  min-width: 150px;
  width: 100%;
  margin:0px auto;
  font-size: 15px;
  display: block;
}

nav > ul > li:hover{
  background-color: #289DC9;
  background: cover;
  color:grey;
  transition: all 1s;
  cursor: pointer;
}

nav > ul > li:hover >ul >li:hover{
  background-color: #289DC9;
  width: 100%;
  font-size: 15px;
  color:blue;
  border:1px solid grey;
    transition: all 1s;
}



nav ul li a{
  display: block;
  color:white;
  text-decoration: none;
  color:rgba(68, 68, 68, 0.815);
}


nav > ul >li:hover >ul{
  display:block;
 
}

/*General Content and Product Explanation*/


#main{
text-align: center;
font-family: 'poppins';
font-weight: 100;
  font-weight: bold;
  font-size: 2.5em;
  color:rgb(90, 86, 86);
}
#main:hover{
  color:#2CBEF1;
  text-shadow: 1px 1px 3px #8E887A;
  transition: all 300ms;
}

#core{
  text-align: center;
font-family: 'mansalva', italic;
color:rgb(90, 86, 86);
font-size: 35px;
}
.state {
  text-align: center;
font-family: 'poppins';
color:rgb(90, 86, 86);
font-size: 25px;
}
#imgportada{
  width: 100%;
  height: 1%;
}

/*Boxes Container*/

.flex-container{
  display: flex;
  justify-content: center;
  width: 100%;
}

#box1, #box2, #box3{

background-color:#289DC9;
margin:40px;
min-width:20%;
max-width: 20%;
border-radius: 5px;
border:2px solid white;

min-height: 25%;
max-height: 25%;
word-wrap: break-word;
font-family: 'poppins';
text-align: center;
text-decoration: none;
font-size:1vw;
color: white;
-webkit-box-shadow: 7px 5px 33px 5px #000000; 
box-shadow: 7px 5px 33px 5px #7a7979;

cursor: pointer;
}

@media screen and (max-width:600px) {
  #box1, #box2, #box3 {
    margin:10px;
    font-size: 2.1vw;
    min-width:100px;
    min-height: 250px;
    text-align: center;
    word-wrap: break-word;
    margin:none;
    padding: none;
  }
}

@media screen and (max-width:600px) {
#plan > li{
  text-align: right;
  font-size: 9px;
  text-decoration: none;
  margin:-10px;
}

@media screen and (max-width:600px) {
  #plan > p{
    font-size: 12px;
    font-weight: bold;
  }
  }
}
#plan > li{
  list-style: none;
  text-decoration: none;
  text-align: left;
  margin-right: 1%;
  
word-wrap: break-word;
}

#box1:hover{
  border: 2px solid goldenrod;
  border-radius: 10px; 
  transition:all 300ms;
  animation-name:desplazamiento;
  animation-duration: 1s;
}


#box2:hover{
  border: 4px solid goldenrod;
  border-radius: 10px;
  transition:all 450ms; 
  animation-name:desplazamiento;
  animation-duration: 1s;
}

#box3:hover{
  border: 6px solid goldenrod;
  border-radius: 10px;
  transition:all 400ms; 
  animation-name:desplazamiento;
  animation-duration: 1s;
}

@keyframes desplazamiento{
  0%{
      margin-top: 0px;
  }
  100%{
    margin-top: 10px;
  }
}

/*Articles Section*/

.videos{
text-align: center;
font-family: 'poppins';
font-size: 20px;
color:rgb(90, 86, 86);
margin-bottom: 25px;
margin-top: 30px;

}

#video{
  border-radius: 5px;
border:1px solid white;
  -webkit-box-shadow: 7px 5px 33px 5px #000000; 
box-shadow: 7px 5px 33px 5px #7a7979;
}

#videoquery:hover{
  border: 6px solid goldenrod;
  border-radius: 10px;
  animation-name:video;
  animation-duration: 300ms;
  
  
}

@keyframes video{
  0%{
    margin-top: 0px;
}
100%{
  margin-top: 10px;
}
}

/*END PART AND FORM PRE FOOTER*/

#preform{
  text-align: center;
  font-family: 'poppins';
  color:rgb(90, 86, 86);
  font-size: 25px;
padding-top: 15px;
}

#form{
  text-align: center;
  font-family: 'poppins';
  color:rgb(90, 86, 86);
  font-size: 25px;
padding-top: 8px;
}

#email, #submit{
padding-right: 30px;
padding-left: 10px;
padding-top: 10px;
padding-bottom: 10px;
border-radius: 10px;
border: 1px solid grey;
}


#submit{
  display: block;
  align-items: center;
  margin:0px auto;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 14%;
  height: 35px;
  background: #289DC9;
  color: white;
 
  text-shadow:none;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
  border:1px solid white;
    -webkit-box-shadow: 7px 5px 33px 5px #000000; 
  box-shadow: 7px 5px 33px 5px #7a7979;
}

#submit:hover{
  border: 2px solid goldenrod;
  border-radius: 10px;
  animation-name:video;
  animation-duration: 300ms;
  cursor:pointer;
  
  
}

@keyframes video{
  0%{
    margin-top: 0px;
}
100%{
  margin-top: 10px;
}
}

/* Footer */

footer{
margin-top: 40px;
  width: 100%;
  height: 94px;
  background-color: #928e8e;
}


/* HACER YO LAS ANIMACIONES PARA LOS LINK SOCIALS -BUSCAR SUS PNG ICONS*/


.icon {
 display: block;
 float: left;
  position: relative;
  width: 5%;
  height: 69px;
  margin: 1% 0.5%;


}
 
@media screen and (max-width:600px){
  .icon{

      width: 35px;
     
  }}


@media screen and (max-width:600px){
  #videoquery{

      width: 350px;
     
  }}

 

  #iconitos {
      display: block;
      position: absolute;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: 10px;
      background-color: #fff;
      background-size: 70%;
      background-repeat: no-repeat;
      background-position: center center;
      transition: all .2s ease-out;
  }

      #iconitos:hover {
          background-color: #222;
          background-size: 0%;
          transition: all .2s ease-out;
      }
  


.icon__name {
  position: absolute;
  top: 50%;
  width: 100%;
  margin-top: -7px;
  color: #fff;
  font-size: 13px;
  text-align: center;

  transition: all .3s ease-out;
  opacity: 0;
  filter: blur(25px);
  transform: translateZ(0);
  will-change: transform;

}

  .icon:hover  {
      transition: all .3s ease-out;
      opacity: 1;
      filter: blur(0);
  }



/*Customize icons*/



.icon--twitter #iconitos {
  background-color: #00aced;
  background-image: url(https://i.ibb.co/j5Jcw90/twitter.png);
}

.icon--linkedin #iconitos {
  background-color: #007fb1;
  background-image: url(https://i.ibb.co/ZcY007x/linkedin-logo.png);
}

.icon--instagram #iconitos {
  background-color: #405de6;
  background-image: url(https://i.ibb.co/Vwgt886/instagram-logo.png);
}


/*Footer*/

#ending{
  text-align: right;
  font-family: 'poppins';
  color:rgb(90, 86, 86);
  font-size: 25px;
padding-top: 45px;
margin:0px auto;
}

@media screen and (max-width:600px){
  #ending{

      font-size: 10px;
     
  }}
              
            
!

JS

              
                
              
            
!
999px

Console