Skip to content

Commit d9b7622

Browse files
committed
Site footer: logo and a line, Product, Docs and Company columns, and the copyright row
One SiteFooter for the landing page and every docs page, in the shape of talira.ai's and docspring.com's footers: four columns on desktop, the brand above two columns on phones, one column under 380px, and no link label wraps.
1 parent 10e3590 commit d9b7622

4 files changed

Lines changed: 113 additions & 41 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { Logo } from './Logo'
2+
import { siteUrl } from '../lib/hosts'
3+
4+
/** The site's footer, on the landing page and every docs page: the logo and a line, link columns, and the copyright. */
5+
export function SiteFooter() {
6+
const columns: { title: string; links: { label: string; href: string }[] }[] = [
7+
{
8+
title: 'Product',
9+
links: [
10+
{ label: 'Agents', href: siteUrl('/#agents') },
11+
{ label: 'Snapshot tests', href: siteUrl('/#snapshots') },
12+
{ label: 'Page diffs', href: siteUrl('/#pages') },
13+
{ label: 'Pricing', href: siteUrl('/#pricing') },
14+
],
15+
},
16+
{
17+
title: 'Docs',
18+
links: [
19+
{ label: 'Quick start', href: siteUrl('/docs/quick-start/') },
20+
{ label: 'CI providers', href: siteUrl('/docs/ci/other/') },
21+
{ label: 'Snapshot tests', href: siteUrl('/docs/snapshots/jest/') },
22+
{ label: 'Self-hosting', href: siteUrl('/docs/self-hosting/') },
23+
{ label: 'llms.txt', href: siteUrl('/llms.txt') },
24+
],
25+
},
26+
{
27+
title: 'Company',
28+
links: [
29+
{ label: 'GitHub', href: 'https://github.com/DocSpring/visualci' },
30+
{ label: 'Support', href: 'mailto:support@visualci.com' },
31+
{ label: 'Privacy', href: siteUrl('/privacy/') },
32+
{ label: 'Terms', href: siteUrl('/terms/') },
33+
],
34+
},
35+
]
36+
return (
37+
<footer className="lp-footer">
38+
<div className="lp-wrap">
39+
<div className="site-footer">
40+
<div className="site-footer-brand">
41+
<Logo plain />
42+
<p>Visual and snapshot testing for AI agents.</p>
43+
</div>
44+
{columns.map((c) => (
45+
<nav key={c.title} className="site-footer-col" aria-label={c.title}>
46+
<p className="site-footer-title">{c.title}</p>
47+
<ul>
48+
{c.links.map((l) => (
49+
<li key={l.label}>
50+
<a href={l.href}>{l.label}</a>
51+
</li>
52+
))}
53+
</ul>
54+
</nav>
55+
))}
56+
</div>
57+
<p className="site-footer-legal">© 2026 DocSpring, Inc.</p>
58+
</div>
59+
</footer>
60+
)
61+
}

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ThemeToggle } from '../components/AppShell'
44
import { Logo } from '../components/Logo'
55
import { docsMarkdownPath, docsPath } from '../docs/nav'
66
import { SignInButton } from './Landing'
7+
import { SiteFooter } from '../components/SiteFooter'
78

89
export type DocsNavSection = { title: string; pages: { slug: string; title: string }[] }
910

@@ -113,19 +114,7 @@ export function DocsPage({ page }: { page: DocsPageData }) {
113114
</article>
114115
</main>
115116
</div>
116-
<footer className="lp-footer">
117-
<div className="lp-wrap lp-footer-inner">
118-
<Logo plain />
119-
<span>Visual and snapshot testing for AI agents.</span>
120-
<nav aria-label="Footer">
121-
<a href="/docs/">Docs</a>
122-
<a href="/llms.txt">llms.txt</a>
123-
<a href="/#pricing">Pricing</a>
124-
<a href="/privacy/">Privacy</a>
125-
<a href="/terms/">Terms</a>
126-
</nav>
127-
</div>
128-
</footer>
117+
<SiteFooter />
129118
</div>
130119
)
131120
}

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { SignIn } from '../components/SignIn'
77
import reviewLight from '../assets/review-light.png'
88
import reviewDark from '../assets/review-dark.png'
99
import { appUrl, siteUrl } from '../lib/hosts'
10+
import { SiteFooter } from '../components/SiteFooter'
1011

