Repository navigation
feat(site): add before/after code comparison to the homepage - #19
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
WebDriverWait+ExpectedConditions.elementToBeClickable+findElement().click()+ a second explicit wait for text.$("#login").click(); // auto-waitsandassertThat($("h1")).hasText("Welcome");.Both windows share the filename
LoginTest.javato 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
CodeWindowcomponent and design tokens (section tag/title/subtitle, reveal animation)..codeWindowhas no light override).1fr auto 1frgrid collapses to a single column at ≤768px; arrow reflows and rotates.Acceptance criteria
npm run buildpassesVerification
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