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

              
                
<header id="header">
  <nav id="nav-bar">
  <div id="logo"> 
<svg id ="logo-svg"xmlns="http://www.w3.org/2000/svg"
     width="5.5em" height="5.5em"
     viewBox="0 0 200 196">
  <path id="Zaznaczenie"
        fill="black" stroke="black" stroke-width="1"
        d="M 71.00,8.00
           C 74.85,10.76 83.82,18.71 85.40,23.00
             86.36,25.60 86.00,36.55 86.00,40.00
             86.00,40.00 97.00,40.00 97.00,40.00
             97.00,40.00 97.00,15.00 97.00,15.00
             97.00,15.00 105.00,15.00 105.00,15.00
             105.00,15.00 105.00,40.00 105.00,40.00
             105.00,40.00 116.00,40.00 116.00,40.00
             116.00,36.55 115.64,25.60 116.60,23.00
             118.16,18.75 126.23,11.70 130.00,9.00
             137.58,18.18 128.83,18.38 125.02,26.00
             123.51,29.02 124.00,36.40 124.00,40.00
             124.00,40.00 152.00,40.00 152.00,40.00
             154.52,40.05 157.40,39.95 158.98,42.31
             160.12,44.02 159.99,47.00 160.00,49.00
             160.00,49.00 160.00,76.00 160.00,76.00
             164.39,76.00 171.29,76.75 175.00,74.40
             178.35,72.28 184.04,64.25 187.94,65.34
             195.58,67.47 186.24,75.80 184.00,78.00
             175.57,86.29 171.21,84.00 160.00,84.00
             160.00,84.00 160.00,95.00 160.00,95.00
             160.00,95.00 185.00,95.00 185.00,95.00
             185.00,95.00 185.00,103.00 185.00,103.00
             185.00,103.00 160.00,103.00 160.00,103.00
             160.00,103.00 160.00,114.00 160.00,114.00
             171.21,114.00 175.57,111.71 184.00,120.00
             186.24,122.20 195.58,130.53 187.94,132.66
             184.04,133.75 178.35,125.72 175.00,123.60
             171.29,121.25 164.39,122.00 160.00,122.00
             160.00,122.00 160.00,150.00 160.00,150.00
             159.95,152.52 160.05,155.40 157.69,156.98
             155.98,158.12 153.00,157.99 151.00,158.00
             151.00,158.00 124.00,158.00 124.00,158.00
             124.00,162.39 123.25,169.29 125.60,173.00
             127.72,176.35 135.75,182.04 134.66,185.94
             132.53,193.58 124.20,184.24 122.00,182.00
             113.71,173.57 116.00,169.21 116.00,158.00
             116.00,158.00 105.00,158.00 105.00,158.00
             105.00,158.00 105.00,185.00 105.00,185.00
             105.00,185.00 97.00,185.00 97.00,185.00
             97.00,185.00 97.00,158.00 97.00,158.00
             97.00,158.00 86.00,158.00 86.00,158.00
             86.00,161.45 86.36,172.40 85.40,175.00
             83.66,179.73 74.55,187.85 70.00,190.00
             70.00,190.00 66.00,184.00 66.00,184.00
             66.00,184.00 77.40,171.00 77.40,171.00
             77.40,171.00 78.00,158.00 78.00,158.00
             78.00,158.00 50.00,158.00 50.00,158.00
             47.48,157.95 44.60,158.05 43.02,155.69
             41.88,153.98 42.01,151.00 42.00,149.00
             42.00,149.00 42.00,122.00 42.00,122.00
             38.40,122.00 31.02,121.51 28.00,123.02
             24.20,124.92 20.19,130.71 17.00,131.83
             15.06,132.52 12.99,131.83 12.17,129.85
             10.82,126.62 14.99,123.04 17.00,121.00
             26.33,111.56 29.32,114.00 42.00,114.00
             42.00,114.00 42.00,103.00 42.00,103.00
             42.00,103.00 22.00,103.00 22.00,103.00
             22.00,103.00 16.06,101.40 16.06,101.40
             16.06,101.40 16.06,95.00 16.06,95.00
             16.06,95.00 42.00,95.00 42.00,95.00
             42.00,95.00 42.00,84.00 42.00,84.00
             38.55,84.00 27.60,84.36 25.00,83.40
             20.71,81.82 12.76,72.85 10.00,69.00
             10.00,69.00 16.00,64.00 16.00,64.00
             16.00,64.00 29.00,75.40 29.00,75.40
             29.00,75.40 42.00,76.00 42.00,76.00
             42.00,76.00 42.00,48.00 42.00,48.00
             42.05,45.48 41.95,42.60 44.31,41.02
             46.02,39.88 49.00,40.01 51.00,40.00
             51.00,40.00 78.00,40.00 78.00,40.00
             78.00,36.40 78.49,29.02 76.98,26.00
             72.98,18.00 63.18,17.47 71.00,8.00 Z
           M 152.00,48.00
           C 152.00,48.00 50.00,48.00 50.00,48.00
             50.00,48.00 50.00,150.00 50.00,150.00
             50.00,150.00 152.00,150.00 152.00,150.00
             152.00,150.00 152.00,48.00 152.00,48.00 Z
           M 68.00,56.65
           C 73.60,55.49 83.88,56.00 90.00,56.00
             90.00,56.00 128.00,56.00 128.00,56.00
             140.21,56.17 143.98,62.75 144.00,74.00
             144.00,74.00 144.00,116.00 144.00,116.00
             144.00,121.57 144.77,130.19 141.91,134.96
             137.98,141.53 131.81,141.99 125.00,142.00
             125.00,142.00 77.00,142.00 77.00,142.00
             70.54,141.99 64.89,141.70 60.70,135.91
             58.07,132.27 58.02,128.27 58.00,124.00
             58.00,124.00 58.00,85.00 58.00,85.00
             58.00,73.63 55.23,62.02 68.00,56.65 Z
           M 136.00,77.00
           C 136.00,73.43 136.52,68.16 133.57,65.60
             131.38,63.69 127.74,64.01 125.00,64.00
             125.00,64.00 85.00,64.00 85.00,64.00
             75.82,64.00 66.71,61.01 66.00,73.00
             71.16,72.13 74.09,71.26 76.00,77.00
             76.00,77.00 69.00,76.00 69.00,76.00
             69.24,76.70 69.11,77.19 69.98,78.38
             70.86,79.59 81.87,86.22 73.85,90.98
             72.94,91.52 72.02,91.69 71.00,91.93
             71.00,91.93 66.00,91.93 66.00,91.93
             66.00,91.93 66.00,123.00 66.00,123.00
             66.02,125.79 65.82,129.32 67.74,131.57
             70.15,134.41 74.63,133.99 78.00,134.00
             78.00,134.00 117.00,134.00 117.00,134.00
             120.67,134.00 129.92,134.57 132.77,132.83
             136.49,130.56 135.99,125.75 136.00,122.00
             136.00,122.00 130.00,121.00 130.00,121.00
             130.00,121.00 130.00,127.00 130.00,127.00
             130.00,127.00 126.00,127.00 126.00,127.00
             126.00,127.00 126.00,107.00 126.00,107.00
             126.00,107.00 136.00,107.00 136.00,107.00
             136.00,107.00 136.00,92.00 136.00,92.00
             128.67,90.80 129.02,87.40 129.00,81.00
             129.00,81.00 125.00,81.00 125.00,81.00
             125.00,81.00 125.00,77.00 125.00,77.00
             125.00,77.00 129.00,77.00 129.00,77.00
             129.00,77.00 129.00,73.00 129.00,73.00
             129.00,73.00 133.00,73.00 133.00,73.00
             133.00,73.00 133.00,77.00 133.00,77.00
             133.00,77.00 136.00,77.00 136.00,77.00 Z
           M 79.00,77.00
           C 81.51,77.18 89.87,76.83 91.42,78.05
             93.81,79.94 93.00,88.95 93.00,92.00
             93.00,92.00 89.00,92.00 89.00,92.00
             89.00,92.00 88.00,81.00 88.00,81.00
             88.00,81.00 88.00,92.00 88.00,92.00
             88.00,92.00 84.00,92.00 84.00,92.00
             84.00,92.00 83.00,80.00 83.00,80.00
             83.00,80.00 83.00,92.00 83.00,92.00
             83.00,92.00 79.00,92.00 79.00,92.00
             79.00,92.00 79.00,77.00 79.00,77.00 Z
           M 96.00,82.00
           C 97.37,74.20 105.23,77.11 106.83,79.43
             108.47,81.82 108.00,88.95 108.00,92.00
             105.79,91.89 98.70,92.05 97.28,91.40
             95.84,90.74 94.98,89.54 94.79,87.96
             94.22,83.12 99.58,82.18 103.00,81.00
             103.00,81.00 96.00,82.00 96.00,82.00 Z
           M 112.00,77.00
           C 121.31,77.29 122.97,76.16 124.00,82.00
             115.99,80.68 117.01,85.95 117.00,92.00
             117.00,92.00 112.00,92.00 112.00,92.00
             112.00,92.00 112.00,77.00 112.00,77.00 Z
           M 137.00,81.00
           C 137.00,81.00 133.00,81.00 133.00,81.00
             133.00,81.00 133.00,88.00 133.00,88.00
             133.00,88.00 137.00,88.00 137.00,88.00
             137.00,88.00 137.00,81.00 137.00,81.00 Z
           M 67.00,82.00
           C 65.05,87.49 68.53,87.84 73.00,88.00
             71.67,84.21 70.35,84.00 67.00,82.00 Z
           M 103.00,86.00
           C 103.00,86.00 99.00,86.00 99.00,86.00
             99.00,86.00 100.00,89.00 100.00,89.00
             100.00,89.00 102.00,89.00 102.00,89.00
             102.00,89.00 103.00,86.00 103.00,86.00 Z
           M 88.00,118.00
           C 84.97,112.47 78.87,112.36 80.33,106.11
             81.35,101.75 90.65,99.14 92.00,107.00
             92.00,107.00 84.00,108.00 84.00,108.00
             85.83,108.80 88.22,109.74 89.77,110.97
             98.67,117.98 85.25,125.73 81.02,120.40
             80.04,119.17 80.12,117.47 80.00,116.00
             80.00,116.00 88.00,118.00 88.00,118.00 Z
           M 95.00,102.00
           C 95.00,102.00 100.00,102.00 100.00,102.00
             100.00,102.00 100.00,107.00 100.00,107.00
             102.10,107.07 104.52,106.88 106.23,108.60
             108.07,110.83 108.95,118.92 106.23,120.98
             105.34,121.84 104.22,121.79 103.00,122.00
             103.00,122.00 103.00,111.00 103.00,111.00
             103.00,111.00 100.00,111.00 100.00,111.00
             100.00,111.00 100.00,122.00 100.00,122.00
             100.00,122.00 96.02,120.40 96.02,120.40
             96.02,120.40 95.00,102.00 95.00,102.00 Z
           M 113.23,108.02
           C 124.83,103.94 126.76,119.77 117.98,121.67
             110.69,123.25 107.06,113.69 113.23,108.02 Z
           M 115.00,118.00
           C 119.95,116.27 119.95,112.73 115.00,111.00
             115.00,111.00 115.00,118.00 115.00,118.00 Z
           M 134.00,111.00
           C 129.05,112.73 129.05,116.27 134.00,118.00
             134.00,118.00 134.00,111.00 134.00,111.00 Z" />
