Skip to content

fix(landing): blend hero bottom into the section below - #363

Open
Benjtalkshow wants to merge 1 commit into
boundlessfi:mainfrom
Benjtalkshow:fix/hero-bottom-blend
Open

fix(landing): blend hero bottom into the section below#363
Benjtalkshow wants to merge 1 commit into
boundlessfi:mainfrom
Benjtalkshow:fix/hero-bottom-blend

Conversation

@Benjtalkshow

@Benjtalkshow Benjtalkshow commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Problem

The bottom of the landing hero did not blend with the section below it. The hero's background gradient ended at its peak teal tint (rgba(46, 237, 170, 0.08) at the 100% stop) exactly at the hero's bottom edge, while the next section sits on flat #0D1111. The two met as a hard horizontal step.

This only looked correct when StatsStrip rendered, because that component carried its own teal-to-ink gradient to continue the glow. StatsStrip returns null whenever its three stat queries fail or come back empty, so a clean seam depended on an API call succeeding.

Fix

  • app/page.tsx — the hero now passes fadeBottom. The tint peaks just above the base and resolves back to ink at the edge, inside the hero's own gradient, so it blends into whatever follows.
  • components/landing/stats-strip.tsx — dropped the gradient class. With the hero self-contained, a strip starting at full teal would reintroduce the same step in reverse.
  • Updated the fadeBottom doc comments in hero-background.tsx and hero-section.tsx, which said the prop was only for heroes sitting directly above the footer.

Verification

npx tsc --noEmit, npm run lint, and npm run build all pass.

Checked locally in a browser. The data sections were empty there because the backend API was not reachable from my machine, so they fell into their error and empty states. The seam sits at the hero's bottom edge and renders independently of that data.

Before — hard line at the hero base, lighter teal above, flat ink below.

After — continuous fade, no visible edge.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Updated the home page hero background with a smoother fade into the content below.
    • Refined the statistics section’s background styling for a cleaner transition between sections.
    • Improved visual consistency between hero areas and surrounding page sections.
  • Documentation
    • Clarified how hero background fades appear and how they transition into adjacent sections.

The hero gradient ended at its peak teal tint exactly at the hero's
bottom edge, so it met the flat ink background of the next section as a
hard horizontal step.

It only looked right when StatsStrip rendered, since that component
carried its own teal-to-ink gradient to continue the glow. StatsStrip
returns null whenever its stat queries fail or come back empty, so the
seam depended on an API call succeeding.

The hero now uses fadeBottom, peaking the tint just above its base and
resolving it back to ink at the edge within its own gradient, so it
blends into whatever follows. StatsStrip drops its gradient, which would
otherwise reintroduce the same step in reverse.

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

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

@Benjtalkshow is attempting to deploy a commit to the Threadflow Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f18b5c32-4f8a-49d0-a294-d4ed257a840e

📥 Commits

Reviewing files that changed from the base of the PR and between b5ff7b6 and 8880d7b.

📒 Files selected for processing (4)
  • app/page.tsx
  • components/landing/stats-strip.tsx
  • components/marketing/hero-background.tsx
  • components/marketing/hero-section.tsx

📝 Walkthrough

Walkthrough

The homepage enables the hero background bottom fade. The stats section removes its custom gradient class. Hero component documentation now describes fade behavior and transition conditions.

Changes

Landing gradient updates

Layer / File(s) Summary
Hero and stats gradient transition
components/marketing/hero-background.tsx, components/marketing/hero-section.tsx, app/page.tsx, components/landing/stats-strip.tsx
The homepage enables fadeBottom. The stats wrapper keeps only reveal. Hero documentation describes the updated tint and transition behavior.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: felladaniel36-hash

Poem

I’m a rabbit hopping through the glow,
The hero fades where teal winds flow.
The stats strip sheds its gradient coat,
Clear transitions help pages float.
One soft bounce, and off I go!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR changes landing-page gradients but does not implement the authentication and session hooks required by [#39]. Link this PR to the correct landing-page issue or implement the authentication and session-management requirements from [#39].
Out of Scope Changes check ⚠️ Warning The landing-page gradient changes are unrelated to the authentication and session-management scope in [#39]. Remove these landing-page changes from [#39] or update the linked issue to reflect the landing-page gradient objective.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the landing-page hero gradient change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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