Skip to content

fix(hero-banner): center {} braces in the hexagon#16

Merged
kmadan merged 1 commit into
mainfrom
fix/hero-banner-brace-centering
May 14, 2026
Merged

fix(hero-banner): center {} braces in the hexagon#16
kmadan merged 1 commit into
mainfrom
fix/hero-banner-brace-centering

Conversation

@kmadan
Copy link
Copy Markdown
Contributor

@kmadan kmadan commented May 14, 2026

Summary

One-line transform fix. The `{}` glyph in `diagrams/hero_banner_{light,dark}.svg` was sitting 14 units left of the hex centre because the transform was `translate(32, 62)` when the math actually requires `translate(46, 62)`.

In the 80×80 brace frame the glyph is already centred at (40, 40). After `scale(0.65)` its centre lands at (26, 26). The translate must therefore put (26, 26) at the hex centre (72, 88), i.e. `translate(46, 62)`.

Logo and OG card were unaffected — those use the hexagon at its origin position where its centre already sits at (40, 40) in the local frame, with no extra transform applied.

Test plan

  • Visually verified in Inkscape at 2× rendering

The hero banner's curly-braces glyph was sitting 14 units left of the
hexagon center because the transform translated the brace group to
(32, 62) rather than (46, 62). In the 80×80 brace frame the glyph is
already centred at (40, 40); after scale(0.65) its centre lands at
(26, 26); the translate must therefore put (26, 26) at the hexagon
centre (72, 88), i.e. translate(46, 62), not translate(32, 62).

The same glyph in logo_*.svg and og_card_*.svg was unaffected because
those use a different hexagon position whose centre already sits at
(40, 40) in the local frame, with no extra transform applied.

Visible only on the hero banner, light + dark variants.
@kmadan kmadan merged commit 547268e into main May 14, 2026
2 checks passed
@kmadan kmadan deleted the fix/hero-banner-brace-centering branch May 14, 2026 10:32
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