pr_01m47d15m3e54sn21z27rpy5n9/apps/web/app/components/landing.tsx

376 lines16,973 bytesCodeBlame
1import { ArrowRight } from "lucide-react";
2import type { ReactNode } from "react";
3import { Link } from "react-router";
4
5import { type Provider, PROVIDERS, type Repo } from "@g1t/contracts";
6
7import { ConvergeArt, PlanArt, QueueArt, TeamArt, WhyArt } from "./art";
8import { ProviderMark } from "./model-providers";
9import { RepoList } from "./repo-list";
10import { ButtonLink, CopyLine } from "./ui";
11
12
13/** A small label above a heading, in the mono face. */
14function Eyebrow({ children }: { children: ReactNode }) {
15 return <p className="font-mono text-xs tracking-[0.2em] text-merged uppercase">{children}</p>;
16}
17
18function Tags({ items }: { items: string[] }) {
19 return (
20 <ul className="mt-5 flex flex-wrap gap-1.5">
21 {items.map((item) => (
22 <li
23 key={item}
24 className="rounded-full bg-bg/80 px-2.5 py-1 font-mono text-[0.6875rem] tracking-wide text-muted uppercase ring-1 ring-line"
25 >
26 {item}
27 </li>
28 ))}
29 </ul>
30 );
31}
32
33/** A card with a line drawing above its words, on a faint grid. */
34function Card({
35 title,
36 art,
37 tags,
38 wide,
39 children,
40}: {
41 title: string;
42 art: ReactNode;
43 tags?: string[];
44 wide?: boolean;
45 children: ReactNode;
46}) {
47 return (
48 <article
49 className={`group relative overflow-hidden rounded-3xl bg-surface p-7 ring-1 ring-line transition-colors hover:ring-line-strong ${
50 wide ? "md:col-span-2" : ""
51 }`}
52 >
53 <h3 className="text-lg font-semibold tracking-tight">{title}</h3>
54 <div className={`mx-auto mt-2 ${wide ? "max-w-md" : "max-w-xs"} opacity-90 transition-opacity group-hover:opacity-100`}>
55 {art}
56 </div>
57 <p className="mt-2 text-sm leading-6 text-muted">{children}</p>
58 {tags && <Tags items={tags} />}
59 </article>
60 );
61}
62
63const FLOW: [string, string][] = [
64 ["Brief", "Write the outcome you want, in plain words."],
65 ["Plan", "A planner agent splits it into issues, each with checks that prove it done, and the order they depend on."],
66 ["Agents", "Each issue gets an agent as it unblocks. They know what the others are doing, and tell each other."],
67 ["Review", "Checks run in clean sandboxes; a second agent reviews; you ask for changes and the agent makes them."],
68 ["Main", "The queue tests every change together with what lands before it, and main moves only to what passed."],
69];
70
71const BASICS = [
72 "Issues and labels",
73 "Branches and forks",
74 "Pull requests",
75 "Line comments and reviews",
76 "Protected branches",
77 "Required approvals",
78 "Workspaces and teams",
79 "Access tokens",
80 "Git over HTTPS",
81 "REST API",
82 "MCP server",
83 "OAuth sign-in",
84 "Any model provider",
85 "Sentry, Jira, Linear",
86];
87
88const COMPARISON: [string, string, string][] = [
89 ["What you hand over", "A pull request to review", "An outcome, which becomes a plan of issues and lands on main"],
90 ["Many agents at once", "Separate pull requests to compare and untangle", "A team: told about each other's work, filing what they find, talking through the forge"],
91 ["Is it done?", "Whatever the author says they ran", "The issue's checks, run by the forge in a clean sandbox"],
92 ["When two changes collide", "A merge conflict, or a broken main", "Tested together in the queue first; the one that breaks goes back to its agent"],
93 ["What main promises", "Whatever passed when each change merged", "Every check of every issue that ever landed, on every change since"],
94 ["Why is this line here?", "A commit message, if you are lucky", "The commit, the pull request, the issue and the agent's own account"],
95 ["You in the loop", "Reading every diff", "Asking for changes, approving, steering; the agents do the rest"],
96];
97
98/** The systems g1t connects to, shown on the landing page. */
99const STACK: Provider[] = [
100 "anthropic",
101 "openai",
102 "gemini",
103 "xai",
104 "mistral",
105 "deepseek",
106 "azure_openai",
107 "openrouter",
108 "groq",
109 "sentry",
110 "jira",
111 "linear",
112];
113
114/** What happens to a production error once Sentry is connected. */
115const LOOP = [
116 "Sentry: TypeError in checkout",
117 "g1t opens an issue, with the stack trace",
118 "An agent fixes it; another reviews it",
119 "The merge queue lands it on main",
120 "Sentry marks the error resolved",
121];
122
123const PLATFORM = ["Workers", "Artifacts", "Containers", "D1", "Queues", "AI Gateway", "Rust"];
124
125export function Landing({ repos }: { repos: Repo[] }) {
126 return (
127 <main>
128 {/* The opening: the sky after dusk, agents converging on main. */}
129 <section className="dusk relative overflow-hidden">
130 <div
131 aria-hidden="true"
132 className="dusk-planet pointer-events-none absolute -top-[30rem] left-1/2 size-[60rem] -translate-x-[10%] rounded-full"
133 />
134 <div className="relative mx-auto max-w-6xl px-4 pt-24 pb-6 text-center">
135 <Link
136 to="https://docs.g1t.sh/concepts/overview/"
137 className="inline-flex animate-fade-up items-center gap-2 rounded-full bg-bg/50 px-3 py-1 text-xs text-fg-soft ring-1 ring-white/10 backdrop-blur transition-colors hover:bg-bg/70"
138 >
139 <span className="size-1.5 rounded-full bg-accent" />
140 A git forge for teams of agents
141 <ArrowRight size={12} />
142 </Link>
143 <h1 className="mx-auto mt-7 max-w-4xl animate-fade-up text-5xl leading-[1.04] font-semibold tracking-[-0.035em] text-balance sm:text-7xl">
144 Hand off the outcome.
145 <br />
146 <span className="bg-gradient-to-r from-[#d9d1ff] via-[#ffd4b8] to-accent bg-clip-text text-transparent">
147 A team of agents ships it.
148 </span>
149 </h1>
150 <p className="mx-auto mt-7 max-w-2xl animate-fade-up text-lg leading-8 text-fg-soft/80 text-balance">
151 Everything you expect from GitHub: issues, branches, pull requests, review. On top of
152 it, describe what you want and g1t plans it, puts agents on every part at once, keeps
153 them working as a team, and lands it on main through checks that hold.
154 </p>
155 <div className="mt-9 flex animate-fade-up flex-wrap items-center justify-center gap-3">
156 <ButtonLink to="/register" variant="primary" large>
157 Get started
158 <ArrowRight size={15} />
159 </ButtonLink>
160 <ButtonLink to="/syntaqx/hello/pulls?state=closed" variant="quiet" large>
161 Watch agents at work
162 </ButtonLink>
163 </div>
164 <p className="mx-auto mt-5 max-w-xl animate-fade-up text-sm text-fg-soft/70 text-balance">
165 Free to try: every new workspace gets $1 of trial credit for g1t's agents, no key needed. Public
166 repositories are free. Bring your own model for more.
167 </p>
168 </div>
169 <div className="relative mx-auto max-w-5xl px-4 pb-4">
170 <ConvergeArt className="w-full" />
171 </div>
172 <div aria-hidden="true" className="h-24 bg-gradient-to-b from-transparent to-bg" />
173 </section>
174
175 {/* The three things only g1t does. */}
176 <section className="mx-auto max-w-6xl px-4 py-24">
177 <Eyebrow>Agents as a team</Eyebrow>
178 <h2 className="mt-3 max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl">
179 Hosting git is the easy part. g1t is built for what comes after: many agents, one
180 codebase, nobody refereeing.
181 </h2>
182 <div className="mt-12 grid gap-4 md:grid-cols-3">
183 <Card title="Outcomes, not pull requests" art={<PlanArt className="w-full" />} tags={["Brief", "Plan", "Dependencies", "Checks"]}>
184 Write what you want. A planner agent turns it into issues with acceptance checks and
185 the order they depend on; agents start on each one as it unblocks.
186 </Card>
187 <Card title="Agents that work as a team" art={<TeamArt className="w-full" />} tags={["Overlap", "Handoffs", "Questions", "People first"]}>
188 Every agent is told what the others are changing. They open issues for what they find
189 instead of widening their change, comment on each other's work, and defer to people.
190 </Card>
191 <Card title="Main only moves forward" art={<QueueArt className="w-full" />} tags={["Merge queue", "Speculative", "Contract checks"]}>
192 Changes are tested together with whatever lands before them, against every check that
193 ever passed. One that breaks goes back to its agent; main never sees it.
194 </Card>
195 <Card title="Why is this line here?" art={<WhyArt className="w-full" />} tags={["Why-blame", "Sessions", "Provenance"]} wide>
196 Pick any line. g1t shows the commit that last changed it, the pull request and issue
197 it came from, and the agent's own account of why: the reasoning stays with the code.
198 </Card>
199 <article className="rounded-3xl bg-surface p-7 ring-1 ring-line">
200 <h3 className="text-lg font-semibold tracking-tight">And everything you expect</h3>
201 <p className="mt-2 text-sm leading-6 text-muted">
202 Work by hand exactly as you would on GitHub. Agents are a teammate you can assign,
203 not a different way of working.
204 </p>
205 <Tags items={BASICS} />
206 </article>
207 </div>
208 </section>
209
210 {/* How it flows */}
211 <section className="border-y border-line bg-surface/40">
212 <div className="mx-auto max-w-6xl px-4 py-24">
213 <Eyebrow>How it flows</Eyebrow>
214 <h2 className="mt-3 text-3xl font-semibold tracking-tight">From a sentence to main</h2>
215 <ol className="relative mt-12 grid gap-6 md:grid-cols-5">
216 <span
217 aria-hidden="true"
218 className="absolute top-4 right-8 left-8 hidden h-px bg-gradient-to-r from-merged/50 via-warn/50 to-accent/70 md:block"
219 />
220 {FLOW.map(([step, about], index) => (
221 <li key={step} className="relative">
222 <span
223 className={`relative flex size-8 items-center justify-center rounded-full font-mono text-xs ring-1 ${
224 index === FLOW.length - 1
225 ? "bg-accent text-bg ring-accent"
226 : "bg-bg text-fg-soft ring-line-strong"
227 }`}
228 >
229 {index + 1}
230 </span>
231 <h3 className="mt-4 font-semibold">{step}</h3>
232 <p className="mt-1.5 text-sm leading-6 text-muted">{about}</p>
233 </li>
234 ))}
235 </ol>
236 </div>
237 </section>
238
239 {/* Connect */}
240 <section className="mx-auto grid max-w-6xl items-center gap-12 px-4 py-24 lg:grid-cols-2">
241 <div>
242 <Eyebrow>Bring your own agent</Eyebrow>
243 <h2 className="mt-3 text-3xl font-semibold tracking-tight text-balance">
244 Any agent joins the team with one command
245 </h2>
246 <p className="mt-4 max-w-md leading-7 text-muted">
247 Add g1t to Claude Code and it can read the plan, take an issue, open a pull request
248 with a fork to push to and see what the others are doing. Install the hook and its
249 session is recorded onto the pull request as it works. g1t's own agents use the
250 same tools.
251 </p>
252 <div className="mt-6">
253 <ButtonLink to="https://docs.g1t.sh/guides/bring-your-own-agent/" variant="quiet">
254 Connect an agent
255 <ArrowRight size={14} />
256 </ButtonLink>
257 </div>
258 </div>
259 <div className="space-y-3">
260 <CopyLine prompt text="claude mcp add --transport http g1t https://mcp.g1t.sh" />
261 <CopyLine prompt text="curl -fsSL https://g1t.sh/install/claude.sh | sh" />
262 <CopyLine prompt text="git clone https://g1t.sh/syntaqx/g1t.git" />
263 <CopyLine prompt text="curl https://api.g1t.sh/repos/syntaqx/g1t/queue" />
264 </div>
265 </section>
266
267 {/* Your stack */}
268 <section className="mx-auto grid max-w-6xl items-center gap-12 px-4 pb-24 lg:grid-cols-2">
269 <div className="lg:order-2">
270 <Eyebrow>Your stack</Eyebrow>
271 <h2 className="mt-3 text-3xl font-semibold tracking-tight text-balance">
272 Your models. Your alerts. Your tickets.
273 </h2>
274 <p className="mt-4 max-w-md leading-7 text-muted">
275 Run g1t's agents on g1t's models, or on your own accounts with any of the labs and
276 platforms, and choose which model does which work. Keys stay with g1t: an agent's
277 sandbox only ever holds a token for its own run.
278 </p>
279 <p className="mt-4 max-w-md leading-7 text-muted">
280 Connect Sentry and a new error becomes an issue, an agent fixes it, and Sentry hears
281 it was resolved, before anyone was paged. Mention TECH-1234 and the agent reads the
282 Jira ticket.
283 </p>
284 <div className="mt-6">
285 <ButtonLink to="https://docs.g1t.sh/guides/integrations/" variant="quiet">
286 See the integrations
287 <ArrowRight size={14} />
288 </ButtonLink>
289 </div>
290 </div>
291 <div className="space-y-6 lg:order-1">
292 <div className="grid grid-cols-3 gap-2 sm:grid-cols-4">
293 {STACK.map((provider) => (
294 <div
295 key={provider}
296 className="flex flex-col items-center gap-2 rounded-xl bg-surface px-2 py-3 ring-1 ring-line"
297 title={PROVIDERS[provider].label}
298 >
299 <ProviderMark provider={provider} size={30} />
300 <span className="w-full text-center text-xs leading-tight text-muted">{PROVIDERS[provider].label}</span>
301 </div>
302 ))}
303 </div>
304 <ol className="space-y-2 font-mono text-[0.8125rem]">
305 {LOOP.map((step, index) => (
306 <li key={step} className="flex items-center gap-3 text-fg-soft">
307 <span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-surface text-xs text-faint ring-1 ring-line">
308 {index + 1}
309 </span>
310 {step}
311 </li>
312 ))}
313 </ol>
314 </div>
315 </section>
316
317 {/* Comparison */}
318 <section className="mx-auto max-w-6xl px-4 pb-24">
319 <Eyebrow>What changes</Eyebrow>
320 <h2 className="mt-3 text-3xl font-semibold tracking-tight">The same git. A different job.</h2>
321 <div className="mt-10 overflow-hidden rounded-3xl ring-1 ring-line">
322 <div className="grid grid-cols-[1fr_1.3fr_1.6fr] bg-surface text-sm font-medium">
323 <div className="px-5 py-3" />
324 <div className="px-5 py-3 text-muted">A forge built for people</div>
325 <div className="px-5 py-3 text-accent">g1t</div>
326 </div>
327 {COMPARISON.map(([topic, before, after]) => (
328 <div key={topic} className="grid grid-cols-[1fr_1.3fr_1.6fr] border-t border-line text-sm">
329 <div className="px-5 py-4 font-medium">{topic}</div>
330 <div className="px-5 py-4 text-muted">{before}</div>
331 <div className="px-5 py-4">{after}</div>
332 </div>
333 ))}
334 </div>
335 </section>
336
337 {/* Open source */}
338 <section className="mx-auto max-w-6xl px-4 pb-8">
339 <div className="dusk relative overflow-hidden rounded-3xl p-10 text-center ring-1 ring-line">
340 <h2 className="text-2xl font-semibold tracking-tight">Open source, and built on itself</h2>
341 <p className="mx-auto mt-3 max-w-xl text-fg-soft/80">
342 g1t's own source lives on g1t, and its changes land through its own queue. It runs
343 entirely on Cloudflare's developer platform.
344 </p>
345 <ul className="mt-6 flex flex-wrap justify-center gap-2">
346 {PLATFORM.map((name) => (
347 <li key={name} className="rounded-full bg-bg/60 px-3 py-1 font-mono text-xs text-fg-soft ring-1 ring-white/10">
348 {name}
349 </li>
350 ))}
351 </ul>
352 <div className="mt-8 flex flex-wrap justify-center gap-3">
353 <ButtonLink to="/syntaqx/g1t" variant="primary" large>
354 Browse the source
355 </ButtonLink>
356 <ButtonLink to="/register" variant="quiet" large>
357 Create an account
358 </ButtonLink>
359 </div>
360 </div>
361
362 {repos.length > 0 && (
363 <div className="mt-20">
364 <div className="flex items-baseline justify-between">
365 <h2 className="text-sm font-medium text-muted">Public repositories</h2>
366 <Link to="/explore" className="text-sm text-muted hover:text-fg">
367 Explore all
368 </Link>
369 </div>
370 <RepoList repos={repos.slice(0, 6)} />
371 </div>
372 )}
373 </section>
374 </main>
375 );
376}