首页›Chris Coyier›文章

Got Them Little Side Projects Moved to CodePen Hosting

Chris Coyier · 2026年11月6日

AI 摘要 AI 生成,可能有误

作者描述了将几个小型业余项目网站——本德(Bend)的 Smashburgers、本德(Bend)的 Breakfast Burritos 以及一个圣诞愿望清单网站——迁移到 CodePen 托管的过程,所用方法涵盖从采用原生视图过渡的纯静态 HTML,到用 Eleventy 进行 Markdown 构建,再到 React + Vite。他重点说明了每种工具如何契合各自的用途,同时也指出了其中的一些权衡之处,例如 Vite 缺少 SSR(服务器端渲染)支持。这套方案的核心亮点在于“零额外成本”的体验:虽然部署网站需要 CodePen PRO,但子域名实际上是免费的(只需一条 CNAME 记录),托管额外网站也不产生任何费用——只需一份很多人本来就因其他原因而付费的 PRO 订阅即可。

I had my little Smashburgers in Bend website on Astro on Cloudflare Pages. While I 💜 both of those things, CodePen hosting is more than capable, and that’s obviously extremely fun and satisfying for me.

I had the Smashburgers site on Astro way back when because they supported multi-page view transitions in a really nice way, polyfilling it in browsers that didn’t have it yet. But time has moved on, and I consider it a progressive enhancement anyway, so the Pen now just uses native multi-page view transitions and falls back to nothing. This means just static HTML pages! The Pen doesn’t use any non-default Blocks at all.

I also moved my Breakfast Burritos in Bend website over to CodePen. This one needs some kind of build process (as I envision it), because each burrito is a Markdown file. That’s just a nice way to work on this sort of thing. All the Markdown files are templated and smashed together to build the site. Eleventy absolutely rules at this — it’s the perfect tech for the job.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Chris Coyier

Quick Holiday Project: DragonWood Rules

AI 摘要The author bought the board game DragonWood on a friend's recommendation and, to make learning the rules smooth before playing with family, compiled notes from YouTube videos and rules pages, then used CodePen AI to build and deploy a simple reference website for the game's rules. They found the site very helpful when playing with an iPad open on a stand, and enjoyed the idea of building small websites as quick, permanent references for information. The author also promotes CodePen's Black Friday sale and argues that how easy it is to build websites changes the math on when making one is worth the effort.

The Idiot Files: How I Let My X Account Get Hacked

AI 摘要The author describes how their X account was hacked after a fake OpenAI employee messaged them to schedule a meeting via a legitimate-looking Calendly link, which then prompted them to approve an app with excessive posting permissions. Red flags like the recently changed username were overlooked, and once the app was authorized, the attacker could post on the author's behalf until friends alerted them and the access was quickly revoked. The author cleaned up the malicious posts, faced baseless accusations of scamming, and mocks X for failing to act on their report of the attacker.

YoloCam S7

AI 摘要The author reviews the YoloCam S7, a purpose-built webcam purchased after growing frustrated with repurposing cameras like a Canon 5D Mark IV and Sony ZV1, and finds it mostly great, praising its image quality, swappable lens, automatic face focus, and simple design. However, they dislike that it requires two separate USB-C cables (one for power, one for connection) and that the YoloLiv Compose software frequently fails to detect the camera, often forcing them to unplug and reconnect it.

Ground Stoppage: $1,825.15

AI 摘要The author recounts their ordeal trying to fly home from Wichita, Kansas to Redmond, Oregon on November 13th, when an FAA ground stoppage caused repeated delays and cancellations of their Delta flights. To get home, they spent a night in a hotel, drove three hours to Kansas City to catch a newly booked $1,292.50 flight, and still got stranded overnight in Seattle when their final connection was cancelled. The whole experience cost them $1,825.15 in extra expenses and stretched a trip that should have taken hours across several days.

Jobs Podcast

AI 摘要The author appeared as a guest on Nathan Puls's Jobs Podcast, which explores making things, making a living, and embracing weirdness on the web. The conversation opens with a playful hypothetical: if Chris disappears into his camper van for a week, Nathan must impersonate him at work. The survival guide for this role includes making jokes in Slack, asking pointed questions, rubbing one's chin, and shipping a bit of design polish.