Skip to content

fix(theme): drop stray centered home-hero glow (1.2.1)#14

Merged
btravers merged 1 commit into
mainfrom
fix/home-hero-glow
Jun 28, 2026
Merged

fix(theme): drop stray centered home-hero glow (1.2.1)#14
btravers merged 1 commit into
mainfrom
fix/home-hero-glow

Conversation

@btravers

Copy link
Copy Markdown
Contributor

The docs sites show a big pink halo floating in the top-middle of the home page (visible at https://btravstack.github.io/amqp-contract/).

Cause

The .VPHome::before flourish painted a hard-centered radial glow at the top of any VitePress home layout. But:

  • the landing page never renders .VPHome (it uses its own bespoke layout: false + <Landing /> hero), so the flourish only ever affected the docs sites; and
  • on the docs sites the default home hero is left-aligned with the logo on the right, so a centered-top glow just floats, disconnected from everything.

Fix

Remove the standalone .VPHome::before glow (and its .dark variant). The hero logo keeps its halo via --vp-home-hero-image-background-image, which sits behind the image itself and tracks it wherever the layout places it. Patch bump 1.2.0 → 1.2.1.

Verification

Simulated the fix against the live site (inject .VPHome::before{display:none}): the stray top-center halo disappears, the right-side hero logo keeps its own glow, and mobile has no horizontal overflow (scrollWidth == innerWidth). Inner content pages were already clean.

Release

Same as 1.2.0 — merge, then publish:

cd packages/theme && pnpm build && npm publish --access public --otp=<code>

Once 1.2.1 is live, I'll bump the three docs sites onto it so the fix deploys (pnpm update @btravstack/theme in each + redeploy).

🤖 Generated with Claude Code

The `.VPHome::before` flourish painted a hard-centered radial glow at the
top of every VitePress home page. On the docs sites that reads as a bug: a
big pink halo floating in the top-middle, disconnected from the hero — whose
logo the default home layout places on the RIGHT, not centered. (The landing
page never used it either; it has its own bespoke `layout: false` hero.)

Remove the standalone glow. The hero logo keeps its halo via
`--vp-home-hero-image-background-image`, which sits behind the image itself
and tracks it wherever the layout puts it. Bump to 1.2.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 28, 2026 23:19
@btravers btravers merged commit 16957d1 into main Jun 28, 2026
1 check passed
@btravers btravers deleted the fix/home-hero-glow branch June 28, 2026 23:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an unintended, hard-centered glow effect applied to VitePress home layouts so docs sites no longer show a “floating” halo at the top of the page, while preserving the intended glow behind the hero logo via the existing --vp-home-hero-image-background-image token.

Changes:

  • Deleted the .VPHome::before (and dark variant) centered radial glow flourish from the shared theme CSS.
  • Kept the hero-logo glow behavior anchored to the image background token and retained the floating logo animation.
  • Bumped @btravstack/theme version from 1.2.0 to 1.2.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/theme/src/style.css Removes the centered .VPHome::before glow while keeping the hero image’s token-based glow and animation.
packages/theme/package.json Patch version bump to publish the theme fix as 1.2.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants