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>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <title>Vauxhall Landing Page</title>

   <link href="https://fonts.googleapis.com/css?family=Orbitron:400,700" rel="stylesheet">
   <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
   <link rel="stylesheet" type="text/css" href="styles.css">
   <script type="text/javascript" src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>

<body>
   <div id="page-wrapper">
      <header id="header">
         <div class="logo">
            <img id="header-img" src="http://static1.squarespace.com/static/516e5494e4b08095006ead0e/516fee37e4b0f564b2ad8a8d/51cd406de4b0898df4c4da46/1372405869666/12-logo.png" alt="Vauxhall logo" />
         </div>

         <nav id="nav-bar">
            <ul>
               <li><a class="nav-link" href="#features">Features</a></li>
               <li><a class="nav-link" href="#how_it_works">How It Works</a></li>
               <li><a class="nav-link" href="#pricing">Pricing</a></li>
            </ul>
         </nav>
      </header>

      <main>
         <h1>Vauxhall Hungary</h1>
         <section id="first-section">
            <img id="kocsi" src="https://imganuncios.mitula.net/vauxhall_astra_petrol_vauxhall_astra_1_4t_16v_150_elite_nav_5dr_hatchback_petrol_manual_2017_j_white_3160072584628590187.jpg">      
   </section>
         
   <section id="how_it_works">
      <h2 id="griff">ALL GRIFFIN. NO BULL.</h2>
      <!-- https://www.youtube.com/watch?v=XOnY1flxfIk-->
      <div id="auto">
         <iframe width="560" height="315" src="https://videa.hu/videok/jarmuvek/opel-tuning-chiptuning-corsa-alufelni-motoroptimalizalas-remap-73OlTATcBsJEyPvQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
   </section>
   <section id="features">
      <div class="info-third-section">
         <h3 class="third-section-h3">Vauxhall Corsa</h3>
         <p>The Vauxhall Corsa is still the firm’s best-selling car, despite now being pretty aged. Although the current version was heavily facelifted in 2014, the basic design dates back to 2006. In 2018, the Corsa name is 25 years old – and the version
            on sale now has been around for half that time. That’s why Vauxhall is so excited for 2019, when an all-new Corsa arrives.</p>
         <img class="thumb" src="https://hattonsimages.blob.core.windows.net/products/76VC001_1518640_Qty1_1.jpg" alt="Vauxhall Corsa">
      </div>
      <div class="info-third-section">
         <h3 class="third-section-h3">Vauxhall Crossland-X</h3>
          <p>IT MAY SEEM odd to have two similar-sized cars from the one company battling it out for sales in the same segment, but that’s exactly what Opel has with its Mokka X and new Crossland X. That mix of styles is Crossland X’s USP. It has the trendy
            and desirable design of an SUV combined with the roominess of an MPV.</p>
          <img class="thumb" src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR8EmdTM0oGTXYOOM-vfd5-sOJd1iIqg1RABAYWfpeXz9geh0Kc" alt="Crossland-X">
      </div>
      <div class="info-third-section">
         <h3 class="third-section-h3">Vauxhall Astra</h3>
         <p>This Vauxhall Astra is the best yet. It combines efficient engines, an enjoyable driving experience and a stylish design to make it one of the best family hatchbacks on sale. Despite strong sales over the years, the Vauxhall Astra has never come
            in for much praise, perhaps in part because the brand suffers from a lack of desirability. </p>
         <img class="thumb" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9azE6TlKTRlY1UzPoiBqpezZ9RUARTpQFnH-rduxa-Mbz2EUj" alt="Astra">
      </div>
   </section>

   <h2 id="pr">Prices</h2>
   <section id="pricing">
      <div id="astra">
         <div class="level">
            Vauxhall Astra
         </div>
         <h3 class="pri">5 599 000 Ft</h3>

         <button class="btn">Select</button>
      </div>
      <div id="cross">
          <div class="level">
            Vauxhall-Crossland-X
          </div>
          <h3 class="pri">4 555 000 Ft</h3>
          <button class="btn">Select</button>
      </div>
      <div id="corsa">
          <div class="level">
            Vauxhall Corsa
          </div>
          <h3 class="pri">3 555 000 Ft</h3>
         <button class="btn">Select</button>
      </div>
   </section>

   <form id="form" action="https://www.freecodecamp.com/email-submit">
       <p class="email">Please subscribe our newsletter.</p>
       <div><label id="email-label" for="email">Email:</label>
       <input id="email" type="email" name="email" class="input-field" placeholder="Enter your email adress" required/>
     </div>
        <input id="submit" type="submit" value="Submit" class="btn"></input>
   </form>
 </main>
   <footer>
      <ul>
         <li class="foot"><a href="#">Privacy</a></li>
         <li class="foot"><a href="#">Terms</a></li>
         <li class="foot"><a href="#">Contact</a></li>
      </ul>
      <span>Copyright 2019, Vauxhall Hungary</span>
   </footer>
   </div>
 </body>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, main, html{
	margin: 0;
 	background-color: black;
   color: white;
   min-width: 240px;
   width: 100%;
}
#page-wrapper {  
  background-color: black;
  margin: 0 auto; 
}