</svg>
    <img id="header-img" src="">
    </img>
</div>
    <a class="nav-link" href="#products">Products</a>
    <a class="dot">&#9670</a>
    <a class="nav-link" href="#about_us">About Us</a>
    <a class="dot">&#9670</a>
    <a class="nav-link" href="#contact">Contact </a>
  </nav>
</header>

<br>

<div class="background-vid">

  <section id="video-section">
    <div id="lines">
      <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/eo78Pe_q3B8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
  </section>
</div>

<section id="products">

  <div id="products-div">
    <a href="" target="_blank" class="product product-tile">
      <img class="product-image" src="https://m.media-amazon.com/images/I/51waLiwB6XL._AC_SY780_.jpg" alt="product" />

      <p class="product-title">Phone
      </p>
    </a>
    <a href="" target="_blank" class="product product-tile">
      <img class="product-image" src="https://m.media-amazon.com/images/I/41qPw+U8psS._AC_SY1000_.jpg" alt="product" />
      <p class="product-title">Phone
      </p>
    </a>
    <a href="" target="_blank" class="product product-tile">
      <img class="product-image" src="https://m.media-amazon.com/images/I/41LukVzEhFL._AC_.jpg" alt="product"/>
      <p class="product-title">Phone
      </p>
    </a>
  </div>
