Swiss Design Meets Punk Rock: How I Built an Automated Hero Poster System for My Blog
Ditching generic stock banners for bespoke 16:9 posters inspired by Swiss modernism, Saul Bass, and DIY punk zines—generated in code and synced automatically to Contentful.

Scroll through most engineering blogs and you will spot the same visual fatigue right away: either a blank wall of text, a generic stock photo of a laptop in a coffee shop, or a glossy AI-generated sci-fi brain that has nothing to do with the article.
I wanted every post on this site to feel like walking past a curated wall of exhibition posters or record sleeves—something unmistakably human, crisp, readable at a glance, and a little bit rebellious.
So instead of opening Figma for an hour every time I write an article, I turned bespoke 1600×900 hero poster generation into a standard, automated step in my blog workflow.
🇨🇭 A Quick Primer: What Is Swiss Design?
If you have never studied graphic design, you have still seen Swiss Design (officially called the International Typographic Style) everywhere—on airport signage, museum posters, Braun appliances, and Apple product pages.
Born in Switzerland in the 1950s and championed by legends like Josef Müller-Brockmann, Swiss Design was built around a radical idea: clarity is beauty. Instead of decorating a page with flourishes, you organize information with mathematical discipline:
Strict modular grids: Every headline, line, and shape locks onto invisible horizontal and vertical rails so the eye knows immediately where to look.
Asymmetric, flush-left typography: Text aligns hard to the left (almost never centered) with generous negative space so the layout breathes.
Clean grotesque sans-serif type: Heavy, no-nonsense typefaces like Helvetica, Neue Haas Grotesk, and Univers set with tight line spacing and dramatic size contrast between headlines and captions.
Hairline rules and flat geometry: Thin divider lines and simple geometric shapes carry the meaning—no drop shadows, no glossy gradients, no visual clutter.
Swiss Design gives a poster its bones. Even from across the room, you immediately know what the piece is about.
🎸 Adding Saul Bass & a Dose of Punk Rock
Pure Swiss Design is timeless, but if you apply the exact same white-paper-and-black-box template to ten blog posts in a row, it can start to feel a little too polite—even predictable.
That is where two other influences came in:
Saul Bass (mid-century film posters): Think of the iconic posters for _Vertigo_, _Anatomy of a Murder_, or _North by Northwest_. Bass kept the bold, flat cut-paper simplicity of modernism, then tilted it into dramatic skewed 3D perspective—whirling optical vortices, cantilevered monoliths, and jagged shapes that feel like they are lunging off the wall.
DIY punk rock & zine culture: Punk gig flyers from the late '70s and '80s were xeroxed on saturated colored paper—acid yellow, crimson, forest green, burnt terracotta—with high-contrast knockout bars, raw paper grain, and zero interest in looking "corporate."
Blending the two gave me the exact balance I wanted: Swiss grid discipline for instant legibility, plus Saul Bass perspective and punk-zine color for attitude.
To keep the blog feed feeling curated and unpredictable, every post deliberately mixes up both the color ground (deep forest emerald, olive moss, burnt terracotta, warm ochre, deep rust, pine teal, earthy espresso umber, Prussian indigo, signal crimson, electric cobalt) and the visual energy—alternating between:
Wild, kinetic 3D-skewed Saul Bass compositions (like tilted _Vertigo_-style optical vortices, nested preview portals, or orbital tag constellations)
Ultra-minimalist Swiss modernist compositions (generous negative space, iconic Bauhaus/Constructivist geometry, and strict orthogonal hairline grids)
Every poster anchors reggiepangilinan.com flush-left on the bottom baseline, balanced by a compact, scannable QR code colophon.
⚙️ How the Poster Generator Works (In Plain English)
You might assume generating crisp, print-style posters requires heavy design software or flaky image-generation APIs that misspell words. Instead, the generator uses the most reliable layout engine on the planet: a web browser.

