css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<header id="header-home">
  
  <div class="logo-toggle-flex">
    <div class="logo">
      <img id="header-logo" src="https://res.cloudinary.com/sharonnt/image/upload/v1533671627/HF-logo-45.png" alt="Holdfast logo" title="Holdfast Steel Limited">
   <span id="logo-text">Holdfast Steel Limited</span>
    </div>
  
  <a href="#outer-flex-container"
     id="menu-toggle"
     class="menu-toggle">
    <span class="fas fa-bars fa-lg"></span>
  </a>
</div>

  <nav class="outer-flex-container" id="outer-flex-container">

    <ul class="menu-flex-container" id="menu-flex-container">
      <li><a href="#cta-img">Home</a></li>
      <li><a href="#products">Products</a></li>
      <li><a href="#about">About</a></li>
      <li><a href="#clients-video">Clients</a></li>
      <li><a href="#form-section">Contact</a></li>
    </ul>

  </nav>

  <a href="#main-menu-toggle"
       class="backdrop"></a>
  
</header>

<main>
  <section class="cta-img" id="cta-img">
  <div class="cta-banner">
    <div class="cta-wrapper">
      <h1>Submit your building plans and get a free estimate</h1>
      <h2>As the leading provider of steel solutions, we offer complete design, fabrication and installation services to meet your every need.<br><br>No job too big or small.<br>Best price guaranteed.</h2>
      <div class="bs"><a href="#form" class="quote">Get a free quote</a></div>
    </div>
  </div>
</section>
  
  <section class="products" id="products">
    <h2>Products</h2>
    <div class="products-wrap">
      
      <div class="product-item">
        <img class="beam-img" src="https://res.cloudinary.com/sharonnt/image/upload/v1533717065/beam-grey.png" width="100" alt="Beams" title="Beams">
        <div class="product-description">
          <p class="product-label">Beams</p>
          <hr class="hr-line">
          <ul class="item-type">
            <li>W Beams</li>
            <li>I-Beams</li>
            <li>H-Beams</li>
            <li>Channel-Beams</li>
          </ul>
        </div>
        <a href="javascript:void(0)">More</a>
      </div>
      
      <div class="product-item">
        <img class="bolt-img" src="https://res.cloudinary.com/sharonnt/image/upload/v1533749757/bolt-grey.png" width="100" alt="Bolts" title="Bolts">
        <div class="product-description">
          <p class="product-label">Bolts</p>
          <hr class="hr-line">
          <ul class="item-type">
            <li>Hex Bolts</li>
            <li>Machine Screws</li>
            <li>Socket Head Screws</li>
            <li>Carriage Bolts</li>
            <li>Lag Bolts</li>
          </ul>
        </div>
        <a href="javascript:void(0)">More</a>
      </div>
      
      <div class="product-item">
        <img class="bar-img" src="https://res.cloudinary.com/sharonnt/image/upload/v1533717065/bar-grey.png" width="100" alt="Bars" title="Bars">
        <div class="product-description">
          <p class="product-label">Bars</p>
          <hr class="hr-line">
          <ul class="item-type">
            <li>Mild Steel Bars</li>
            <li>Deformed Steel Bars</li>
          </ul>
        </div>
        <a href="javascript:void(0)">More</a>
      </div>
      
      <div class="product-item">
        <img class="compass-img" src="https://res.cloudinary.com/sharonnt/image/upload/v1533749758/compass-grey.png" width="100" alt="Design" title="Design">
        <div class="product-description">
        <p class="product-label">Design</p>
          <hr class="hr-line">
          <ul class="item-type">
            <li>CAD</li>
            <li>On-Site Survey</li>
          </ul>
        </div>
        <a href="javascript:void(0)">More</a>
     </div>
      
    </div>
  </section>
  
  <section class="about" id="about">
    <div class="about-text">
      <h2>Experts in steel</h2>
      <div class="about-wrapper">
        <img src="https://res.cloudinary.com/sharonnt/image/upload/v1535397443/hardhats-800.jpg" alt="hard hats">
        <div class="p-text">
          <p>Holdfast Steel offers a complete solution to your steel frame building requirements.</p><br>
          <p>From commercial to residential buildings, we can manage all projects from design through to installation, working directly from customer-supplied drawings or on-site.</p><br>
          <p>With over 28 years of experience in the construction and steel industry, we guarantee complete satisfaction combined with competitive prices.</p>
        </div>
      </div>
      <div class="acc-logo">
        <img src="https://res.cloudinary.com/sharonnt/image/upload/v1535454465/acc1.png" alt="SCCBE accreditation">
        <img src="https://res.cloudinary.com/sharonnt/image/upload/v1535455215/acc2.png" alt="AMS accreditation">
        <img src="https://res.cloudinary.com/sharonnt/image/upload/v1535456671/acc3.png" alt="ISO accreditation">
      </div>
   </div>
  </section>
  
  <section class="clients-video" id="clients-video">
    <h2>PROJECT SUCCESS STORY: Cebu-Cordova bridge, Philippines</h2>
    
    <div class="video-wrapper">
        <iframe height="315" src="https://www.youtube.com/embed/JdGYyiutwXE?wmode=opaque" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen ></iframe>
    </div>
   
    
    <h3>Our Customers</h3>
    <div class="client-logos">
      <img src="https://res.cloudinary.com/sharonnt/image/upload/v1533800174/client-1.jpg" width="100">
      <img src="https://res.cloudinary.com/sharonnt/image/upload/v1533799583/client-2.jpg" width="100">
      <img src="https://res.cloudinary.com/sharonnt/image/upload/v1533799583/client-3.jpg" width="100">
      <img src="https://res.cloudinary.com/sharonnt/image/upload/v1533799583/client-4.jpg" width="100">
    </div>
  </section>
  
  <section class="form-section" id="form-section">
    <img src="https://res.cloudinary.com/sharonnt/image/upload/v1533297004/HF-logo-90px.png" alt="HF Logo">
    <h2>Contact Us</h2>
    <p>Let's talk about your next project!</p>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <label for="name" class="visuallyhidden">Enter your name</label><br>
      <input id="name" name="name" type="text" placeholder="Name" required><br>
      <label for="email" class="visuallyhidden">Enter your email</label><br>
      <input id="email" name="email" type="email" placeholder="Email" required><br>
      <label for="user-tel" class="visuallyhidden">Enter your phone number</label><br>
      <input id="user-tel" name="user-tel" type="text" placeholder="Phone"><br>
      <label for="message" class="visuallyhidden">Type in your message</label><br>
      <textarea id="message" name="message" placeholder="Message" rows="10"></textarea><br>
      <input type="submit" name="submit" id="submit" value="Submit" class="order">
    </form>
    <p>We are 100% committed to your privacy and will use the information you provide us solely to contact you about relevant content and services. For more information, please read our Privacy Policy.</p>
  </section>
  
