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

              
                <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Faster+One&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Sarina&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Asap+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">

<header>
  <p class="top-bar">The greatest fight in history</p>
  
  <p class="header-sponsor">Jared ‘the’ Fox’s Big Bean BBQ <span class="ampersand">&</span> Bar <q>No, I’m not giving you a quote for that</q> <span class="presents">presents</span></p>
  
  <h1><strong>Rumpus</strong> in the <strong>Grumpus</strong></h1>
  
  <p class="header-tagline">Proof-of-Concept <span class="ugliest-font">Speed Showdown</span></p>
</header>

<div class="fighters">
  <article class="fighter">
    <img src="https://assets.codepen.io/183091/clipper-poster.png" class="img-clipper">
    <h2>Marko <small class="fighter-tagline">f.k.a. <b>‘Clipper’</b></small></h2>
  </article>

  <span class="versus">vs.</span>

  <article class="fighter">
    <img src="https://assets.codepen.io/183091/bridge-poster.png" class="img-bridge">
    <h2>‘Bridge’ <small class="fighter-tagline">a.k.a. <b>poc-1</b></small></h2>
  </article>
  <!--
  <span class="versus">vs.</span>

  <article class="fighter">
    <img src="https://assets.codepen.io/183091/deferred-poster.jpg" class="img-deferred">
    <h2>Deferred <small class="fighter-tagline">unrelated to <b>deferrals</b></small></h2>
  </article>
-->
</div>

<!-- <aside>
  <p class="starburst">No Internet Explorers!</p>
  <p class="starburst">3G Connection!</p>
  <p class="starburst">Garbagetown Androids!</p>
</aside> -->

<footer>  
  <svg class="time" height="200" width="200" viewBox="0 5 100 80">
    <text y="1em" font-weight="700" lengthAdjust="spacingAndGlyphs" textLength="100">Monday</text>
    
    <text y="1.1em" lengthAdjust="spacingAndGlyphs" textLength="100" font-size="3em" font-weight="900">9am</text>
  </svg>
  
  <svg class="location" height="100" width="600" font-weight="700">
    <text y="2em" textLength="150">Direct from</text>
    <text y="3em" textLength="147">ringside at</text>
    <text class="location-lockup" y="1em" x="160" textLength="430">Atrium Two</text> 
    <text y="3em" x="160" font-family="Asap,sans-serif" textLength="430" font-weight="500">Secret Basement Fight Club</text>
  </svg>
  
  <address>
    <span class="addr-line1">221 East 4<sup>th</sup> St</span><br/>
    <span class="addr-line2" style="font-size:1.33em">Cincinnati</span><br/>
    <span class="addr-line3" style="font-size:0.8em">Free Country USA</span><br/>
  </address>
  
  <svg class="price" height="100" width="370" font-weight="700">
    <text y="1em" textLength="130">All seats</text>
    <text y="2em" textLength="130">reserved</text>
    <text y="3em" textLength="130" font-family="Asap,sans-serif">starting</text> 
    <text y="67" x="140" font-size="3em">$20</text>
    <text y="83" x="245" font-size="3.9em" font-weight="400">/</text>
    <text y="90" x="270" font-size="3em">GB</text>
  </svg>
</footer>

<p class="bottom-bar">Ringside is where it’s at ★ No VoDs ★ No Microsoft Teams recording</p>
              
            
!

CSS

              
                body {
  text-align: center;
  background: #fcf8ed;
  color: #12110f;
  text-transform: uppercase;
  font: 500 1.8rem/1.2 Asap Condensed, sans-serif;
  text-rendering: optimizeLegibility;
  margin-top: 0;
  margin-bottom: 0;
  text-shadow: 0 0 1px; // make all the text look like it bled slightly when printing
}

.top-bar {
  color: #fcf8ed;
  background: #12110f;
  margin-top: 0;
  font-family: Asap, sans-serif;
  font-weight: 700;
  padding: 0.1em 1em;
  margin-bottom: 0.5em;
}

.header-sponsor {
  font-family: Asap, sans-serif;
  font-weight: 700;
  font-size: 0.8em;
  margin-top: 0;
  color: #db4949;
  text-shadow: 0 0 1px;
}

.header-tagline {
  color: #db4949;
}

.ampersand {
  font-family: Helvetica Neue, sans-serif;
}

header q {
  font-style: italic;
  display: block;
  font-weight: 500;
  font-size: 0.7em;
}

.presents {
  text-transform: capitalize;
}

h1 {
  display: flex;
  align-items: center;
  letter-spacing: -0.05em;
  word-spacing: 0.5ch;
  line-height: 1;
  margin: -2rem 0;
  
  > strong {
    font-size: 10vw;
    flex: 1;
  }
}

.header-tagline {
  font-weight: 700;
}

.ugliest-font {
  font: 1.5em/1 Faster One, sans-serif;
  display: block;
}

.fighters {
  display: flex;
  align-items: end;
  justify-content: center;
  margin: -1em 0;
}

.fighter {
  flex: 1 0;
}

.fighter:first-child h2 {
  transform: skewY(11deg);
}

.fighter:nth-child(3) h2 {
  transform: skewY(-11deg);
}

.versus {
  color: #fcf8ed;
  background: #db4949;
  border: 3px solid;
  padding: 0.25em;
  border-radius: 30em;
  bottom: 3.8em;
  position: relative;
  margin: 0 -0.8em;
  z-index: 1;
}

// .versus:nth-child(n+3) {
//   bottom: 5em;
// }

img {
  mix-blend-mode: multiply;
  width: 45vw;
  max-width: 100%;
  margin-bottom: -2.3em;
}

.img-bridge {
  object-fit: cover;
  object-position: 50% top;
  height: 400px;
}

h2 {
  background: #db4949;
  color: #fcf8ed;
  font-size: 3em;
  padding: 0.1em 0 0.2em;
  margin-top: 0;
}

.fighter-tagline {
  display: block;
  font-size: 0.25em;
  letter-spacing: 0.03em;
}

.fighter-tagline > b {
  display: block;
  font-size: 1.8em;
  background: inherit;
  letter-spacing: 0;
}

footer {
  display: grid;
  justify-content: center;
  grid-gap: 0 0.5em;
  align-items: center;
  grid-template-areas: "time location location"
                       "time address price";
}

.time {
  grid-area: time;
  border-right: 4px solid;
  padding-right: 1rem;
}

.location {
  grid-area: location;
  border-bottom: 4px solid;
  display: block;
  margin-bottom: 0.5rem;
}

.location-lockup {
  font-family: Sarina, cursive;
  text-transform: none;
  font-size: 2em;
}

address {
  display: inline-block;
  font-style: inherit;
  font-weight: 700;
  line-height: 0.9;
  grid-area: address;
  border-right: 4px solid;
  padding-right: 0.5rem;
}

.price {
  grid-area: price;
}

.bottom-bar {
  background: #db4949;
  color: #fcf8ed;
  margin-bottom: 0;
  padding: 0.8em 1ch 0.5em;
  font-size: 0.8em;
  font-weight: 700;
  
  &::before,
  &::after {
    content: " ★ ★ ★ "
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console