Skip to content

Commit c843a91

Browse files
vanrensbirdclaude
andcommitted
site: homepage quality pass, a terminal comparison, isometric step drawings, live GitHub stars
Fixes: - The hero console showed `npx prisma deploy module.ts`, which fails with CLI.INVALID_ARGUMENTS since composer#387; it now shows `npx prisma deploy`. - Prisma Studio's "Learn more" pointed at /postgres; it now goes to /studio. - The `--json` chip broke across two lines on phones. - The HIPAA link in the pricing bullets was indistinguishable from the bold text around it; it is now underlined like the free tier link. - The pricing scenario tabs had no tab panels: they now follow the WAI-ARIA tabs pattern (panels, aria-controls, roving tabindex, arrow/Home/End keys, the off-screen slide inert). - "SOC2" is "SOC 2", and the homepage's Markdown rendition has no em dashes. Redesigns: - The comparison section is one console: the commands an agent runs to put a feature branch online on Neon + Vercel beside the one `prisma deploy` it runs on Prisma, with real CLI commands and the deploy tree the docs show. - "Ship in three steps" is a compact row of isometric wireframe drawings, drawn from code (how-it-works-drawings.tsx) with one scale across the steps. - Logos: one still line of eight in one ink shade, sized from measured ink coverage; no label, no marquee. - The hero's GitHub stars show the live count (revalidated hourly, with a rounded floor as the fallback) next to the GitHub mark. Geist Mono is registered in the layout as --font-terminal (not preloaded) for the transcripts and the drawings' lettering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2f8f184 commit c843a91

17 files changed

Lines changed: 997 additions & 608 deletions

‎apps/site/src/app/layout.tsx‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UnifiedSearchProvider } from "@prisma-docs/ui/components/unified-search
33
import type { Metadata, Viewport } from "next";
44
import Script from "next/script";
55
import type React from "react";
6-
import { Inter, Sora } from "next/font/google";
6+
import { Geist_Mono, Inter, Sora } from "next/font/google";
77
import { Header } from "@/components/header";
88
import { Footer } from "@/components/footer";
99
import { ThemeProvider } from "@/components/theme-provider";
@@ -39,6 +39,16 @@ const inter = Inter({
3939
variable: "--font-inter",
4040
});
4141

42+
// A true monospace for terminal transcripts (the homepage comparison), where
43+
// columns have to line up; --font-mono stays Inter for inline code chips.
44+
// Not preloaded: only pages that render it fetch it.
45+
const geistMono = Geist_Mono({
46+
subsets: ["latin"],
47+
weight: ["400", "500"],
48+
variable: "--font-terminal",
49+
preload: false,
50+
});
51+
4252
export const viewport: Viewport = {
4353
width: "device-width",
4454
initialScale: 1,
@@ -85,7 +95,7 @@ export default function RootLayout({
8595
lang="en"
8696
suppressHydrationWarning
8797
data-scroll-behavior="smooth"
88-
className={`${sora.variable} ${inter.variable}`}
98+
className={`${sora.variable} ${inter.variable} ${geistMono.variable}`}
8999
>
90100
<head>
91101
<Script

‎apps/site/src/components/sections/comparison-cards.tsx‎

Lines changed: 0 additions & 232 deletions
This file was deleted.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// Copy and transcripts for the homepage comparison (comparison.tsx), shared
2+
// with its Markdown rendition (lib/markdown/home.ts) so the two can't drift.
3+
//
4+
// Both transcripts deploy the same preview of `feature/checkout`. The vendor
5+
// side is the CLI path an agent takes without Neon's Vercel integration:
6+
// neonctl creates the branch and prints its connection string, then
7+
// `vercel env add <name> <environment> <git-branch>` stores it for that
8+
// branch's previews before `vercel deploy`. The Prisma side is
9+
// `prisma deploy --environment` (docs: cli/deploy) and the resource tree it
10+
// prints (docs: compute/deploy-on-push); the ids and URL are illustrative.
11+
12+
/** A command. Where the column is narrow it wraps after `head` with a
13+
shell line continuation, so no line scrolls sideways. */
14+
export type CommandLine = { kind: "command"; head: string; tail?: string };
15+
/** Output, dimmed. `tree` marks the resource tree's branch glyph. */
16+
export type OutputLine = { kind: "output"; text: string; tree?: string; accent?: boolean };
17+
export type TerminalLine = CommandLine | OutputLine;
18+
19+
export type Transcript = {
20+
name: string;
21+
/** Counted from `lines`, shown beside the name. */
22+
meta: string;
23+
lines: TerminalLine[];
24+
caption: string;
25+
};
26+
27+
export const COMPARISON_HEADING = "Two vendors to wire, or one command to run";
28+
29+
export const COMPARISON_INTRO =
30+
"Your agent can ship a preview of a feature branch either way. Only one of them has it " +
31+
"carry a secret from one vendor to the other.";
32+
33+
export const VENDOR_TRANSCRIPT: Transcript = {
34+
name: "Neon + Vercel",
35+
meta: "2 CLIs · 4 commands",
36+
lines: [
37+
{ kind: "command", head: "neonctl branches create", tail: "--name feature/checkout" },
38+
{ kind: "command", head: "neonctl connection-string", tail: "feature/checkout" },
39+
{ kind: "output", text: "postgresql://neondb_owner:••••@ep-…aws.neon.tech/neondb" },
40+
{ kind: "command", head: "vercel env add DATABASE_URL", tail: "preview feature/checkout" },
41+
{ kind: "output", text: "? What’s the value of DATABASE_URL? ••••••••" },
42+
{ kind: "command", head: "vercel deploy" },
43+
],
44+
caption:
45+
"Two accounts, two consoles, and a connection string your agent copies from one into the other.",
46+
};
47+
48+
export const PRISMA_TRANSCRIPT: Transcript = {
49+
name: "Prisma",
50+
meta: "1 command",
51+
lines: [
52+
{ kind: "command", head: "npx prisma deploy", tail: "--environment feature/checkout" },
53+
{ kind: "output", text: "storefront" },
54+
{ kind: "output", tree: "├─", text: "db postgres-database db_7q2k9x" },
55+
{ kind: "output", tree: "└─", text: "web compute-service cps_4m8d1z" },
56+
// indented to sit under the resource kinds above
57+
{ kind: "output", tree: " ", text: " https://k2x9qf.ewr.prisma.build", accent: true },
58+
],
59+
caption:
60+
"One project. The database and the app deploy together, already connected, in the same region.",
61+
};
62+
63+
export const COMPARISON_POINTS = [
64+
{
65+
lead: "One platform, one region.",
66+
rest: "Hosting, database, and ORM built to work together.",
67+
},
68+
{
69+
lead: "A preview database per branch,",
70+
rest: "wired to its preview deployment.",
71+
},
72+
{
73+
lead: "Spend limits on every paid tier,",
74+
rest: "so your bill stops where you tell it to.",
75+
},
76+
] as const;
77+
78+
/** The transcript as a shell session, for the Markdown rendition. */
79+
export function transcriptText(transcript: Transcript): string {
80+
return transcript.lines
81+
.map((line) =>
82+
line.kind === "command"
83+
? `$ ${line.head}${line.tail ? ` ${line.tail}` : ""}`
84+
: `${line.tree ? `${line.tree} ` : ""}${line.text}`.trimEnd(),
85+
)
86+
.join("\n");
87+
}

0 commit comments

Comments
 (0)