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

              
                <link rel="stylesheet" href="/css/style.css" />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
      rel="stylesheet"
    />
    <script src="https://kit.fontawesome.com/a1231adea9.js" crossorigin="anonymous"></script>

 <div class="container">
      <header id="header" class="spacing">
        <div class="logo">
        <img src="https://github.com/BGowera/landing-page/blob/main/img/Logo.png?raw=true" alt="nesthub logo" id="header-img"/></div>
     

        <nav id="nav-bar">
          <ul>
            <li><a href="#about" class="nav-link btn">features</a></li>
            <li><a href="#video" class="nav-link btn">history</a></li>
            <li><a href="#store" class="nav-link btn">buy now</a></li>
            <li><a href="#mailing-list" class="nav-link btn">sign up</a></li>
          </ul>
        </nav>
      </header>
      <div class="content">
      <section class="spacing"  id="about">
        <h3 class="hidden">Features Section</h3>
        <div class="feature">
          <i class="fas fa-hand-holding-usd"></i>
         <p>All Prices Include Tax</p>
        </div>
        <div class="feature">
         <i class="fas fa-wallet"></i>
                <p>All Major Payment Platforms Accepted</p>
        </div>
        <div class="feature">
          <i class="fas fa-shipping-fast"></i>
          <p>Fast Shipping</p>
        </div>
        <div class="feature">
          <i class="fas fa-stamp"></i>
          <p>Quality Guaranteed</p>
        </div>
        <div class="feature">
          <i class="fas fa-stamp"></i>
          <p>Constantly Updated Mailing List </p>
        </div>
        <iframe
          id="video"
          src="https://www.youtube.com/embed/Cz5AMSOO2x4"
          title="YouTube video player"
          frameborder="0"
          allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
          allowfullscreen
        ></iframe>
      </section>
      <section class="spacing" id="store">
        <h3>Buy your own today</h3>
        <div class="showcase">
          <div class="showcase-img spacing">
            <h4>basic package</h4>
            <p>
              A single doll.
            </p>
            <img src="https://github.com/BGowera/landing-page/blob/main/img/Basic.jpg?raw=true" alt="a picture of a single matryoshka doll" class="basic"/>
            <a href="#" class="btn">Buy Now</a>
            <p class="price">$100</p>
          </div>
          <div class="showcase-img spacing">
            <h4>standard package</h4>
            <p>
              A collection of 7 dolls.
            </p>
            <img src="https://github.com/BGowera/landing-page/blob/main/img/Standard.jpg?raw=true" alt="7 matryoshka dolls in a line" />
            <a href="#" class="btn">Buy Now</a>
            <p class="price">$185</p>
          </div>
          <div class="showcase-img spacing">
            <h4>deluxe package</h4>
            <p>
             A collection of 15 dolls.
            </p>
            <img src="https://github.com/BGowera/landing-page/blob/main/img/Deluxe.jpg?raw=true" alt="15 matryoshka dolls"/>
            <a href="#" class="btn">Buy Now</a>
            <p class="price">$250</p>
          </div>
          <div class="showcase-img spacing">
            <h4>super-deluxe package</h4>
            <p>
            All the dolls.
            </p>
            <img src="https://github.com/BGowera/landing-page/blob/main/img/SuperDeluxe.jpg?raw=true" alt="25 matryoshka dolls"/>
            <a href="#" class="btn">Buy Now</a>
            <p class="price">$500</p>
          </div>
        </div>
      </section>
      <section class="spacing"  id="mailing-list">
        <h3>Sign up</h3>
        <label for="signup" class="form-label">Join Our Mailing List Today</label>
        <form
          action="https://www.freecodecamp.com/email-submit"
          id="form"
          name="signup"
        >
          <input
            type="email"
            name="email"
            id="email"
            placeholder="you@example.com"
          />
          <input type="submit" id="submit" value="join now" class="btn" />
        </form>
      </section>
      <footer id="footer" class="spacing">
       <p> &copy; NESTMART 2021</p>
        <nav id="footer-nav">
          <ul>
            <li><a href="#" class="btn nav-link">privacy</a></li>
            <li><a href="#" class="btn nav-link">careers</a></li>
            <li><a href="#" class="btn nav-link">contact us</a></li>
          </ul>
        </nav>
      </footer>
      </div>
    </div>
              
            