</main>

<footer>
  <div id="footer">Created by Sharon N for FreeCodeCamp || Product Landing Page Project</div>
</footer>


            
          
!
            
              /*** Font Styles ***/
/* font-family: 'Montserrat', sans-serif; */

/*** Color ***/
/* background: rgb(151,181,176) */

/*** Global Styles ***/

* {
  box-sizing: border-box;
}

html{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 62.5%;
}

body {
  width: 100%;
  height: 100%;
  line-height: 1;
  background-color: rgb(234, 226, 223);
}

main {
  margin-top: 6.5rem;
}

section {
  width: 100%;
}

img {
  vertical-align: middle;
}

li {
    font-size: 1.8rem;
  }

a {
  text-decoration: none;
  font: 700 1.5rem 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: rgb(78, 82, 84);
  display: inline-block;
  text-align: center;
}

/*** Default & Mobile Styles ***/

/* .bs::after {
  content:"";
  display: block;
  height: 6.5rem; 
}

section::before {
  content:"";
  display: block;
  height: 6.5rem;
  margin: -6.5rem 0 0; 
} */

.fas {
  color: rgb(78, 82, 84);
  padding-right: 1rem;
}

h1 {
  font: 700 2.8rem 'Montserrat', sans-serif;
  text-transform: uppercase; 
  color: rgb(231, 151, 68);
}

h2 {
  font: 700 1.8rem 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: rgb(231, 151, 68);
}

.products h2,
.about h2,
.clients-video h2 {
  font-size: 2.3rem;
}

p {
  font: 1.8rem 'Montserrat', sans-serif;
  color: rgb(78, 82, 84);
}

section a {
  border-radius: 3rem;
  background-color: rgb(231, 151, 68);
}

.product-label {
  font-size: 2.8rem;
}

/* Header Styles */

#header-home {
  position: fixed;
  height: 6.5rem;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgb(234, 226, 223);
}

.logo-toggle-flex {
  display: flex;
  justify-content: space-between;
  padding: 5px;
}

