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

              
                <html lang="en">
  <head>
    <meta charset="utf-8">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@200&display=swap" rel="stylesheet">
    <link rel="icon" type="image/png" href="https://image.freepik.com/free-vector/cute-cat-with-love-heart-cartoon-vector-icon-illustration_138676-3455.jpg">
    <title>Project Landing Page</title>
  </head>
  
 <body>
   <header id="header">
     <img id="header-img" src="https://image.freepik.com/free-vector/cute-cat-with-love-heart-cartoon-vector-icon-illustration_138676-3455.jpg" alt="cat with heart icon for logo" width="60px;">
       <nav id="nav-bar">
     <ul>
       <li><a href="#about-inspiration" class="nav-link">About/Inspiration</a></li>
       <li><a href="#pricing" class="nav-link">Pricing</a></li>
       <li><a href="#gallery" class="nav-link">Gallery</a></li>
         </ul>
       </nav>
   </header>
  
<main>
  <article id="about-inspiration">
    <a name="top"></a>
    <h2>About/Inspiration</h2>
    <p>Here's a thumbnail art made by me:</p>
   <iframe id="video" width="500" height="250" src="https://www.youtube.com/embed/ZUuNiq2HATI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </article>
  
  <section id="pricing">
    <h2>Pricing</h2>
     <div class="product" id="sketch">
        <p class="level">Sketch</p>
         <div>$15</div>
        <button class="btn">Select</button>
      </div>
      <div class="product" id="black-and-white">
        <p class="level">Black and White</p>
        <div>$20</div>
        <button class="btn">Select</button>
      </div>
      <div class="product" id="full-color">
        <p class="level">Full Color</p>
        <div>$40</div>  
  <button class="btn">Select</button>
      </div>
  </section>
    
 <section id="gallery">
   <h2>Gallery</h2>
   <img src="https://share-cdn.picrew.me/shareImg/org/202111/1333071_IuBepATS.png" alt="illustration of girl with chestnut brown hair" width="300px;" class="img-1">
<img src="https://share-cdn.picrew.me/shareImg/org/202111/1333071_BIlVmM9b.png" alt="illustration of little girl with grey violet hair" width="300px;" class="img-1">
<img src="https://share-cdn.picrew.me/shareImg/org/202111/1333071_XR07v6Vl.png" alt="illustration of girl with green hair" width="300px;" class="img-1"><br>
  </section>
   </main>
 
   <footer>
     <label for="email">For any enquiries, please send me an email:</label>
 <form id="form" action="https://www.freecodecamp.com/email-submit">
 <input id="email" type="email" name="email" required size="20" placeholder="xxx@xxx.com"><br>
 <input id="submit" type="submit"
name="submit" value="Submit">
    </form>
     <a href="#top" class="backtop">Back to top</a>
     </footer>
     </body>
   </html>
  
   
    
  

              
            
!

CSS

              
                html {
  font-family: 'Inter', sans-serif;
  background-image: url(https://img.rawpixel.com/s3fs-private/rawpixel_images/website_content/rm295-mynt-22_1_1.jpg?w=1200&h=1200&dpr=1&fit=clip&crop=default&fm=jpg&q=75&vib=3&con=3&usm=15&cs=srgb&bg=F4F4F3&ixlib=js-2.2.1&s=91f75e786a1fc4ef4661db3029d3a8c7);
  background-attachment: fixed;
}

body {
  text-align: center;
  margin: 0;
}


header {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-around;
}

#header-img
{
  height: 100%;
}

#nav-bar, .nav-link{
  float: right;
  flex-direction: row;
  font-size: 20px;
}


iframe
{
  border-radius: 10px;
}

ul, li{
  list-style-type: none; 
  display: inline-block;
  margin-right: 30px;
}

.nav-link {
 display: flex;
}

#about-inspiration {
  display: inline-block;
  margin-top: 40px;
}

h2 {
  font-size: 40px;
}

p, #pricing, label {
  font-size: 20px;
}

#gallery {
  margin-bottom: 40px;
}

#email {
  width: 400px;
  border-radius: 8px;
  height: 30px;
}

.product 
{
  border: pink dashed 10px;
  background-color: white;
  margin: 20px 450px;
  padding-bottom: 20px;
  align-items: center;
  justify-content: space-around;
}



::placeholder {
  text-align: center;
}

#submit, .btn {
  margin-top: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  height: 30px;
  border-radius: 4px;
  width: 90px;
  background-color: RGBA(155,248,174,0.4);
}

a:hover{
  color: magenta;
  text-decoration: none;
}

a:link{
  color: purple;
  text-decoration: none;
}


a:visited{
  color: turquoise;
}

@media screen and (max-width: 600px) {
  .img-1{
    width: 100%;
  }
  .product{
    width: 100%;
    justify-items: center;
  }
}

@media screen and (max-width: 922px)
{
  .img-1{
    width: 50%;
  }
  .product
  {
    width: 50%;
    justify-item: center;
  }
}







              
            
!

JS

              
                const projectName = 'product-landing-page';
              
            
!
999px

Console