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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Lamb of God Website</title>
</head>

<header id="header">
  <nav id="nav-bar">
    <div id="logo">
      <img id="header-img" src="https://logo-all.ru/uploads/posts/2018-07/0_lamb_of_god_logo.jpg" alt="lamb of god logo">
    </div>
    <ul>
      <li><a href="#about" class="nav-link">About</a></li>
      <li><a href="#testimonials" class="nav-link">Testimonials</a></li>
      <li><a href="#contact" class="nav-link">Contact</a></li>
    </ul>
  </nav>
</header>
<div id="hero-image">
  <div id="hero-text">
    <h1>LET US BRING THE PARTY TO YOU</h1>
    <h2>For your next celebration call</h2>
  </div>
</div>

<section id="about">
  <div>
    <h2 class="question">What kind of Parties do we play?</h2>
  </div>
  <div class="about">
    <div class="about-txt">
      <h3>Birthday Parties</h3>
    </div>
    <div>
      <img class="about-img" src="https://www.vwymca.org/wp-content/uploads/2014/10/Kids-Birthday-Party.-Drinks.jpg" alt="birthday party picture">
    </div>
    <div class="about-txt">
      <h3>Bar Mitzvahs</h3>
    </div>
    <div>
      <img class="about-img" src="http://www.cateringbyalanweiss.com/wp-content/uploads/2015/02/Bat-Bar-Mitzvah.jpg" alt="bar mitzvah picture">
    </div>
    <div class="about-txt">
      <h3>Weddings</h3>
    </div>
    <div>
      <img class="about-img" src="https://i.ytimg.com/vi/dKp4ibA2VMY/maxresdefault.jpg" alt="wedding picture">
    </div>
    <div class="about-txt">
      <h3>Corporate Events</h3>
    </div>
    <div>
      <img class="about-img" src="https://qtxasset.com/2016-10/ThinkHR-Holiday-Parties-Business-Toast-21.jpg?Wlvq3wxYNWCxANzTJsL29PLTKceY3Iai" alt="business party picture">
    </div>
  </div>
</section>
<section id="testimonials">
  <div class="watch">
    <div class="watch-txt">
      <h2 class="question">Another Happy Customer</h2>
    </div>
    <div id="box">
      <div id="video-container">
       <iframe id="video" width="840" height="473" src="https://www.youtube.com/embed/oqdZpxkzNvc" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
    </div>
  </div>
</section>
<section id="contact">
  <div class="contact">
    <div class="contact-txt">
      <h2>Party with Us</h2>
      <h3>1-800-555-1212</h3>
      <form id="form" action="https://www.freecodecamp.org/email-submit.">
        <input type="email" name="email" id="email" placeholder="Enter your email for more information" required>
        <input type="submit" value="Submit" id="submit">
      </form>
    </div>
  </div>
</section>

</html>
              
            
!

CSS

              
                /*Stylesheet reset*/
* {
  padding: 0;
  margin: 0;
}
body {
  font-family: arial;
  background-image: linear-gradient(#ffffe6, #e6ffe6);
}
/*Keeps info visible below the navbar*/
section {
  padding-top: 93px;
  margin-top: -93px;
}

/*html {
  scroll-padding-top: 4.75rem;
}*/ /*This scrolls to below navbar at current height*/

/**[id]:before { 
  display: block; 
  content: " "; 
  margin-top: -70px; 
  height: 85px; 
  visibility: hidden; 
}*/
#header-img {
  width: 100px;
  margin: 12px 0 0 70px;
}
div {
  box-sizing: border-box; /*Includes padding and border in the elements total width and height*/
  display: block;
}
nav {
  display: flex; /*Places items in a flex container. Default valueis row. Must add flex-firection for column, row-reverse, etc*/
  position: fixed; /*Makes header always stay at the top*/
  justify-content: space-between; /*Puts space between lines*/
  align-items: center; /*Items are positioned at center of container*/
  z-index: 2;
  top: 0; /*Best practice that one of the horizontal positioning properties (that is, left or right) and one of the vertical properties (top or bottom) are both set, when using "Fixed Position". */
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 1px solid #f2f2f2;
}
ul {
  display: flex; /*Places items in a flex container. Default value is row. Must add flex-direction for column, row-reverse, etc*/
  justify-content: space-evenly;
  margin-right: 50px;
}
li {
  list-style: none; /*Removes the bullet point*/
}
li a {
  text-decoration: none; /*Removes the underline*/
  display: block;
  color: black;
  font-size: 22px;
  padding: 10px 20px;
}
li:hover {
  background-color: lightgray;
}
#hero-image {
  margin-top: 95px;
  background-image: url("https://i.ytimg.com/vi/TeefJmqOYc4/maxresdefault.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 600px;
  border-top: 10px solid black;
}
#hero-text {
  text-align: center;
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: lime;
  text-shadow: 0 0 6px #000080;
  font-weight: 800;
  font-size: 42px;
  font-family: arial;
}
#hero-text h2 {
  margin-top: 50px;
}
.question {
  text-align: center;
  font-size: 45px;
  color: #4d94ff;
  width: 100%;
  padding: 10px;
  margin-top: 2rem;
}
.about {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
}
.about-img {
    width: 580px;
  padding: 40px;
}
.about-txt {
  width: 30%;
  text-align: right;
}
h3 {
  font-size: 2.8rem;
}
/*#video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}*/
#box {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: auto;
}
#contact {
  background-color: #000099;
  color: white;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
}
#contact h2 {
  font-size: 3rem;
  padding: 1rem;
}
#contact h3 {
  font-size: 2.25rem;
  padding: 1rem;
  margin-bottom: 15px;
}
#email {
  min-width: 50%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 20px;
}
#submit {
  padding: 1rem;
  font-size: 1rem;
  border-radius: 20px;
  font-weight: 600;
  background-color: #cccccc;
}
#submit:hover {
  background-color: #4caf50;
  color: white;
}
@media (max-width: 800px) {
  /*.about {
    flex-flow: column wrap;
  }*/
  .about-txt {
    flex-flow: none;
  }
}
@media (max-width: 650px) {
  
}
              
            
!

JS

              
                
              
            
!
999px

Console