Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <header>
  <nav>
    <a href="index.html"> <img class= "logo" src="https://assets.codepen.io/6306176/gulp-logo-light.png" alt="Circe Botanicals. Click for home." /></a>
    <ul class="flex-container">
      <li><a href="products.html"><span aria-hidden="true" class="fa-solid fa-mug-saucer"></span> About</a></li>
      <li><a href="blog.html"><span aria-hidden="true" class="fa-solid fa-location-dot"></span> Locations</a></li>
      <li><a href="about.html"><span aria-hidden="true" class="fa-solid fa-phone"></span> Contact</a></li></ul>
  </nav>
</header>
<div class= "container">
  <article>
      <h2>About Us</h2>
<p>Life without coffee is a gloomy place. That’s why Gulp Roast has been proudly serving up fresh coffee to the <a href="https://goo.gl/maps/3rAyszfwSDx8Si2Y9">San Francisco area</a> since 2000. Our coffee is locally sourced with the most delicious blends coming directly to your home, right from coffee farmers near you. Our coffee makes even the most difficult days just a tad easier to get through.</p>

<p>For us, this isn’t just brewing coffee. This is an active life mission to bring our customers the most flavorful, full-bodied beverages we can get our hands on. Browse our site to learn more about our locations and sourcing techniques.</p>
  <button type="button">Contact Us</button>
</article>
  
<figure class= "imageonecontainer">
<img class= "imageone" src="https://assets.codepen.io/6306176/gulp-pouring-coffee-vertical.jpg">
<figcaption>
  Our pour-over coffee is known for its freshness and amazing taste.</figcaption></figure></div>

<div class="footer">(c) 2022 Gulp Roast Coffee. All rights reserved.</div>

              
            
!

CSS

              
                body{
  margin: 0;
  padding: 0;
}
.logo{
  width: 15%;
}
.flex-container {
  display: flex;
  flex-direction: row;
  background-color: #082B59;
  justify-content: center;
}

nav .logo a {
  background-color: #082B59;
}
a:hover {
  color: #D98555;
  text-decoration: none;
}
nav{
  background-color: #082B59;
  border-bottom: 0.5rem solid #D98555;
  text-align: center;
}
nav ul {
  list-style-type: none;
  font-family: 'Lato', "arial", sans-serif;
  margin: 0;
  padding: 0;
}
nav a {
  font-weight: bold;
  text-decoration: none;
  color: #f3eee8;
  padding: 0.5rem 1rem;
  display: block;
}
nav a:hover {
  color: #D98555;
}
.container{
  margin: 3rem 0 3rem 0;
  display: flex;
  flex-direction: row;
  padding: 2rem;
}
figcaption {
  color: #F2F2F2;
  background-color: #59331D;
  padding: 1.5rem;
  margin-top: -0.5rem;
  border-radius: 0px 0px 1.5rem 1.5rem; 
}
.pos_cen{
  position: absolute;
  width: 70%;
  margin-left: 15%;
  margin-top: 5%;
  display: flex;
  flex-flow: row-reverse;
  justify-content: center;
}
h2 {
  font-family: 'Poppins', "times new roman", sans-serif;
  font-size: 1.875em; 
}
article {
  font-family: 'Lato', "arial", sans-serif;
  list-style-type: left;
  padding: 0 4rem;
  position: left;
}
button {
  border-radius: 0.8rem;
  color: #F2F2F2;
  font-family: 'Lato', "arial", sans-serif;
  position: center;
  font-size: 1em; 
  background-color: #59331D;
  padding: 1rem;
}
 a:hover {
  color: #D98555;
  text-decoration: none;
}
.a {
  display: inline-block;
}
.imageone {
   border-radius: 1.5rem 1.5rem 0 0;
}

.imageonecontainer {
  margin: 1rem 0 1rem 0;
}

.footer {
  color: #F2F2F2;
  border-top: 0.5rem solid #D98555;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  background-color: #082B59;
  text-align: center;
}
article p{
  font-size: 1.1rem; 
}
              
            
!

JS

              
                /* color palette:
#082B59 bright blue
#131D26 navy blue
#59331D coffee
#D98555 peach
#F2F2F2 white

Fonts:
Headlines - Poppins Bold
Text - Lato

Links all go to https://uxuicurriculum.wixsite.com/gulproast

*/
              
            
!
999px

Console