!

CSS

              
                :root {
  --yellow: #ffbc00;
  --green: #99ffb1;
  --blue: #0043ff;
  --pink: #ff00c3;
  --cream:#FFE8A6
}

html {
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  scroll-padding-top: 19.7em;

}

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

/* h3{
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  
} */


h4{
text-transform: uppercase;
font-size: 1.6em;
}

section{
  margin-top:1.5em;

}

h3{ 
    border: 0; 
    clip: rect(0 0 0 0); 
    height: 1px; 
    margin: -1px; 
    overflow: hidden; 
    padding: 0; 
    position: absolute; 
    width: 1px; 
}

.btn{
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  padding:1em 1.5em;
  background-color: var(--pink) ;
  color:#464646;
font-size: 1.5em;
border-radius: 1em;

}

.btn:hover,
.btn:focus{
  transform:scale(1.1);
  opacity:0.9;
  text-decoration: underline;
  box-shadow: 1px 1px #a59f9f;
}

img{
  display:block;
  max-width:100%;
}

.container{
width:95%;
margin:0 auto;
max-width:116em;
background-color: var(--cream);
line-height: 1.6;
}

.spacing > * + *{
    margin-top: 1.5rem;
}

#header{
display:flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding:2.5em 1.5em;
background-image: url(/img/logopale.png), linear-gradient(115deg, #0043FF 0%, #3D00FF 60%, #00C3FF 100%); 
background-blend-mode: multiply;  
background-repeat: repeat-x;
position: sticky;
top:0;
z-index: 2;
  
}

#nav-bar>ul,
#footer-nav>ul{
  list-style: none;
  display: flex;
  justify-content: center;
  gap:2.5em;
  flex-wrap: wrap;
}

#header-img{
  width:20em;
  height:10em;
  margin: 0;
  padding: 0;
}




.content{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  
}

#about{
  font-size: 1.6em;
  text-align: center;
}

.feature{
  margin-left: 2em;
  display:flex;
  text-align: justify;
  text-transform: uppercase;
  gap:1em;
  font-weight: 600;
    color:#3d3a3a;
    font-size: 2em;
}

#video{
  width:70vw;
  height: auto;
  max-width: 100%;
}

.showcase{
 

  display:flex;
  justify-content: center;
  gap:2em;
  flex-wrap: wrap;
}


.showcase-img{
  background-color: var(--green);
  flex-basis: 40%;
  border: 1px solid var(--yellow);
  border-radius: 1.5em;
  box-shadow: 1px 1px var(--yellow);
  padding:3em 4em;
font-size:2em;
text-align: center;
}



.price{
  font-size:2.3em;
  font-weight: 650;
  color:#3d3a3a;

}

#mailing-list{
  margin-bottom:2em;
}

label{
  font-size: 1.4em;
  font-weight:600;
}

input[type="email"]{
  width:60%;
  border-radius: .5em;
  padding:1em 1.5em;
}

#footer{
  display:flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding:2.5em 1.5em;
background-image: url(/img/logopale.png), linear-gradient(115deg, #0043FF 0%, #3D00FF 60%, #00C3FF 100%); 
background-blend-mode: multiply;  
background-repeat: repeat-x;

}



















@media (max-width:600px){
  #header-img{
    width:10em;
    height:5em;
  }

  .btn,
  input[type="email"]
{
     padding:.5em .75em;
     font-size: 1em;
  }


  #about{
    font-size: 1em;
  }
 
.showcase-img{
  font-size: 1.35em;
}

#video{
  height:40em;
}

.feature{
  font-size:1em;
}

}
              
            
!

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