Skip to content

Commit 8e1920f

Browse files
committed
Landing page: screenshots and images alongside PDFs, a clean invoice diff example, and layout fixes
- Hero says browser and mobile screenshots work too; 'Send PDFs, not screenshots' becomes 'Whatever your tests produce', and the fingerprint and CTA copy covers images as well as PDFs. - The example under 'Diffs that understand pages' is an invoice diff (missing QR code, bigger title) in red, replacing the business-cat demo. - Split sections: columns can shrink (a long command was widening one into the other), headings a step smaller, the claude mcp add command in its own full-width row, on one line, with a visible selection colour.
1 parent 915b3b1 commit 8e1920f

4 files changed

Lines changed: 54 additions & 18 deletions

File tree

-104 KB
Loading
-104 KB
Loading

‎server/frontend/src/pages/Landing.tsx‎

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function Landing() {
7979
<h1>Visual regression tests for PDFs</h1>
8080
<p className="lp-lede">
8181
Upload the PDFs your tests produce. VisualCI renders every page in one place and shows what changed, page
82-
by page.
82+
by page. Browser and mobile screenshots work too.
8383
</p>
8484
<SignIn />
8585
</div>
@@ -89,21 +89,21 @@ export function Landing() {
8989
<section className="lp-section">
9090
<div className="lp-wrap lp-split">
9191
<div className="lp-stack">
92-
<h2>Send PDFs, not screenshots</h2>
92+
<h2>Whatever your tests produce</h2>
9393
<p>
94-
A Mac and a Linux CI machine rasterize the same PDF differently, so teams keep two sets of baselines
95-
and still get noise. VisualCI takes the PDF itself and renders it on the server with a pinned renderer
96-
and fonts.
94+
Send PDFs, browser screenshots, mobile app screenshots or plain images. The CLI fingerprints each file
95+
first, so anything VisualCI has already seen is never uploaded again.
9796
</p>
9897
<p>
99-
A run from your laptop and a run in CI get the same pixels and compare against the same baseline.
100-
Invoices, statements, reports, contracts and labels all work the same way.
98+
PDFs get one extra step. A Mac and a Linux CI machine rasterize the same PDF differently, so VisualCI
99+
renders PDFs itself, with one pinned renderer and its fonts. A run on your laptop and a run in CI get the
100+
same pixels and the same baseline.
101101
</p>
102102
</div>
103103
<dl className="lp-specs">
104104
<div>
105105
<dt>Input</dt>
106-
<dd>PDF files, PNG screenshots and plain text</dd>
106+
<dd>PDFs, PNG, JPEG and WebP screenshots and images, plain text</dd>
107107
</div>
108108
<div>
109109
<dt>Renderers</dt>
@@ -136,10 +136,10 @@ export function Landing() {
136136
</div>
137137
<figure className="lp-shot">
138138
<div className="lp-shot-img">
139-
<img className="lp-shot-light" src={reviewLight} alt="The review screen: base and head pages side by side, with a text diff below" loading="lazy" />
140-
<img className="lp-shot-dark" src={reviewDark} alt="The review screen in dark mode" loading="lazy" />
139+
<img className="lp-shot-light" src={reviewLight} alt="The diff of a changed invoice: the missing QR code and the resized title in red" loading="lazy" />
140+
<img className="lp-shot-dark" src={reviewDark} alt="The diff of a changed invoice, in dark mode" loading="lazy" />
141141
</div>
142-
<figcaption>Reviewing a changed document: base and head lined up page by page, with the text that changed.</figcaption>
142+
<figcaption>A new build of an invoice: the payment QR code is missing and the title got bigger. Changed pixels show in red.</figcaption>
143143
</figure>
144144
<div className="lp-features">
145145
<div className="lp-feature">
@@ -180,11 +180,11 @@ export function Landing() {
180180
<section className="lp-section lp-band">
181181
<div className="lp-wrap">
182182
<div className="lp-stack">
183-
<h2>Unchanged documents cost nothing</h2>
183+
<h2>Unchanged files cost nothing</h2>
184184
<p>
185-
The CLI fingerprints each PDF before uploading it. The fingerprint ignores creation dates, document IDs
186-
and producer strings, so a regenerated PDF that draws the same thing still matches. If VisualCI has
187-
seen it, nothing is uploaded, rendered or diffed.
185+
The CLI fingerprints every file before uploading it: images by their pixels, PDFs by what they draw. A
186+
PDF's fingerprint ignores creation dates, document IDs and producer strings, so a regenerated PDF that
187+
draws the same thing still matches. If VisualCI has seen it, nothing is uploaded, rendered or diffed.
188188
</p>
189189
</div>
190190
<div className="lp-figures">
@@ -249,8 +249,6 @@ export function Landing() {
249249
look at the base, head and diff images for each changed page, read the text diff, and fix the code,
250250
all from the same session. You review what it couldn’t fix.
251251
</p>
252-
<pre className="lp-quote mono">claude mcp add --transport http visualci https://visualci.com/mcp \
253-
--header "Authorization: Bearer $VISUALCI_TOKEN"</pre>
254252
</div>
255253
<div className="lp-stack">
256254
<h2>Pay when something changed</h2>
@@ -260,6 +258,9 @@ export function Landing() {
260258
</p>
261259
<p>Buy credit packs from your organization’s billing page.</p>
262260
</div>
261+
<pre className="lp-quote lp-code lp-split-row mono">
262+
{'claude mcp add --transport http visualci https://visualci.com/mcp --header "Authorization: Bearer $VISUALCI_TOKEN"'}
263+
</pre>
263264
</div>
264265
</section>
265266

@@ -274,7 +275,7 @@ export function Landing() {
274275
</p>
275276
</div>
276277
<div className="lp-stack">
277-
<h3>Start with your own PDFs</h3>
278+
<h3>Start with your own tests</h3>
278279
<SignIn />
279280
</div>
280281
</div>

‎server/frontend/src/styles.css‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,8 +2522,43 @@ a.stat-cell:hover {
25222522

25232523
.lp-stack {
25242524
display: grid;
2525+
grid-template-columns: minmax(0, 1fr);
25252526
gap: var(--space-5);
25262527
align-content: start;
2528+
min-width: 0;
2529+
}
2530+
2531+
/* Two sections side by side: headings a step smaller than full-width ones, and not capped, so they fit a column. */
2532+
.lp-split h2 {
2533+
font-size: 2rem;
2534+
max-width: none;
2535+
}
2536+
2537+
/* A row under both columns of a split section. */
2538+
.lp-split-row {
2539+
grid-column: 1 / -1;
2540+
}
2541+
2542+
/* A command in running copy: one line on desktop (scrolling within its box if the window is narrow), wrapped on
2543+
phones. Two classes, so .lp-quote (defined later) doesn't win on font size. */
2544+
.lp-quote.lp-code {
2545+
font-size: 0.95rem;
2546+
white-space: pre;
2547+
overflow-x: auto;
2548+
}
2549+
2550+
@media (max-width: 720px) {
2551+
.lp-quote.lp-code {
2552+
white-space: pre-wrap;
2553+
overflow-wrap: anywhere;
2554+
}
2555+
}
2556+
2557+
/* The panel's background is the page's selection colour, so selected text there needs the solid accent. */
2558+
.lp-code::selection,
2559+
.lp-code ::selection {
2560+
background: var(--color-accent);
2561+
color: var(--color-paper);
25272562
}
25282563

25292564
.lp-specs {

0 commit comments

Comments
 (0)