header {
  position: fixed;
  top: 0;
  min-height: 75px;
  max-height: 300px;
  width: 100%;
  display: flex;
  padding: 1rem;
  justify-content: space-around;
  align-items: center;
  background-color: black;
  color: white; 
  margin: 0;
}

#nav-bar { 
  margin: 1rem;
}

#header-img {
  width: 90%;
  min-width: 150px;
  max-width: 300px;
  margin-left: 30px;
  padding: 1rem;  
    } 

.logo {
     margin: 4rem;        
     min-width: 270px;
     }

li {
  display: inline-block;
  font-family: Orbitron;
  font-weight: bold;
  font-size: 2rem;
  margin: 1em 1em;
}

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

a:hover {
  color: green;
}

a:visited {
  color: white;
}

h1 {
  font-family: Orbitron;
  text-align: center;
  font-size: 6rem;
  color: red;
  text-shadow: 1px 2px white;
  margin-bottom: 2em;
  margin-top: 500px;
  padding: 1rem;
}

#kocsi {
  width: 100%;
  margin-bottom: 5rem;
}

#how-it-works {
  margin-top: 50px;
  display: flex;
  justify-content: center;  
  iframe {
    max-width: 560px;
    width: 100%;  
 }     
} 
 #auto, .iframe {
  width: 100%;
  min-width: 240px;
  display: flex;
  justify-content: center;
  margin: 8rem auto;
 }

h2 {
  font-family: Orbitron;
  font-size: 4rem;
  color: red;
  text-shadow: 0px 0px red;
  margin:  5rem auto;
  padding-top: 0;
  text-align: center;
}

#griff {
 font-family:  'Orbitron', sans-serif; 
 font-size: 3.5rem;
 font-weight: bold;
 margin: 8rem auto;
}

p {
  font-family: "Montserrat", sans-serif; 
  font-size: 1rem;
  color: white;
  text-align: left;
  text-shadow: 0px 0px white;
  padding: 20px;
  line-height: 1.6rem;
	word-spacing: 0.1rem;
	}

#features{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
   align-items: stretch;    
}

.info-third-section {
  max-width: 600px;
  color: red;
  font-size: 3rem;
  width: 30%;
  min-width: 240px;
  margin: 1rem;
  margin-bottom: 0;
  margin-top: 70px;
  border: 1px dotted white;
  padding-top: 1rem;
}

h3 
{
	font-family: 'Orbitron', sans-serif;
	color: red;
  font-size: 0.5em;
  padding: 0 1rem;
   margin: auto 0;
}

img.thumb {
  padding : 1rem;  
  width: 100%;  
  height: auto;
  padding-bottom: 0;
  margin-bottom: 0;
  }

#pr {
  width: 100%;
  font-size: 2.5rem;
  text-align: center;
}

#pricing {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 1rem 2rem;
  margin: 100px 200px;
  flex-wrap: wrap;  
}

  #astra, #cross, #corsa {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(100%  / 3);
    min-width: 240px;
    max-width: 400px;
    margin: 3rem;
    border: 1px dotted white;
    border-radius: 10px;
    padding: 70px 50px;
}
    .level {
      background-color: #ddd;
      color: black;
      padding: 30px 0;
      width: 100%;
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 50px;        
    } 
      
.pri {
   font-size: 1.5rem; 
   padding: 20px 0;
}

button {
      border: 1px solid red;
      margin: 20px;
      margin-bottom: 0;
      background-color: white;
      font-weight: 400;
      font-size: 1rem;
      color: red;
      font-weight: bold;
      padding: 10px 20px;
      border-radius: 10px;       
}
       
#form {
  width: 100%;
  text-align: left;  
}

#email {
  height: 2rem;
  width: 300px;  
  margin: 3rem auto;
  padding: 20px;  
}
     
.email {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
   line-height: 3rem;
}

label {
  display: inline-block; 
  padding: 1rem;
  font-family: 'Orbitron', sans-serif;
  color: red;
  font-size: 1.5rem;
  font-weight: bold;
}

input, textarea {
  box-sizing: border-box;
  border: 1.3px solid #999;
  padding: 5px;
  }

input:focus, textarea:focus {
  border-color: red;  
     }
     
