Skip to content

fix(blog): real logos on the Bun Rust rewrite cover#7989

Merged
ankur-arch merged 3 commits into
mainfrom
blog/fix-bun-rust-cover-logos
Jun 30, 2026
Merged

fix(blog): real logos on the Bun Rust rewrite cover#7989
ankur-arch merged 3 commits into
mainfrom
blog/fix-bun-rust-cover-logos

Conversation

@ankur-arch

@ankur-arch ankur-arch commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

What

The cover image for We put Bun's Rust rewrite in production on Prisma Compute used crude geometric stand-ins for the logos that read as deformed/warped:

  • Bun was a flat amber circle
  • Rust was a stretched orange diamond
  • Prisma was an asymmetric outline triangle

This swaps each for the official logo mark (reused from apps/site/public/icons/technologies/), embedded as a nested <svg> with its own viewBox and preserveAspectRatio="xMidYMid meet" so they scale uniformly and never warp.

  • Rust gear recolored to the cover's orange, Prisma mark to its teal accent; Bun keeps its native colors.
  • Embedded element ids are prefixed to avoid colliding with the cover's gradient/filter ids.
  • meta.png (the 1200×630 social card) regenerated from the corrected SVG.

Files

  • apps/blog/public/bun-rust-rewrite-prisma-compute/imgs/hero.svg
  • apps/blog/public/bun-rust-rewrite-prisma-compute/imgs/meta.png

Before / After

Before After
Bun circle · Rust diamond · Prisma scalene triangle Real Bun face · Rust gear · Prisma mark, all aspect-correct

Scope note: the companion Image Transformations with Bun cover was reviewed too, but it's a clean text-chip pipeline diagram with no logo marks, so nothing was warped there and it's left unchanged.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated a blog post’s hero image to use a PNG asset instead of an SVG, improving the displayed cover image.

The cover for "We put Bun's Rust rewrite in production on Prisma Compute"
used crude geometric stand-ins for the logos: a flat circle for Bun, a
stretched diamond for Rust, and an asymmetric outline triangle for
Prisma. They read as deformed.

Replace each with the official logo mark (from
apps/site/public/icons/technologies), embedded as a nested <svg> with
its own viewBox and preserveAspectRatio="xMidYMid meet" so they scale
uniformly and never warp. Rust is recolored to the cover's orange and
Prisma to its teal accent; Bun keeps its native colors. Embedded ids are
prefixed to avoid colliding with the cover's gradient/filter ids.

Regenerated meta.png (1200x630) from the corrected SVG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jun 30, 2026 2:51pm
docs Ready Ready Preview, Comment Jun 30, 2026 2:51pm
eclipse Ready Ready Preview, Comment Jun 30, 2026 2:51pm
site Ready Ready Preview, Comment Jun 30, 2026 2:51pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6451b66f-147e-408c-b8d2-05263cb56517

📥 Commits

Reviewing files that changed from the base of the PR and between efe5d35 and 79fbaca.

⛔ Files ignored due to path filters (3)
  • apps/blog/public/bun-rust-rewrite-prisma-compute/imgs/hero.png is excluded by !**/*.png
  • apps/blog/public/bun-rust-rewrite-prisma-compute/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/bun-rust-rewrite-prisma-compute/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/bun-rust-rewrite-prisma-compute/index.mdx

Walkthrough

The heroImagePath frontmatter field in the bun-rust-rewrite-prisma-compute blog post MDX file is updated from an .svg asset reference to a .png asset reference.

Hero Image Asset Fix

Layer / File(s) Summary
heroImagePath SVG → PNG
apps/blog/content/blog/bun-rust-rewrite-prisma-compute/index.mdx
Single frontmatter field heroImagePath switched from the .svg file to the .png file.

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • prisma/web#7951: Applies the same SVG-to-PNG hero image swap on the same blog post — directly related at the field level.
  • prisma/web#7974: Same heroImagePath SVG-to-PNG pattern applied to a different blog post MDX frontmatter.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the cover-image/logo update described by the PR and is specific enough for history scanning.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@argos-ci

argos-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jun 30, 2026, 2:58 PM

ankur-arch and others added 2 commits June 30, 2026 16:47
The hand-built SVG (geometric/gear logos) still read as off-brand. Swap
it for the finished cover: centered title with "Rust rewrite" in the
brand teal, Bun's logo, Ferris (the Rust crab), and a Compute chip mark
on glowing tiles, with the Prisma wordmark.

- Add hero.png (1600x840) and regenerate meta.png (1200x630) from it.
- Point heroImagePath at hero.png and drop the old hero.svg.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant