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

              
                <head>
  <script src="https://kit.fontawesome.com/d3e3ddfdc1.js" crossorigin="anonymous"></script>
  <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=Playfair+Display:wght@500&display=swap" rel="stylesheet">

  <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=Great+Vibes&display=swap" rel="stylesheet">
  
  
  <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=Kaisei+HarunoUmi&display=swap" rel="stylesheet">
  
  <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=Noto+Sans&display=swap" rel="stylesheet">
  
</head>
<body>
  <header id="header">
    <img id="header-img" class="logo" src="https://i.ibb.co/q02W4sv/MANA-Logo.png" alt="company logo">
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#why">Why MANA</a></li> 
      <li><a class="nav-link" href="#ad">Product Advert</a></li>
      <li><a class="nav-link" href="#pricing">Perfumes</a></li>
      <li><a class="nav-link" href="#info-ext">Join us</a></li>
      </ul>
    </nav>
  </header>
  <div class="sep"></div>
  <div class="title-sec">
  <div class="title">
    <h1 class="main-title">MANA Perfume Shop</h1>
    <h2 class="slogan">Feed Your Senses</h2>
  </div>
  </div>
  <div class="container">
    <h2 id="why">Why MANA?</h2>
    <section id="why-mana">
      <div class="fcon">
        <div class="icon"><i class="fas fa-air-freshener fa-3x"></i>
        </div>
        <div class="descript">
      <h3 class="features">
        Product availability</h3>
      <p class="ftext">MANA Perfume Shop has the largest collection of perfumes amoung its competitors. All the perfume brands from all around the world are available for purchase at MANA Perfume Shop.</p>
        </div>
      </div>
      <div class="fcon">
        <div class="icon"><i class="fas fa-coins fa-3x"></i></div>
        <div class="descript">
      <h3 class="features"> Affordable prices</h3>
      <p class="ftext">All our products are priced at a whole sale level so you can purchase your desired scents at the lowest possible price. MANA Perfume Shop provides you with the best deals in the market.  
        </div>
      </div>
  
      <div class="fcon">
        <div class="icon"><i class="fas fa-shipping-fast fa-3x"></i></div>
        <div class="descript">
      <h3 class="features">
        Fast delivery</h3>
      <p class="ftext">Same-day delivery in selected cities and Next-day delivery for other locations.</p>
        </div>
      </div>
      <div class="fcon">
        <div class="icon"><i class="fas fa-shield-alt fa-3x"></i></div>
        <div class="descript">
      <h3 class="features">Secure transaction</h3>
      <p class="ftext">We use cutting edge data encryption systems so you can be sure that the information you provide remains safe and secure. </p>
        </div>
      </div>
    </section>
  </div>
  
  <div class="videoadvert">
    <section id="ad">
      <iframe id="video" class="perfumead" height="315" width="290" src="https://www.youtube.com/embed/82rd8et-1Qg?&loop=1&autoplay=1&mute=1&playlist=82rd8et-1Qg" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      <iframe class="perfumead" height="315" width="290" src="https://www.youtube.com/embed/AoErx-fGiPw?&loop=1&autoplay=1&mute=1&playlist=AoErx-fGiPw" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      <iframe class="perfumead" height="315" width="290" src="https://www.youtube.com/embed/qeMqcApmS7g?&loop=1&autoplay=1&mute=1&playlist=qeMqcApmS7g" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </section>
  </div>

  <section id="pricing">
    <div class="perfumes" id="estee">
      <div class="box">
      <h4 class="name-title">ESTEE LAUDER</h4>
      <h4 class="pname">BEAUTIFUL MAGNOLIA</h4>
      </div>
      <img class="pimage" src="https://fimgs.net/mdimg/perfume/375x500.66053.jpg" alt="estee lauder beautiful magnolia perfume image">
      <p class=pnotes>A hypnotic blend with signature notes of lush Magnolia, solar Gardenia, warm Woods and luminous Musk.</p>
      <h5 class="perfprice">$95.00</h5>
      <button class="btn">Add to cart</button>
    </div>
    <div class="perfumes" id="burb">
      <div class="box">
      <h4 class="name-title">BURBERRY</h4>
      <h4 class="pname">HERO</h4>
      </div>
      <img class="pimage" src="https://fimgs.net/mdimg/perfume/375x500.68627.jpg" alt="burberry hero perfume image">
      <p class=pnotes>Unites fresh notes of bergamot with the resinous, aromatic, smoky and potent aroma of juniper.</p>
      <h5 class="perfprice">$99.00</h5>
      <button class="btn">Add to cart</button>
    </div>
    <div class="perfumes" id="chanel">
      <div class="box">
      <h4 class="name-title">CHANEL</h4>
      <h4 class="pname">No 5</h4>
      </div>
      <img class="pimage" src="https://fimgs.net/mdimg/perfume/375x500.40069.jpg" alt="chanel no 5 perfume image">
      <p class=pnotes>Composed around May Rose and Jasmine features bright citrus top notes with a smooth touch of Bourbon Vanilla.</p>
      <h5 class="perfprice">$138.00</h5>
      <button class="btn">Add to cart</button>
    </div>
  </section>
  <section id="info-ext">
    <div class="email-sub">
      <p class="pemail">Subscribe to our newsletter by submitting your email address below. We will keep you up to date with all the latest perfumes, offers and sales.</p>
      <form action="https://www.freecodecamp.com/email-submit" id="form">
        <input name="email" id="email" type="email" placeholder="example@gmail.com"
               required>
        <div></div>
        <input id="submit" class="button" type="submit" value="Subscribe">
      </form>
    </div>
  </section>
  <footer>
    <ul class="foot-nav">
      <li class="foot-link"><a href="#">Privacy</a></li>
      <li class="foot-link"><a href="#">Terms</a></li>
      <li class="foot-link"><a href="#">Contact</a></li>
    </ul>
    <p class="footer-note">Copyright 2021, Mana Perfume Shop</p>
  </footer>