</section>

<section id="about_us">
  <div id="grid">
    <div class="icon"><i class=" fa fa-3x fa-truck"></i></div>
    <div class="text-about-us">
      <h2>Shipping in 48h</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    </div>
    <div class="icon"><i class=" fa fa-3x fa-recycle"></i></div>
    <div class="text-about-us">
      <h2>Recycling Packaging</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    </div>
    <div class="icon"><i class=" fa-3x fa fa-star"></i></div>
    <div class="text-about-us">
      <h2>5 stars ratings</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    </div>
  </div>
</section>

<section id="newsletter-section">
  <h2 id="newsletter-header">Sign up for our newsletter!</h2>
  <div id="newsletter-bcg">
    <form id="form" action="">
      <input name="email" id="email" type="email" placeholder="Enter your email here" required />

      <input id="submit" type="submit" value="Send" class="btn" />
    </form>
  </div>
</section>

<section id="contact">
 <div class="flex-container">
    <div class="columns equal-columns">
    <div class="col">
      
  <h3>Shop</h3>
       <ul>
        <li><a class="li-links" href="">Smartphones</a></li>
        <li><a class="li-links" href="">Laptops</a></li>
        <li><a class="li-links" href="">Computers</a></li>
        <li><a class="li-links" href="">Accesories</a></li>
      </ul>
    </div>
    <div class="col">
      <h3>About Us</h3>
       <ul>
        <li><a class="li-links" href="">Privacy Policy</a></li>
        <li><a class="li-links" href="">Terms & Conditions</a></li>
        <li><a class="li-links" href="">Contact Us</a></li>
        <li><a class="li-links" href="">Our Shops</a></li>
      </ul>
    </div>
    <div class="col">
      <h3>Help</h3>
      <ul>
        <li><a class="li-links" href="">FAQ</a></li>
        <li><a class="li-links" href="">Returns & Refunds</a></li>
        <li><a class="li-links" href="">Shipping & Delivery</a></li>
        <li><a class="li-links" href="">Track Order</a></li>
      </ul>
   </div>
      
  

        </div> 
      </div>
  
