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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <!--
  Image
  Title
  Description
  Link

  Sometimes:
  date (top tagline)
  guest
-->
<div class="cards">
  <div class="card">
    <img src="https://cdn.sanity.io/images/vnkupgyb/production/3742c4bdb64a5001257317893441652219c240ae-2560x1440.jpg?w=1600&h=900&fit=crop&fm=webp" alt="Let’s Learn Ghost on the Jamstack! (with David Darnes)" />
    <h2>Let’s Learn Ghost on the Jamstack! (with David Darnes)</h2>
    <p>
      Where does the content for our Jamstack sites live? In this episode, Dave Darnes teaches us how Ghost makes content management on the Jamstack so easy it‘s spooky!
    </p>
    <a href="https://www.learnwithjason.dev/let-s-learn-ghost-on-the-jamstack" class="button text">Watch this video &rarr;</a>
  </div>

  <div class="card">
    <p class="address">Thursday, April 9, 9:00 AM PDT</p>
    <img src="https://cdn.sanity.io/images/vnkupgyb/production/e820381c5ed27a5bcd50a19f7588f66be03f47b3-2560x1440.jpg?w=1600&h=900&fit=crop&fm=webp" alt="Let’s Learn Ghost on the Jamstack! (with David Darnes)" />
    <h2>Let's Learn Design Systems!</h2>
    <p>Guest: <a href="https://twitter.com/danmall">Dan Mall</a></p>
    <p>
      Design systems are a hot topic, but how do you make sure your design system is useful? More importantly, how do you make sure people actually use it? In this episode, Dan Mall teaches us the fundamentals of design systems and how they can help us be more effective.
    </p>
    <a href="https://www.google.com/calendar/render?action=TEMPLATE&text=Let%27s+Learn+Design+Systems%21&details=Design+systems+are+a+hot+topic%2C+but+how+do+you+make+sure+your+design+system+is+useful%3F+More+importantly%2C+how+do+you+make+sure+people+actually+use+it%3F+In+this+episode%2C+Dan+Mall+teaches+us+the+fundamentals+of+design+systems+and+how+they+can+help+us+be+more+effective.&location=https%3A%2F%2Ftwitch.tv%2Fjlengstorf&dates=20200409T160000Z%2F20200409T173000Z&ctz=America%2FLos_Angeles" class="button">Add to Google Calendar</a>
  </div>

  <div class="card">
    <img src="https://d2z6c3c3r6k4bx.cloudfront.net/uploads/event/banner/1091618/6d38cb93ef38b72e7781659349fa8b82.jpg" alt="Jamstack Fast Track" />
    <h2 class="title">Jamstack Fast Track</h2>
    <p>Date: Apr. 15, 2020</p>
    <p class="description">
      To stay competitive, companies need to ship better web experiences faster than ever.
      The web is constantly evolving, and customers are demanding more and more from the web-based products they use. Companies need to be able to respond quickly to feedback, to deliver products and features faster than ever — while simultaneously creating higher quality experiences.
    </p>

    <!--
      Button API Docs :troll-emoji:

      For more information, see the README (and README links to e.g. Storybook, docs, etc.)

      Create a documentation breadcrumb trail to find the information.
    -->
    <a href="https://ti.to/learn-with-jason/jamstack-fast-track-2020-04-15" class="button icon icon-ticket">Get Tickets</a>
  </div>
</div>
              
            
!

CSS

              
                body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 100px;
}

.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
}

.card {
  border: 1px solid #ddd1ee;
  border-radius: 8px;
  box-shadow: 10px 10px 0 #ddd1ee;
  box-sizing: border-box;
  max-width: 400px;
  padding: 20px;
  position: relative;
}

.card .address {
  border: 1px solid #ddd1ee;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #ddd1ee;
  position: absolute;
  top: 0;
  right: -10px;
  background: white;
  width: 80px;
  padding: 5px;
}

.card img {
  border: 1px solid #ddd1ee;
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  max-width: 100%;
}

.card h2 {
  font-family: "mallory";
  font-size: 1.4rem;
  margin: 0.5rem 0 0;
}

.card .button {
}

              
            
!

JS

              
                
              
            
!
999px

Console