</body>
  
  
    
      
    
     
    
    
  
              
            
!

CSS

              
                body{
  text-align: center;
  font-size: 62.5%;
  position: relative;
  background-color:#f7ebdd;
  background-image: url("https://www.transparenttextures.com/patterns/fake-luxury.png");
}

header{
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
  background-color:rgba(7,88,81,1);
  height:8vw;
  width:100vw;
  font-size:1.6em;
  position:fixed;
  top: 0;
  margin-left:-2vw;
  margin-right:-2vw;
}
nav > ul{
  display:flex;
  flex-direction:row;
  justify-content:space-evenly;
  align-items:center;
  width:45vw;
  margin:1vw;
}
.nav-link{
  color:#F4BB00;
 font-family: 'Playfair Display', serif;
}
.sep {
  max-width:1000px;
  width: 100%;
  margin: 0 auto;
  
}
.title-sec{
  background:url(https://img.ti-media.net/wp/uploads/sites/46/2019/05/GettyImages-1224687466-920x517.jpg);
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:fixed;
  width:100vw;
  height:35vw;
  margin-top:8vw;
  margin-left:-3vw;
  margin-right:-3vw;
}
.main-title{
  padding-top:1vw;
  font-family: 'Playfair Display', serif;
  font-size:2.5rem;
}
.slogan{
  font-family: 'Great Vibes', cursive;
  font-size:1.8rem;
}
.fcon{
  display: flex;
}  
#why-mana{
  margin:2vw;
  padding:1vw;
  font-family: 'Kaisei HarunoUmi', serif;
  font-size:1.6em;
  
}
#why-mana .icon{
  color:#9c004b;
  display:flex;
  justify-content:center;
  align-items:center;
  height: 15vw;
  width: 20vw;
}
#why-mana .descript{
  display:flex;
  flex-direction:column;
  justify-content:center;
  height: 11vw;
  width: 100vw;
  padding:1vw;
  margin:1vw;
  text-align:start;
}
.ftext{
  margin-top:-0.5vw;
}
li{
  list-style:none;
}
a{
  text-decoration:none;
}
#why{
  text-align:center;
  font-size:3em;
  font-family: 'Kaisei HarunoUmi', serif;
  margin-top:5vw;
}
#ad{
  display:flex;
  flex-direction:row;
  justify-content:center;
  margin:1vw;
  margin-top:5vw;
  
}
.perfumead{
  width:100vw;  
}
#pricing{
  display:flex;
  flex-direction:row;
  justify-content:space-evenly;
 align-items:center;
  margin-top:5vw;
  
}
.perfumes{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  border:1px solid;
  border-radius:3px;
  margin:1vw;
  background-color:rgba(255, 255, 255, 1);
;
}
.box{
background-color:rgba(245, 245, 245,0.8);
  width:30vw;
  
}
.pimage{
  width:10vw;
  height:13vw;
}
.name-title , .pname{
  font-family: 'Playfair Display', serif;
  font-size:1.7em;
 
}
.pname{
  margin-top:-1.5vw;
}
.pnotes{
  font-family: 'Kaisei HarunoUmi', serif;
  font-size:1.3em;
  width:30vw;
}
.perfprice{
  font-size:1.9em;
}
.btn{
  width:30vw;
  height:4vw;
  font-size:1.4em;
}
.btn:hover{
  transform:scale(1.02);
  cursor:pointer;
  background-color:#ff66b0;
  transition:background-color 1s;
  color:white;
}
#info-ext{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  margin-top:5vw;
  font-family: 'Kaisei HarunoUmi', serif;
  font-size:1.6em;
}
#email{
  width:25vw;
  height:2.5vw;
}
#submit{
  margin-top:2vw;
  width:15vw;
  height:2.8vw;
  background-color:#f5e20d;
  border-style:none;
  font-size:1em;
}
#submit:hover{
  transform:scale(1.06);
  transition: background-color 1s;
  cursor:pointer;
  background-color:#ff66b0;
  color:white;
}
footer{
  display:flex;
  background-color:#d4d4d4;
  margin-top:6vw;
  flex-direction:column;
  margin-bottom:-1vw;
  margin-left:-3vw;
  margin-right:-3vw;
  width:100vw;
}
.foot-nav{
  display:flex;
  flex-direction:row;
  justify-content:flex-end;
 align-items:center;
}
footer > ul > li{
  padding:1vw 2vw 0vw 1vw;
  font-size:1.5em;
  
}
.foot-link{
  
}
.footer-note{
  display:flex;
  flex-direction:row;
  justify-content:flex-end;
  padding: 0 2vw;
  font-size: 1.4em;
  color:#525252;
  font-family: 'Noto Sans', sans-serif;
  margin-top:-0.1vw;
}
footer > ul > li > a{
  color:black;
  font-family: 'Noto Sans', sans-serif;
}