</section>
  <footer class="footer-bottom">@ created by <a href="https://codepen.io/alaire" id="creator-nick">Alaire</a></footer>
              
            
!

CSS

              
                
body {
  background-color: black;
}
header {
  background: #53e3a6;
  position: fixed;
  width: 100%;
  height: clamp(5rem, 6vw, 6rem);
  z-index: 1;
  display: inline-block;
  margin-top: 0;
}
#nav-bar {
  padding-top: clamp(1.5rem, 1.8vw, 2rem);
  text-align: right;
}
.nav-link {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 0em 1em 0em 1em;
  font-size: clamp(1.3rem, 3vw, 2.5rem);  
  font-family: "OrbitRacerOrbitRacer";
}
#logo {
  margin-top:-1.8em;
  margin-left:0;
  position: absolute;
}


.nav-link:hover {
  color: white;
  cursor: pointer;
}

.dot {
  font-size: clamp(0.5rem, 1.5vw, 1.8rem);
}
.dot:hover {
  color: black;
  cursor: default;
}

#video-section {
  text-align: center;
}
#lines {
  height: 26em;
  width: 100%;
  background: repeating-linear-gradient(
    -55deg,
    white 2px,
    rgba(255, 255, 255, 0.7) 1px,
    transparent 10px,
    transparent 30px
  );
}
.background-vid {
  margin-top: clamp(5em, 10vw, 10rem);
  width: 100%;
  height: 26em;
  background: -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
}

