Skip to content

Restore the landing-page company marquee with a wide-screen fix - #1485

Merged
SawyerHood merged 3 commits into
mainfrom
bb/restore-company-social-proof
Aug 13, 2026
Merged

SawyerHood merged 3 commits into
mainfrom
bb/restore-company-social-proof

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Root cause

The track held exactly two logo copies and scrolled by one copy width per cycle. One copy is about 1307px wide. When the viewport is wider than one copy, the track runs out of content near the end of each cycle, and the band goes blank.

Fix

  • Measure the marquee and one logo list with a ResizeObserver. Render ceil(viewport / copyWidth) + 1 copies, with a minimum of 2. Set the count as --company-proof-copies on the track.
  • The keyframe now translates by calc(-100% / var(--company-proof-copies, 2)), so one cycle always travels exactly one copy and the loop stays seamless at every width.
  • The animation still moves only transform, and the existing IntersectionObserver still pauses it off screen. Resize re-renders occur only when the copy count crosses a threshold.

Verification

  • pnpm exec turbo run typecheck --filter=@bb/web
  • Headless Chromium checks at 390 / 1440 / 1920 / 3440px: 2 / 3 / 3 / 4 copies; the track covers both viewport edges at 21 sample points across 4 animation loops at each width.
  • Screenshot at 1920px at 97% of a cycle, the point where the old code went blank, shows a full band.

AGENT GENERATED: by Claude Opus 5

SawyerHood and others added 2 commits August 13, 2026 04:26
The track held two logo copies and scrolled by one copy per cycle.
When the viewport was wider than one copy, the track ran out of
content near the end of each cycle and the band went blank.

Measure the marquee and one logo list with a ResizeObserver, render
enough copies to cover the widest viewport plus one, and translate
by exactly one copy per cycle via --company-proof-copies.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚨 SLOP COP 🚨 · review

ELI5: This change makes a row of company logos move like a toy train.

I am the Slop Cop. I am reviewing security, code quality, performance, duplicate code, architecture, and the full page now.

Comment thread apps/web/src/routes/index.tsx Outdated
function LandingPage() {
const [companyProofPaused, setCompanyProofPaused] = useState(false);
const [companyProofInView, setCompanyProofInView] = useState(false);
const [companyProofCopies, setCompanyProofCopies] = useState(2);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚨 slopcop/review — Keep the static marquee full on wide screens

At 3440px with scripts disabled, two 1310px lists fill only 2621px. The last 819px stays empty.

Start with enough copies for supported wide screens, or add a static no-JavaScript layout. Test the server output at 3440px.

@bb-slop-cop bb-slop-cop Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚨 SLOP COP 🚨 · review

ELI5: The logo train works after the page wakes up. Before that, a very wide screen shows empty track.

I found one blocking issue:

  • companyProofCopies starts at two. Browser JavaScript raises the count only after hydration.
  • At 3440px without scripts, the lists cover 2621px. The last 819px stays empty.
  • Render enough initial copies, or provide a static no-JavaScript layout.
  • Add a server-output test for a 3440px view.

The other review areas passed:

  • The security review found no unsafe SVG content, remote references, or untrusted data paths.
  • The hydrated layout covered 3440px and 390px views without page errors.
  • Pause, resume, offscreen pause, and reduced-motion behavior worked.
  • The web type check, build, and all 68 web tests passed.
  • All current GitHub checks passed.
  • The codebase has no duplicate marquee implementation.
  • A separate CompanyProof component could reduce page renders, but this refactor is optional.

I posted this as a normal comment. I did not approve the pull request or request changes.

The static HTML held two copies, so screens wider than one copy
showed an empty track until JavaScript measured the viewport.
Five copies cover a 5K display; the measurement trims the count
after hydration.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

Fixed in 3260740: the page now server-renders five logo copies, enough to cover a 5K display before hydration or without JavaScript. The ResizeObserver measurement trims the count after hydration (verified: 3 copies at 1920px, full coverage across the animation cycle).

@SawyerHood
SawyerHood merged commit c420506 into main Aug 13, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/restore-company-social-proof branch August 13, 2026 05:04
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