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

              
                <!DOCTYPE html>
<>
<head>
  <link href="https://fonts.googleapis.com/css?family=Oswald&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Salsa&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Bree+Serif|Fira+Sans&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  
  <meta name="viewport" content="width=device=width, initial-scale=1.0">

</head>
<body>
 
<header id="header">
    <img id="header-img" src="https://luckydogpetlodge.com/wp-content/uploads/2018/03/lucky-dog-main-logo.png">
    
    <nav id="nav-bar">
      <a class="nav-link" href="#pricing">Pricing</a>
      <a class="nav-link" href="#watch">Watch me</a>
      <a class="nav-link" href="#why">Why us?</a>
    </nav>
  </header>
   <div class="container"></div>
  <section id="hero">
    <p>Stay up to date on annoucements, promotions and more!</p>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email address"
        required
      /><br>
      <input id="submit" type="submit" value="Subscribe" class="btn" />
    </form>
  </section>
  
  

 <div class="amenities">
   <section id="why">
   <h2>Why choose to stay with us you ask?</h2> 
    <h3>There are many things to consider when choosing a company that will take care of your dog and all their needs. Trust is a critical factor that should be at the top of every pet parent’s mind. At Lucky Pet Lodge, you can rest assured that when your dog is with us, they are in safe and loving hands. Providing peace of mind for those times you can’t be with your pup is our number-one priority.</h3>
   <h2>What Sets Us Apart from the Rest</h2>
   <h3>Your dog deserves the best – they deserve the premier, all-inclusive services of Lucky Dog Pet Lodge. Here, your pup can romp and play all day long, socializing with other dogs and humans. It’s no wonder pups pull their parents to our front door every time they come to Camp!</h3>
   <ul>
     <li>Regular exercise to maintain a healthy weight</li>
     <li>Relief from boredom, separation anxiety, and destructive behaviors</li>
     <li>Improved socialization with people and other dogs</li>
     <li>Increase in overall happiness</li>
     <li>Oh yea and we have a pool!</li>
   </ul>
   </section>
   
   <section id="watch">
      <iframe
        id="video"
        height="350"
        src="https://www.youtube.com/embed/wej9gepWDkw"
        frameborder="0"
        allowfullscreen
      ></iframe>
    </section>
   
   <section id="pricing">
       <div class="flex-container" id="daycare">
        <div class="level">Daycare</div>
        <h2>$35/ half day</h2>
        <ul>
          <li>Playtime all day.</li>
          <li>Spacious Play Yards</li>
          <li>Live Web Cams</li>
          <li>Lots of TLC!</li>
        </ul>
        <button class="btn">Select</button>
      </div>
       <div class="flex-container" id="boarding">
        <div class="level">Boarding</div>
        <h2>$45 per/night</h2>
        <ul>
          <li>1-3 nights: $45 per night</li>
          <li>4-7 nights: $40 per night</li>
          <li>8-12 nights: $38 per night</li>
          <li>13-20 nights: $35 per night </li>
        </ul>
        <button class="btn">Select</button>
      </div>
      <div class="flex-container" id="grooming">
        <div class="level">Grooming</div>
        <h2>Starting at $25</h2>
        <ul>
          <li>Basic Bath: $25</li>
          <li>Deluxe Bath: $50</li>
          <li>Fur eliminator: $70</li>
          <li>The Works Package: $100</li>
        </ul>
        <button class="btn">Select</button>
      </div>
       </section>
   
   <footer class="footer-distributed">

			<div class="footer-left">

				<h3>Lucky Dog Pet Lodge</span></h3>

				<p class="footer-company-name">Lucky Dog Pet Lodge&copy; 2019</p>
			</div>

			<div class="footer-center">

				<div>
					<i class="fa fa-map-marker"></i>
					<p><span>55 Old Hickory Drive</span> Nashville, TN</p>
				</div>

				<div>
					<i class="fa fa-phone"></i>
					<p>+1 555 123456</p>
				</div>

				<div>
					<i class="fa fa-envelope"></i>
					<p><a href="mailto:support@luckydog.com">support@luckydog.com</a></p>
				</div>

			</div>

			<div class="footer-right">

				<p class="footer-company-about">
					<span>About the company</span>
					Since 2019, we have been providing fun and dependable dog care services parents and pups love. With Lucky Dog Pet Lodge®, you can rest assured your dog is in the best, most qualified hands in the business.
				</p>

			</div>

		</footer>

	</body>

    </body>
</html>
              
            
!

CSS

              
                @media screen and (max-width:959px) {
  header{
    width:100%;
    }  
}
body {
  background-image: url("https://s3.amazonaws.com/spoonflower/public/design_thumbnails/0559/7317/rdog_bone_pattern_turq_shop_preview.jpg")
}
header {
  position: fixed;
  top: 5px;
  left: 0px;
  width: 100%;
  height: 100px;
  background-color:  #33383b;
  text-align: right;
  border-radius: 10px;
}
#header-img {
  width: 150px;
  height: 90px;
  float: left;
  padding:10px;
}