#submit {
 background-color: red;
   color: black;
   padding: 10px 30px;
   border: 1px solid white;
   border-radius: 10px;
   display: inline;
   margin:0 0 100px 300px;   
}

footer {
   width: 100%;
   height: auto;
   background-color: white;
   color: black;
   display: flex;    
}

.foot {
     font-size: 1rem;
     color: black;
     margin: 1rem;
     padding: 1rem;
   }

span {
   align-content: flex-end;
   text-align: right;
   padding: 20px;
}
/* 1200px -------------------------------->*/
 
  @media only screen and (max-width: 1200px) {
   #astra, #cross, #corsa 
     { width: 240px;        
       margin: 0 auto; 
       margin-bottom: 10px; 
       flex-direction: column;  
     }
     
   header {
        height: 200px;
     }
   .logo {
        margin: 1rem;        
        min-width: 180px;
     }
  #header-img  {
    width: 70%;
    margin: 10px;
  }   
   li {
        font-size: 1.6rem; 
        margin: 0.8rem;     
     }       
   #pricing, .level {
       width: 100%; 
       margin: 1em auto;
     }           
   .foot {
     margin: 0.1rem;
     padding: 0.1rem;
     }    
.foot a:link {
  flex-direction: row;
  color: red;
  margin: 0; 
  padding: 0;
    }     
}    

 @media only screen and (max-width: 520px) {
    
  #astra, #cross, #corsa 
     { width: 240px;        
       margin: 0 auto; 
       margin-bottom: 10px;
       flex-direction: column;  
     }
  
 #pricing   {
       width: 100%;
       min-width: 240px;
       margin: 0 auto;
       padding: 0;
    }  
  header {  
      height: 160px;  
      padding: 10px; 
      background-color: red; 
  }    
  .logo {
       margin: 1rem;
       min-width: 140px;
     }       
  a:link {
       font-size: 0.8rem;
        color: white;
     padding: 0;
     margin: 0;       
    }
    li {
    margin: 0.5rem;   
    }   
  #header-img  {
    width: 80%;    
  }   
  #video {
   margin: 2rem auto;
    width: 100%;
   }   
   #auto {
    margin: 2rem auto; 
    width: 100%;  
   }         
  h1 {
    margin-top: 400px;
    font-size: 3rem;
  }    
  #griff {
    font-size: 2.5rem;
     margin: 3rem auto;
  }    
   img.thumb {
    width: 100%;   
    }  
    form {
    width: 100%;
   }    
  #email {
    max-width: 90%; 
   }
   .email {
     font-size: 1.2rem;
   }
   #email-label {
    font-size: 1.2rem;   
   } 
  #submit {
    align-items: center; 
    margin-left: 100px;
   }
 footer { 
      width: 100%;
      height: auto;
      color: black;            
   }
.foot a:link {
      font-size: 0.9rem;
       padding: 0;
       margin: 0;

      }

@media only screen and (max-width: 340px)
{
 body {
      min-width: 240px;
   }   
header {
  top: 0;
  position: fixed;
  height: 100px;  
  background-color: red;
  color: white;  
  display: flex;
  margin: 0 auto;
  }    
li {    
    margin: 0.2em 0.4em;
    margin-right: 3rem;
    font-size: 0.9rem;    
     }   
  #header-img  {
    width: 60%;
    min-width: 120px;
    margin-left: 50px;
  }
   
   a:link {
    color: white;
    font-family: Orbitron;
    font-size: 0.8em;
    font-weight: bold;       
  }
h1 {
    margin-top: 150px;
    font-size: 2rem;
  }
h2 {
    font-size: 1.4rem;    
   }
h3 {
      color: white; 
     
   }
h3, .pri {
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
    margin-left: 20px;
   }
 p {
    font-size: 0.8rem;
    color: red;
    text-shadow: 1px 1px 1px red;
   }
 p.email {
      color: white;
   }
 h3.pri {
      color: red;
   }
#griff {
    font-size: 1.5rem;
    margin: 1rem;
  }  
#pr {
    font-size: 1.6rem;
    margin: 0;
   }  
#astra, #cross, #corsa {
      min-width: 200px;
      height: 300px;
      margin: 1rem;
      padding: 1rem;      
   }   
.level {
      width: 120px;
      padding: 10px;
      margin-bottom: 30px;
   }   
footer { 
      width: 100%;
      height: auto;
      color: black;  
      display: flex;
   }
 .foot a:link {     
      color: red;
      font-size: 0.7rem;           
   }
.foot {
      margin: 0;
      padding: 5px;
      display: inline-block;
   }   
 span {
      display: none;
   }
 } 


              
            
!

JS

              
                const projectName = 'product-landing-page';
localStorage.setItem('example_project', 'Product Landing Page');
              
            
!
999px

Console