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

              
                <body>
  <header id="header">
    <img id="header-img" src="https://cdn.shopify.com/s/files/1/0259/7774/9594/files/saharic_34c030c1-9e8a-4912-8ddb-afebc6369d77_140x.png?v=1595218257" alt="saharic logo">
    <nav id="nav-bar">
      <a class="nav-link" href="#about-us">About us</a>
      

        <a class="nav-link" href="#products">Products</a>
        <a class="nav-link" href="#contact-us">Contact us</a>
    </nav>
    
  </header><hr>
  <div class="about">
    <iframe id="video" width="530" height="315" src="https://www.youtube.com/embed/baisnla-oIc?start=40" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay muted; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    <div class=about-text>
  <h1 id="about-us">About us</h1>
      <p id="about-us2"><strong>SAHARIC</strong> was created with the vision to give people different ways to express themselves.

    Also, to give others a chance to represent something that portrays an impenetrable lifestyle.
    
    SAHARIC is a street influenced urban-life brand. Looking forward to bringing our style and creativity to the world.</p></div>
  </div>
<div class="main-products">
  <h1>Our products</h1>
  <div id="products" class="wears">
   <div id="jeans">
     <img id="tops" src="https://cdn.shopify.com/s/files/1/0259/7774/9594/products/frayed_600x.jpg?v=1598434894" alt="a denim top">
     <h3>FRAYED DENIM JACKET</h3>
     <h3>$150</h3>
     <p>Ever had the feeling when the right song comes up it's like you can rule the world? It's the same with this hand-painted denim jacket - those patterns design only mean one thing, and that is a serious fashion business. Go for it. Featuring a classic ripped collar, a front button fastening.</P>
     <button type="button" id="button">Add to Cart</button>
   </div>
   <div class="jeans">
    <img id="tops" src="https://cdn.shopify.com/s/files/1/0259/7774/9594/products/product-image-1229735738_600x.jpg?v=1598435478" alt="a hooded denim top">
    <h3>DISTRESSED HOODED JACKET</h3>
    <h3>$58.99</h3>
    <p>After planning a cute get together in the park with friends, what are you going to wear when drinking and dining in the great outdoors? Why not feel relaxed and chilled in this double-layered blue and pink hooded jacket.

      Made from polyester, spandex, and rayon blend</p>
    <button type="button" id="button">Add to Cart</button>
   </div>

   <div class="jeans">
    <img id="tops" src="https://cdn.shopify.com/s/files/1/0259/7774/9594/products/product-image-1313649450_600x.jpg?v=1598436386" alt="a patched denim top">
    <h3>DUAL DENIM</h3>
    <h3>$78.99</h3>
    <p>There are two things in life that are for certain - taxes, and an unquenchable thirst for denim. However, this denim jacket is sure to bring you one step closer to achieving your denim dreams. It's one small step for denim...and one giant leap for your collection.

      Made from cotton</p>
     <button type="button"id="button">Add to Cart</button>
     </div>
   </div>
  </div>
  
  <div>
  <footer id="footer">
    <p>To subscribe to our newsletter about streetwears:</p>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
    <label for="email"></label>
    <input id="email" type="email" name="email" placeholder="Enter your email">
    <input type="submit" id="submit" value="submit">
    </form>
  <div id="legal">
    <p class="privy">Privacy</p>
    <p class="tems">Terms</p>
    <p id="contact-us" class="contacts">Contact</p>
  </div>
  <p id="copyright"> Copyright saharic</p>
  </footer>
  </div>
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

@media only screen and (min-width: 600px) {
body {
  background-color: purple;
   margin: 0 auto;
 
 
 font-family: 'Roboto', sans-serif;

}
}

#header{
  position: fixed;
  width: 95%
    
}

@media only screen and (min-width: 850px) {
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 35px 10px 50px;
  background-color: pink ;
  height: 10%;
  
}
}


.about {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 95%;
  margin: 15rem 0px 0px 20px;
  padding: 14px;
 
}
#video {
  border-radius: 14px;
}

.about-text {
  width: 550px;
  line-height: 1.2;
  border: 3px solid;
  padding: 10px;
  
  border-radius: 20px;
  background-color: pink;
 margin-top: 0px;
}


.main-products {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}


.wears {
  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 1px;
    padding-top: 10px;
  }

#jeans, .jeans {
  margin-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: pink;
    border: 2px solid white;
    border-radius: 10.75px;
  padding: 40px;
  width: 300px;
  height:450px;
}
#tops {
  width: 267px;
  height: 200px;
}


}
.nav-link {
  color: purple;
}
.nav-link:hover {
  color: black;
}

#button {
  background-color: purple;
  color: white;
  padding: 10px;
  border-radius: 1.2rem;
  cursor: pointer;
}
#button:hover {
  background-color: black;
}
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0 0 0;
  margin-top: 2.5rem;
    text-align: center;
  background-color: pink;
}
#email, #submit {
  padding: 12px;
  border-radius: 1rem;
}

#submit {
 background-color: purple;
  color: white;
  cursor: pointer;
}
#submit:hover {
  background-color: black;
}

#legal {
  display: flex;
  flex-direction: row;
  justify-content: center;
 margin-right: 40px;
}
#copyright {
  margin-right: 35px;
  
}
.privy {
  padding: 3px;
}
.tems {
  padding: 3px;
}
.contacts {
  padding: 3px;
}
              
            
!

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