Skip to content

fix(website): hero code-window no longer overlaps CTA buttons#50

Merged
heggria merged 1 commit into
mainfrom
fix/hero-cta-overlap
Jul 6, 2026
Merged

fix(website): hero code-window no longer overlaps CTA buttons#50
heggria merged 1 commit into
mainfrom
fix/hero-cta-overlap

Conversation

@heggria

@heggria heggria commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Reported via screenshot: the "Get Started" button was nearly invisible, hidden behind the hero code-preview window.

Root cause

The review-changes.json code preview under the hero CTA row used a negative top margin (-mt-6 mobile / md:-mt-12 desktop) to tuck it under the buttons. Because the figure has position: relative + z-10, it stacks above the statically-positioned button row — so instead of subtly peeking behind the buttons, it fully covered them.

At common viewports (768 tablet, 1440 desktop, and even 390 mobile once the row wraps to two lines) the code window's title bar sat directly on top of "Get Started" / "What is taskflow?" / "GitHub", making them barely legible through the glass blur and covering their click targets.

Fix

Replaced the negative overlap with a plain positive gap (mt-10 / md:mt-14), consistent with the rest of the hero's vertical rhythm (mt-7, mt-10, mt-12 elsewhere in the same section).

Verification

Ran the dev server locally and captured Playwright screenshots before/after at three viewports, both locales:

  • 1440×900 (desktop, en) — before: buttons hidden → after: fully visible
  • 768×1024 (tablet, en) — after: clean
  • 390×844 (mobile, en) — before: "What is taskflow?"/"GitHub" hidden → after: fully visible
  • 1440×900 (zh-cn) — clean

pnpm run build (Turbopack, 86/86 static pages) still passes.

The hero's review-changes.json code preview used a negative top margin
(-mt-6 mobile / md:-mt-12 desktop) to tuck it under the CTA button row.
Since the code-window figure has `position: relative` + `z-10`, it
stacks above the (statically-positioned) button row, so the negative
margin visually covered the buttons instead of just peeking behind them.

At common viewports (768px tablet, 1440px desktop, and 390px mobile once
the row wraps to two lines) the code window's title bar fully overlapped
"Get Started", "What is taskflow?", and "GitHub", making them nearly
unreadable/unclickable through the glass blur.

Replaced the negative overlap with a plain positive gap (mt-10 / md:mt-14)
consistent with the rest of the hero's vertical rhythm. Verified with
Playwright screenshots at 390x844, 768x1024, and 1440x900 for both en
and zh-cn locales — buttons are now fully visible and the code window
sits cleanly below them.
@heggria heggria merged commit d685f32 into main Jul 6, 2026
6 checks passed
@heggria heggria deleted the fix/hero-cta-overlap branch July 6, 2026 13:45
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