#nav-bar a {
  float: right;
  display: block;
  color: white;
  transition-duration: 0.4s;
  text-align: center;
  padding: 14px 10px;
  text-decoration: none;
  font-size: 20px;
  font-family: 'Bree Serif', serif;
  margin-right: 40px;
}

#nav-bar a:hover {
  background-color: #ddd;
  color: black;
  border-radius: 2em;
}
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 50px;
 
}
#email {
  margin-left: auto;
  margin-right: auto;
  height: 2em;
  width: 19em;
  border-radius: 1em;
}
#submit {
    height: 3em;
    width: 8em;
    border-radius: 1em;
    font-family: 'Salsa', cursive;
 
}
#submit:hover {
  background-color:white;
}

p {
  text-align: center;
  padding: 5px;
  font-family: 'Salsa', cursive;
  font-size: 18px;
}

.button {
  text-align: center; 
  position: relative;
  bottom: 20px;
}

.email {
  text-align: center;
  position: relative;
  bottom: 30px;
}

.form {
    background-color: #ece8d3;
    border-radius: 30px;
}

ul {
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;

}

.amenities {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
}

#watch {
  text-align: center;
}

h2 {
  text-align: center;
  content: "";
  display: block;
  margin: 0 auto;
  width: 30%;
  padding-top: 40px;
  border-bottom: 2px solid black;
  padding-bottom: 5px;
  
}
  #pricing {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: calc(100%  / 3);
  margin: 10px;
  border: 3px solid #000;
  border-radius: 10px;
  justify-content: center;
  box-shadow: 5px 5px 5px #33383b;
}

.flex-container > .level {
  background-color: #ece8d3;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 10px;
}

.flex-container > button {
  border: 0;
  margin: 15px 0;
  background-color: #f1c40f;
  font-weight: 400;
  border-radius: 20px;
  width: 8em;
  border: solid black;
}

.flex-container > button:hover {
  background-color: orange;
  transition: background-color 1s;
}

@media (max-width: 800px) {
  #pricing {
    flex-direction: column;
  }
}
  @media (max-width: 800px) {
  header {
    flex-direction: column;
  }
}
  
  .flex-container {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }

.footer-distributed{
	background-color: #33383b;
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	width: 100%;
	text-align: left;
	font: bold 16px sans-serif;
  height: auto;
	padding: 5px 60px;
	margin-top: 80px;
  border-radius: 10px;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
	display: inline-block;
	vertical-align: top;
}

/* Footer left */

.footer-distributed .footer-left{
	width: 40%;
}

/* The company logo */

.footer-distributed h3{
	color:  #ffffff;
	font: normal 36px 'Cookie', cursive;
	margin: auto;
  margin-top: 20px;
}

.footer-distributed h3 span{
	color:  #5383d3;
}

/* Footer links */

.footer-distributed .footer-links{
	color:  #ffffff;
	margin: 20px 0 12px;
	padding: 0;
}

.footer-distributed .footer-links a{
	display:inline-block;
	line-height: 1.1;
	text-decoration: none;
	color:  inherit;
}

.footer-distributed .footer-company-name{
	color:  #8f9296;
	font-size: 14px;
	font-weight: normal;
	margin: 0;
}

/* Footer Center */

.footer-distributed .footer-center{
	width: 35%;
}

.footer-distributed .footer-center i{
	background-color:  #33383b;
	color: #ffffff;
	font-size: 25px;
	width: 38px;
	height: 28px;
	border-radius: 50%;
	text-align: center;
	line-height: 42px;
	margin: 10px 15px;
	vertical-align: middle;
}

.footer-distributed .footer-center i.fa-envelope{
	font-size: 17px;
	line-height: 38px;
}

.footer-distributed .footer-center p{
	display: inline-block;
	color: #ffffff;
	vertical-align: middle;
	margin:0;
}

.footer-distributed .footer-center p span{
	display:block;
	font-weight: normal;
	font-size:14px;
	line-height:2;
}

.footer-distributed .footer-center p a{
	color:  #5383d3;
	text-decoration: none;;
}


/* Footer Right */

.footer-distributed .footer-right{
	width: 20%;
}

.footer-distributed .footer-company-about{
	line-height: 20px;
	color:  #92999f;
	font-size: 13px;
	font-weight: normal;
	margin: 0;
}

.footer-distributed .footer-company-about span{
	display: block;
	color:  #ffffff;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 20px;
}

.footer-distributed .footer-icons{
	margin-top: 25px;
}

.footer-distributed .footer-icons a{
	display: inline-block;
	width: 35px;
	height: 35px;
	cursor: pointer;
	background-color:  #33383b;
	border-radius: 2px;

	font-size: 20px;
	color: #ffffff;
	text-align: center;
	line-height: 35px;

	margin-right: 3px;
	margin-bottom: 5px;
}

/* If you don't want the footer to be responsive, remove these media queries */

  
              
            
!

JS

              
                
              
            
!
999px

Console