#video {
  margin-top: clamp(2rem, 3vw, 3rem);
  width: clamp(20rem, 50vw, 35rem);
  border: dashed 0.3em black;
}

#video:hover {
  border: dashed 0.3em white;
}
#products {
padding-top: 5em;
  height: auto;
  width:100%;
    
}
#products-div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 4em auto;
  margin-bottom: 6rem;
  text-align: center;
}

@media (max-width: 30.625em) {
  .products-section {
    padding: 6rem 1rem;
  }

  #products-div {
    grid-template-columns: 1fr;
  }
}

.product {
  background:
    -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
  
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}
.product:hover {
  background-color: #b5f2d5;
}
.product-image {
  height: 23rem;
  width: clamp(60%, 70%, 75%);
}


.product-title {
  font: bold 2rem sans-serif;
  color: black;
  text-align: center;
  text-justify: center;
}
#about_us {
  width: 100%;
  height: auto;
  color: white;
 text-align:center;
  padding-top:7em;
}

.grid {
display:flex;
flex-direction: column;
}

.icon {
  color: #53e3a6;
}

#newsletter-section {
  margin-top: 8em;
  text-align: center;
}

#newsletter-header {
  color: white;
  font-size: 2em;
}

#newsletter-bcg {
  height: 6em;
  width: 100%;
  background: -webkit-linear-gradient(top, #50a3a2 0%, black 100%);
  text-align: center;
}

input[type="email"] {
  background-color: black;
  color: white;
  border: black;
  height: 2em;
}
.btn {
  margin-top: 2em;
  background: #53e3a6;
  color: black;
  border: none;
  border-radius: 10%;
  font-weight: bold;
  font-size: 1em;
  margin-left: 1em;
}

.btn:hover {
  cursor: pointer;
  background: black;
  color: #53e3a6;
}
.contact{
  width:100%;
  display: flex;
  flex-flow: column wrap;
}
.flex-container {
   width: min(95%, 45rem);
  margin: 2em auto;
}


.columns {
  display: flex;
  color:white;
}

.equal-columns > * {
  flex: 1;
}
h3 {
  color:#53e3a6;
   font-family: "OrbitRacerOrbitRacer";
  font-size: 2em;
}
ul {
  list-style-type: none;
 line-height: 1.6;
  padding-left:0;
}
.li-links {
text-decoration:none;
color:white;
  padding-left:0;
  margin-left:0;
}


.footer-bottom{
  background: #53e3a6;
  font-size: 1.2em;
  text-align: center;
 padding: 0.4em;
}
#creator-nick {
 font-family: "OrbitRacerOrbitRacer";
  color:black;
  text-decoration:none;
}


@media only screen and (max-device-width: 800px) {
  .dot {
    display: none;
  }
  svg {
    height:4.8em;
    width:5em;
  }
}

              
            
!

JS

              
                

              
            
!
999px

Console