#header-logo {
  vertical-align: middle;
  padding: 0.5rem;
}

#logo-text {
  font: 700 1.5rem 'Montserrat', sans-serif;
  text-transform: uppercase;
  vertical-align: middle;
  color: rgb(78, 82, 84);
}

.outer-flex-container {
  display: flex;
  justify-content: flex-end;
}

.menu-toggle {
  align-self: center;
}

.outer-flex-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: -300px;
  top: 0;
  height: 100%;
	overflow-y: scroll;
	overflow-x: visible;
  transition: left 0.3s ease,
				      box-shadow 0.3s ease;
	z-index: 999;
}

.outer-flex-container ul {
  margin: 0;
  padding: 2.5rem 0 0;
  min-height: 100%;
  width: 200px;
  background: rgb(231, 151, 68);

}

.menu-flex-container li {
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding: 1.5rem;

}

.menu-flex-container a {
  color: white;
  font-size: 1.6rem;
  border: none;
}

.outer-flex-container:target {
  right: 0;
}

.outer-flex-container:target + .backdrop {
  position: absolute;
  display: block;  
  content: "";
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0,0,0,.5);
  cursor: default;
}

@supports (position: fixed) {
  .outer-flex-container,
  .outer-flex-container:target + .backdrop {
    position: fixed;
  }
}

/* CTA Styles */
.cta-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: url(https://res.cloudinary.com/sharonnt/image/upload/v1535301352/hero-1920.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  height: 100%;
  width: 90%;
  
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 90%;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.cta-wrapper h1,
.cta-wrapper h2 { 
  width: 30rem; 
  text-align: center;
  padding: 0.5rem;
  align-self: center;
}

.cta-wrapper h1 {
  margin: 0 0 2rem 0;
  
}

.cta-wrapper h2 {
  margin-bottom: 2rem;
  text-transform: none;
  color: rgb(242, 242, 242);
}

.cta-wrapper a { 
  width: 20rem; 
  text-align: center;
  padding: 2rem 1.5rem;
  align-self: center;
}

/* Product Styles */
.products {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  background-color: rgb(242, 242, 242);
}

.products h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.products-wrap {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  width: 100%;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2%;
  padding: 1rem;
  width: 250px;
}

.product-label {
  text-align: center;
  padding: 1.2rem 0 0;
  margin: 0;
}

.product-description {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  color: rgb(78, 82, 84);
  margin-bottom: 1rem;
}

.hr-line {
  width: 50%;
  margin: 5% auto;
  border: 1.5px solid rgb(231, 151, 68);
}

.item-type {
/*   font-size: 1.6rem; */
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  padding-bottom: 1rem;
  text-align: center;
  display: flex;
  flex-flow: column nowrap;
}

.item-type li {
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.product-item > img {
  margin-bottom: 1rem;
  width: 150px;
}

.product-item > a {
  padding: 0.8rem 2rem;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  color: rgb(231, 151, 68);
  background-color: transparent;
  border: 1px solid rgb(231, 151, 68);
  border-radius: 3rem;
}

/* About Styles */
.about {
  background-color: rgb(78,82,84);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.about-text {
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 90%;
}

.about-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-self: center;
  justify-content: space-around;
}

.about-wrapper > img {
  width: 300px;
  align-self: center;
  margin-bottom: 2rem;
}

.about-text h2 {
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.p-text {
  display: flex;
  flex-direction: column;
  
}

.p-text > p {
  width: 100%;
  align-self: center;
  color: rgb(242, 242, 242);
  text-align: left;
  margin-bottom: 1rem;
}

/* .acc-logo {
  border: 1px solid;
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-columns: auto;
}

.acc-logo > img {
    align-self: center;
    justify-self: center;
  
  } */

.acc-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-around;
}

.acc-logo > img {
 max-width: 35%;
 margin: 2%;
}

.acc-logo img:last-child {
  max-width: 75%;
}



/* Clients-Video Styles */
#clients-video {
  background-color: white;
  text-align: center;
  padding: 4rem 0;
  
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 560px;
  margin: 0 auto;
 
}


.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 560px;
  max-height: 315px;
  
}

.clients-video h2 {
  padding: 0 1.5rem 1.5rem;
}

.clients-video h3 {
  font-size: 2rem;
  padding: 0 1rem 0.8rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.client-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  width: 300px;
  margin: 0 auto;
}

.client-logos > img {
  margin: 0.5rem;
  align-self: center;
}