@media (max-width:858px){
  #ad{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .perfumead{
    width:60vw;
  }
 #pricing{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .perfumes{
    width:40vw;
  }
  .box{
    width:40vw;
  }
  .pnotes{
    width:35vw;
  }
  .btn{
    width:40vw;
    height:4vw;
  }
}

@media (max-width:730px){
  nav > ul{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    font-size:0.8em;
   
  }
  .title-sec{
    margin-top:10vw;
  }
  .logo{
    width:20vw;
    position:relative;
  }
  header{
    height:10vw;
  }
  .icon{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
   
  }
  .descript{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    margin:0 auto;
  }
  .fcon{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .ftext{
    text-align:center;
    margin-left:8vw;
    margin-right:8vw;
  }
  #ad{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .perfumead{
    width:60vw;
  }
  #pricing{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .perfumes{
    width:50vw;
  }
  .box{
    width:50vw;
    font-size:1.6vw;
  }
  .pnotes{
    width:45vw;
    font-size:2vw;
  }
  .btn{
    width:50vw;
    height:5vw;
    font-size:2.2vw;
  }
  .perfprice{
    font-size:3vw;
  }
  
  }
@media (max-width:600px){
  header{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    text-align:center;
    height:15vw;
  }
  .logo{
    position:relative;
    width:30vw;
    text-align:center;
  }
  nav > ul{
    margin-left:-5vw;
    font-size:2.5vw;
  }
  .title-sec{
    margin-top:15vw;
    height:50vw;
  }

  .features{
    margin: 0 auto;
    font-size:3vw;
  }
  .ftext{
    margin: 0 auto;
    font-size:2.5vw;
    text-align:center;
    margin-left:8vw;
    margin-right:8vw;
  }
  .main-title{
    font-size:7vw;
  }
  .slogan{
    font-size:5vw;
  }
  #why{
    font-size:5vw;
  }
  .pemail{
    font-size:2.5vw;
  }
  #email{
    width:40vw;
    font-size:2.5vw;
  }
  #submit{
    width:25vw;
    height:5vw;
    font-size:2.5vw;
  }
  footer > ul > li{
    font-size:2.6vw;
  }
  .footer-note{
    font-size:2.45vw;
  }
  
}


              
            
!

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