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

              
                <html>
<head>
  <title>Tea Cozy</title>
  <meta name="viewport" content="width=device-width,initial-scale=1" >
  <link href="style.css" rel="stylesheet">
</head>
<body>
 <nav> <!--NAV BAR-->
 <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-tea-cozy-logo.png">
   <ul>
     <li>
       <a href="#mission">Mission</a>
    </li>
    <li>
      <a href='#featured'>Featured Tea</a>
    </li>
    <li>
      <a href="#locations">Locations</a>
    </li>
   </ul>
 </nav> <!--CONTENT-->
 
 <section class="container">
   <section class="hero">
     <div class="hero-text" id="mission">
     <h2>Our Mission</h2>
     <h4>Hand-picked, artisionally curated, Free Range, sustainable, small-range, organic-tea.</h4>
     </div>
 </section>
 
<!--TEA OF THE MONTH-->
 <section id="featured">
   <h2>Tea of the month</h2>
   <p>What's steeping at the tea cozy?</p>
   <div class="tea-of-the-month">
   <div class="tea">
     <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-berryblitz.jpg">
     <p>Fall Berry Blitz Tea</p>
   </div>
   <div class="tea">
     <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-spiced-rum.jpg">
     <p>Spiced Rum Tea</p>
   </div>
   <div class="tea">
     <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-donut.jpg">
     <p>Seasonal Donuts</p>
   </div>
    <div class="tea">
      <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-myrtle-ave.jpg">
      <p>Myrtle Ave Tea</p>
   </div>
    <div class="tea">
      <img src="https://content.codecademy.com/courses/freelance-1/unit-4/img-bedford-bizarre.jpg">
      <p>Bedford Bizzare Tea</p>
      </div>
     </div>
   </section>
   <!--LOCATIONS-->
   <section class="locations" id="locations">
     <h3 class="locations-header">Locations</h3><br>
    <div>
       <h3>Down town</h3>
       <p>384 W 4th Street</p>
       <p>Suite 108</p>
       <p>Portland, Maine</p>
     </div>
     <div>
       <h3>East Bayside</h3>
       <p>3433 Phiserman's Ave</p>
       <p>(Northwest Corner)</p>
       <p>Portland, Maine</p>
     </div>
     <div>
       <h3>Oakdale</h3>
       <p>515 Crescent Ave</p>
       <p>Second Floor</p>
       <p>Portland, Maine</p>
     </div>
   </section>
   <footer class="forefooter">
<!--FOREFOOTER-->
     <h2>The Tea Cozy</h2>
     <p>
       <a href="mailto:contact@theteacozy">contact@theteacozy</a>
     </p>
     <p>
       <a href="tel:9175558904">917-555-8905</a>
     </p>
   </footer>
<!--FOOTER-->
   <div class="footer">
     <p>copyright Tea Cozy 2017</p>
   </div>
   </footer>
 </div>
</body>
</html>

              
            
!

CSS

              
                /*GLOBAL*/
body {
  background: black;
  color: seashell;
  font-family: Helvetica, sans-serif;
  font-size: 22px;
  opacity: 0.9;
  margin: 0px;
  box-sizing: border-box;
  text-align: center;
}

.container {
  margin-top: 69px;
}

a:hover {
  color: #D7CDC6;
}

/*TEA OF THE MONTH*/


/*NAV*/
nav {
  height: 69px;
  width: 100%;
  border-bottom: 1px solid seashell;
  position: fixed;
  top: 0;
  background-color: black;
  z-index: 2;
  
}

li {
  list-style-type: none;
  display: inline;
  float: right;
  margin: 10px;
}

a {
  color: seashell;
}

a:hover {
  text-shadow: 0px 0px 8px white;
}

nav img {
  height: 50px;
  float: left;
  margin: 9.5px 0px 9.5px 10px;
}

#featured {
  scroll-margin-top: 4em;
}

/*HERO*/

.hero {
  background-image: url("https://content.codecademy.com/courses/freelance-1/unit-4/img-mission-background.jpg");
  background-color: black;
  height: 700px;
  width: 1200px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  margin: auto;
  position: relative;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  background-color: black;
  text-transform: capitalize;
  scroll-margin-top: 3em;
}

/*TEA OF THE MONTH*/
.tea-of-the-month {
  display: flex;
  flex-flow: row wrap;
  width: 1000px;
  margin: auto;
  justify-content: center;
  column-gap: 20px;
}

.tea-of-the-month img {
  height: 200px;
  width: 300px;
}

.tea-of-the-month img:hover {
  box-shadow: 0px 0px 20px white;
}

/*LOCATIONS*/
.locations {
  background-image: url("https://content.codecademy.com/courses/freelance-1/unit-4/img-locations-background.jpg");
  background-position: 50% 20%;
  background-repeat: no-repeat;
  height: 500px;
  width: 1200px;
  margin: auto;
  display: inline-flex;
  position: relative;
  flex-flow: column no-wrap;
  justify-content: center;
  align-items: center;
  column-gap: 40px;
  scroll-margin-top: 3em;
}

.locations div {
  background-color: black;
  width: 300px;
  opacity: 1;
}
.locations-header {
position: absolute;
bottom: 80%; 
}

/*FOOTERS*/
.forefooter {
  height: 200px;
}

.footer {
  position: absolute;
  left: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console