/* Form Styles */
.form-section {
  padding: 4rem;
  background-color: rgb(78,82,84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.form-section img {
  margin-bottom: 3rem;
}

.form-section h2,
.form-section p {
  align-self: flex-start;
  color: white;
}

#form {
  color: white;
  padding-top: 3rem;
  text-align: center;
  width: 100%;
  
}

input {
  width: 100%;
  background-color: white;
  border: 0;
  border-radius: 2px;
  padding: 1.5rem;
  
}

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

textarea {
  width: 100%;
  padding: 1.5rem;
  border-radius: 2px;
  border: none;
}

#submit {
  width: auto;
  margin: 4rem 0;
  padding: 0.8rem 2rem;
  background-color: rgb(78,82,84);
  font-size: 1.6rem;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  color: white;
  border: 1px solid;
  border-radius: 3rem;
}

/* Footer Styles */
#footer {
  font-size: 0.9em;
  text-align: center;
  padding: 10px;
  background-color: grey;
}

/*** min-width 479px ***/

@media screen and (min-width: 479px) {
  
  h1 {
  font: 700 3rem 'Montserrat', sans-serif;
  }
  
  h2 {
    font: 700 2rem 'Montserrat', sans-serif;
  }
  
  .cta-wrapper h1,
  .cta-wrapper h2 { 
  width: 40rem; 
  padding: 1.2rem;
  }
  
}

/*** min-width 574px ***/

@media screen and (min-width: 560px) {
  .video-wrapper {
  padding-bottom: 0;
    height: 315px;
}
 
/*** min-width 574px ***/

@media screen and (min-width: 574px) {
  
  h1 {
  font: 700 3.5rem 'Montserrat', sans-serif;
  }
  
  h2 {
    font: 700 2.5rem 'Montserrat', sans-serif;
  }
  
  .cta-wrapper h1,
  .cta-wrapper h2 { 
  width: 50rem; 
  padding: 1.2rem;
  }

}

/*** min-width 768px ***/

@media screen and (min-width: 768px) {
 
  h1 {
  font: 700 4rem 'Montserrat', sans-serif;
  }

  h2 {
    font: 700 3rem 'Montserrat', sans-serif;
  }
  
  .products h2,
  .about h2,
  .clients-video {
    font-size: 3rem;
  }
  
  .about-wrapper {
    flex-flow: row-reverse wrap;
  }
  
  .p-text {
    width: 50%;
  }
  
  .about-wrapper > img {
    width: 40%;
  }
  
}

/*** min-width 960px ***/
 
@media screen and (min-width: 960px) {
    
    .menu-toggle {
    display: none;
  }
  
  .outer-flex-container {
    display: inline-flex;
    position: relative;
		right: auto;
		top: auto;
		height: auto;
    overflow: initial;
  }
  
  .menu-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  
  .outer-flex-container ul {
    display: flex;
    padding: 0;
    box-shadow: none;
    height: auto;
    width: auto;
    background: none;
  }
  
  #header-home {
    display: flex;
  }
  
  .logo-toggle-flex {
    margin-right: auto;
  }
  
  .menu-flex-container li {
    align-self: center;
    border: none;
  }
  
  .menu-flex-container a {
    color: rgb(78, 82, 84);
  }
  
  li {
    font-size: 2rem;
  }
 
}

/*** min-width 1025px ***/

@media screen and (min-width: 1025px) {
  
  h1 {
  font: 700 4rem 'Montserrat', sans-serif;
  }

  h2 {
    font: 700 3rem 'Montserrat', sans-serif;
  }
  
  p {
    font: 2rem 'Montserrat', sans-serif;
  }

  a {
    font: 700 1.6rem 'Montserrat', sans-serif;
    text-transform: uppercase;
  }
  
  .cta-wrapper h1,
  .cta-wrapper h2 { 
    width: 80rem; 
    padding: 2rem;
  }
  
  .cta-wrapper a { 
    width: 20rem; 
    padding: 2rem;
    margin-bottom: 4.5rem;
    font-size: 2rem;
  }
  
  .about-text h2 {
    width: 50rem;
    margin: 2rem auto;
  }
  
 
  
}

/*** min-width 1265px ***/

@media only screen and (max-width: 1265px) and (min-width: 800px) {
  
  .products-wrap { 
    width: 90%;
    margin: 0 auto;
  }
  
  .product-item {
    width: 45%;
  }
  
  .product-item > img {
    width: 160px;
  }
  
  .product-label {
    font-size: 2.8rem;
  }
  
  
  
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console