Skip to content

feat(site): add before/after code comparison to the homepage - #19

Merged
shossain786 merged 1 commit into
masterfrom
docs/homepage-before-after
Jul 14, 2026
Merged

shossain786 merged 1 commit into
masterfrom
docs/homepage-before-after

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

Closes #13

What

Adds a Before / After section to the landing page (between the stats strip and the features bento), visually showing the plumbing disappearing:

  • Plain Selenium — WebDriverWait + ExpectedConditions.elementToBeClickable + findElement().click() + a second explicit wait for text.
  • Selenium Boot — $("#login").click(); // auto-waits and assertThat($("h1")).hasText("Welcome");.

Both windows share the filename LoginTest.java to make it read as the same test. A center arrow labelled "Selenium Boot" points right on desktop and rotates to point down when the layout stacks on mobile.

Design

  • Reinforces the North Star ("focus on testing, not framework engineering") in the section subtitle.
  • Reuses the existing CodeWindow component and design tokens (section tag/title/subtitle, reveal animation).
  • Theme-aware: before/after labels use theme-independent red/green; code windows use a solid dark surface so they stay legible in light mode (the base .codeWindow has no light override).
  • Responsive: 1fr auto 1fr grid collapses to a single column at ≤768px; arrow reflows and rotates.

Acceptance criteria

  • Before/after renders on the homepage, readable on mobile
  • Works in light and dark mode
  • npm run build passes

Verification

Verified via production build (passes, no broken links) and by confirming the section + copy + classes render into build/index.html. Light/dark/mobile behaviour is CSS-driven; worth an eyeball on the deploy preview.

🤖 Generated with Claude Code

Closes #13

New "Before / After" section between the stats strip and features: plain
Selenium (WebDriverWait + ExpectedConditions + findElement) vs Selenium
Boot ($("#login").click() // auto-waits + assertThat(...).hasText(...)),
same LoginTest.java filename to drive the contrast home. Center arrow
labelled "Selenium Boot" that rotates to point down when the layout
stacks on mobile.

Reinforces the North Star ("focus on testing, not framework engineering")
in the section subtitle. Theme-aware (labels read in both themes; code
windows use a solid dark surface so they stay legible in light mode) and
responsive (3-col grid collapses to a single column at <=768px). Reuses
the existing CodeWindow component and design tokens. Build passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shossain786
shossain786 merged commit 3dfd3e4 into master Jul 14, 2026
2 checks passed
@shossain786
shossain786 deleted the docs/homepage-before-after branch July 14, 2026 06:56
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.

Homepage: add a before/after code comparison (Selenium vs Selenium Boot)

1 participant