1112
function Terminal() {
1213
return (
@@ -369,22 +370,7 @@ export function Landing() {
369370
</section>
370371
</main>
371372

372-
<footer className="lp-footer">
373-
<div className="lp-wrap lp-footer-inner">
374-
<Logo plain />
375-
<span>Visual regression and snapshot testing for documents, browsers, apps and data.</span>
376-
<nav aria-label="Footer">
377-
<a href={siteUrl('/docs/')}>Docs</a>
378-
<a href="#agents">Agents</a>
379-
<a href="#snapshots">Snapshot tests</a>
380-
<a href="#pages">Page diffs</a>
381-
<a href="#pricing">Pricing</a>
382-
<a href="/docs/self-hosting/">Self-hosting</a>
383-
<a href="/privacy/">Privacy</a>
384-
<a href="/terms/">Terms</a>
385-
</nav>
386-
</div>
387-
</footer>
373+
<SiteFooter />
388374
</div>
389375
)
390376
}

‎server/frontend/src/styles.css‎

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,22 +3345,47 @@ a.stat-cell:hover {
33453345
padding: var(--space-6) 0 var(--space-8);
33463346
}
33473347

3348-
.lp-footer-inner {
3349-
display: flex;
3350-
align-items: center;
3351-
gap: var(--space-4);
3352-
flex-wrap: wrap;
3348+
.site-footer {
3349+
display: grid;
3350+
grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
3351+
gap: var(--space-8);
33533352
font-size: var(--text-sm);
3353+
}
3354+
3355+
.site-footer-brand p {
3356+
margin: var(--space-3) 0 0;
3357+
max-width: 32ch;
33543358
color: var(--color-muted);
33553359
}
33563360

3357-
.lp-footer-inner nav {
3358-
margin-left: auto;
3359-
display: flex;
3360-
gap: var(--space-4);
3361+
.site-footer-title {
3362+
margin: 0 0 var(--space-3);
3363+
font-weight: 600;
3364+
color: var(--color-ink);
33613365
}
33623366

3363-
.lp-footer-inner nav a {
3367+
.site-footer-col ul {
3368+
margin: 0;
3369+
padding: 0;
3370+
list-style: none;
3371+
display: grid;
3372+
gap: var(--space-2);
3373+
}
3374+
3375+
.site-footer-col a {
3376+
color: var(--color-muted);
3377+
white-space: nowrap;
3378+
}
3379+
3380+
.site-footer-col a:hover {
3381+
color: var(--color-ink);
3382+
}
3383+
3384+
.site-footer-legal {
3385+
margin: var(--space-8) 0 0;
3386+
padding-top: var(--space-4);
3387+
border-top: 1px solid var(--color-rule);
3388+
font-size: var(--text-xs);
33643389
color: var(--color-muted);
33653390
}
33663391

@@ -3464,8 +3489,12 @@ a.stat-cell:hover {
34643489
gap: var(--space-1);
34653490
}
34663491

3467-
.lp-footer-inner nav {
3468-
margin-left: 0;
3492+
.site-footer {
3493+
grid-template-columns: repeat(2, minmax(0, 1fr));
3494+
}
3495+
3496+
.site-footer-brand {
3497+
grid-column: 1 / -1;
34693498
}
34703499

34713500
.frames {
@@ -3842,3 +3871,10 @@ a.stat-cell:hover {
38423871
align-items: baseline;
38433872
font-size: var(--text-base);
38443873
}
3874+
3875+
/* The footer's link columns: two on phones, one on the narrowest. */
3876+
@media (max-width: 380px) {
3877+
.site-footer {
3878+
grid-template-columns: minmax(0, 1fr);
3879+
}
3880+
}

0 commit comments

Comments
 (0)