HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="col-md-8 col-md-offset-2" data-astro-cid-66gilzpm="">
<p>I took a picture of my neighbor last year while practicing my portrait photography with an old camera. His favorite coffee brand saw <a href="https://www.instagram.com/p/CzMuALQyDoA/?img_index=1">my post on Instagram</a> and sent a bunch of beans and other gifts as a thank you.</p>
<p>It was such a nice little surprise! I’m not someone that has a huge following on social media and I only post my photos as a way to practice photography, so I was pleased as punch that sharing his story would be appreciated, since he’s someone that’s been so generous with advice and gear to encourage me to get back into bicycling after many years away.</p>
<p>Here’s the photos and writeup from November of 2023:</p>
<picture>
<source srcset="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy1.avif" type="image/avif">
<img class="img-responsive center-block" src="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy1.jpeg" width="1440" height="1440" alt="Photo of a smiling older gentleman wearing a black t shirt.">
</picture>
<picture>
<source srcset="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy2.avif" type="image/avif">
<img class="img-responsive center-block" src="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy2.jpeg" width="1440" height="1440" alt="Close up of a logo for 'Death Wish Coffee' on the breast pocket of a black t shirt." decoding="async" loading="lazy">
</picture>
<picture>
<source srcset="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy3.avif" type="image/avif">
<img class="img-responsive center-block" src="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/randy3.jpeg" width="1440" height="1440" alt="Back of a t shirt with an illustration of a woman with a painted face drinking out of a mug in the shape of a human skull." decoding="async" loading="lazy">
</picture>
<blockquote>
<p>Let me tell you a little bit about my neighbor Randy:</p>
<p>He’s one of two friends that got me back into cycling. I figured if a guy in his 70’s can ride MTB, road and fixies even though he’s got shrapnel in one of lungs from Vietnam (and by the way he still totally shreds, riding his fixie up the steep hill at Washington Street to lift at Stern’s Gym, the oldest gym in the country) well then hey, I can power through a knee injury and stop making excuses.</p>
<p>He used to coach a youth velodrome team back in the 90’s, a little bit after I did a season there in 8th grade, another connection to my formative years that makes me feel like I really am back home. It warms heart to see that the velodrome is still going stronger than ever – it’s a meetup spot for all kinds of group rides and is the beating heart of the central urban San Diego cycling scene.</p>
<p>And yes he’s still pushing the envelope. I mean just look at his shirt of the world’s strongest coffee, that stuff is industrial grade jet fuel.</p>
<p>In short, I want to be Randy when I grow up. I told his wife that once and she said “yep, he gets that a lot” 😂</p>
<p>So here’s to rad old dudes that fight Father Time like a boss. That’s the battle I’m going to be training for sooner than you think and I hope to handle myself at least half as well 💪</p>
</blockquote>
<p>The brand I referenced in the post is <a href="https://deathwishcoffee.com">Death Wish Coffee</a>, a company with the punk-sounding tagline <em>“Rebellious by Nature”</em> — an appropriately irreverent and hard core culture that’s a perfect fit for coffee-loving athletic types.</p>
<p>Hell, their coffee’s even <a href="https://www.businesswire.com/news/home/20180607005729/en/Death-Coffee-Launches-Space-Galaxys-Strongest-Coffee">been to the space station</a>, not just once but <a href="https://www.timesunion.com/business/article/Death-Wish-Coffee-returning-to-International-13935222.php">twice.</a></p>
<p>Bad. <em>Ass.</em></p>
<p>After seeing my writeup, they sent a thoughtful hand-written note of appreciation and a bunch of beans, stickers, a mug and cool bandana:</p>
<picture>
<source srcset="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/gifts-resized.avif" type="image/avif">
<img class="img-responsive center-block" src="https://d32mxho067pe0f.cloudfront.net/images/writing/coffeeforpics/gifts-resized.jpeg" width="1440" height="1920" alt="Bags of coffee beans and related gear." decoding="async" loading="lazy">
</picture>
<p>It’s such a fitting gift for a coffee fan like Randy. His morning routine is to walk his bulldog Molly while carrying a ceramic espresso cup, slowly ambling their way to the coffee shack down the block for an early pick me up. I got him a gift card from the same place about a year ago and this just levels it up even more.</p>
<h2 id="randy--cycling-enabler">Randy = Cycling Enabler</h2>
<p>We started talking not soon after I moved to the area because I saw a track bike on his roof rack, which is how I learned about his involvement with the local velodrome.</p>
<p>Bicycling played a huge part in my adolescent years. The junior team at the local track was one of those <em>“I found my tribe”</em> moments in life, formative in ways that you appreciate even more in hindsight.</p>
<p>I lost touch with cycling many years ago, after injuring my knee playing soccer and needing surgery. So when I got back into it after such a long time away, I naturally had a lot of growing pains and minor issues. I took it slowly, taking any advice and tweaks to my gear that I could get.</p>
<p>Randy gave me a couple of different saddles to try out and see what my fit was. And once that was dialed in but I was still experiencing wrist pain, he even gave wrist guards specific to riding mountain bikes, from a motocross brand that doesn’t even make them anymore. So incredibly generous and a total lifesaver.</p>
<h3 id=""></h3>
<p>So here’s to capturing moments, celebrating our neighbors, and of course, to more epic cups of coffee. Ride on, Randy, and thanks for the beans, Death Wish Coffee.</p>
</div>
html, body {
height: 100%;
background: #fcf9ee;
font-size: large;
}
a {
color: #f15403;
background: linear-gradient(
rgba(255,255,255,0.2),
rgba(255,255,255,0.6)
);
text-underline-offset: 0.15em;
}
img {
display: none;
}
Also see: Tab Triggers