Here is what actually happens under the hood, step by step:
1. Code the poster as HTML + SVG: Each poster is a tiny self-contained
1600×900HTML page. CSS Grid locks the Swiss typography to a 12-column mathematical grid, inline<svg>draws the topic-specific geometric artwork (and a subtle SVG fractal-noise filter adds tactile print paper grain), and CSS 3D transforms (perspective+rotateY/rotateX/rotateZ) create the skewed Saul Bass depth on the wilder posters.2. Generate a real scannable QR code: Using the
qrcodelibrary already in this repo, the script renders a crisp vector SVG QR code pointing tohttps://reggiepangilinan.comand tucks it into the bottom footer baseline as a clean Swiss colophon mark.3. Snap a pixel-perfect PNG with headless Chrome: Instead of taking a manual screenshot, headless Chrome opens the local HTML file at
--window-size=1600,900and writes a razor-sharpimages/hero.pngstraight into the post's folder. Because the browser renders real vector fonts and SVG paths, every letter is spelled accurately and stays crisp at any zoom level.4. Commit to Git and let GitHub Actions sync Contentful: Each post references its local poster in YAML frontmatter (
featuredImage: "./images/hero.png"). When the pull request merges tomain,scripts/create-contentful-draft.jsautomatically uploads the PNG to Contentful Media (deduplicating by filename so re-runs never create duplicates), publishes the asset, and links it to the blog post'sfeaturedImagefield.
The whole design spec lives right inside AGENTS.md, so generating a bespoke poster is now a built-in standard step for every new post I write.
🖼️ Making Sure the Website Doesn't Ruin the Posters
Once the first batch of posters went live, I immediately noticed three classic web-layout bugs that were fighting against the artwork:
The caption was covering the bottom of the poster: On individual post pages,
.imageCaptionwas positionedabsoluteat the bottom of the hero image with a dark translucent bar—sitting right on top ofreggiepangilinan.comand the QR code. I refactoredBlogPostImage.tsxandblog-post.module.cssso captions render cleanly _below_ the image frame instead of overlaying it.Forced cropping was slicing off poster edges: The blog list thumbnails in
BlogListImage.tsxpreviously requested&fit=fillat a16:10aspect ratio, which shaved off the left and right edges of16:9posters. Switching the CDN query to preserve natural aspect ratio and setting every hero/list container to exact16 / 9withobject-fit: containkeeps every single pixel intact.Right-aligned thumbnails & busy hover zoom: On
BlogPostList.tsx, standard post rows originally placed the thumbnail on the right side and zoomed it in (scale(1.03)) on hover. Moving the thumbnails to the left side (matching the featured lead post) and removing the hover zoom makes scanning the blog feed calmer and far more natural.
✨ Why This Approach Sticks
Treating blog art as a small design system in code solves three problems at once:
Zero creative bottleneck: Writing a new post no longer stalls while hunting for a banner image or fighting AI text artifacts.
Unmistakable identity: Whether a poster shows up on
/blog, inside an article, or as an Open Graph preview card on social media, it immediately looks like it belongs here.Fun to iterate: Want to introduce earthy terracotta tones, tilt a composition into 3D perspective, or refine the QR colophon? It is just CSS and SVG—version-controlled right alongside the code.
If you are scrolling through the blog list now, every cover you see came straight out of this pipeline—part Zurich exhibition wall, part 1960s movie title sequence, and part midnight punk zine.
Related Posts
Running a Full Next.js Blog on Free Tiers: A Contentful + Netlify Case Study
A data-backed case study breaking down Contentful Free, Netlify Free, and GitHub Free quotas (at the time of this writing), with real math on how many visitors, blog posts, and images a personal site can serve before ever paying a cent for infrastructure.
How My Related Posts Component Works (Zero Manual Maintenance, Driven by Tags)
A breakdown of how RelatedPosts picks the top 3 related articles using case-insensitive tag overlap, recency tie-breaking, parallel fetching, and 24-hour ISR caching.
Client-Side QR Code Sharing and Smart Open Graph Cards in Next.js
How I built PostShareBar (copy link, Web Share API, and downloadable client-side QR codes) alongside word-boundary SEO truncation and auto-cropped 1200×630 Open Graph cards.