Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Paper & Phosphor brand tokens are an identical copy in both
# site repos (no shared package yet — the sites build standalone
# in Docker). Fail fast when this copy drifts from the sibling's
# main branch. Skips while the sibling doesn't have the file yet.
- name: Brand tokens in sync with site
run: |
if curl -fsSL https://raw.githubusercontent.com/agentproto/site/main/src/app/brand.css -o /tmp/sibling-brand.css; then
diff -u /tmp/sibling-brand.css src/app/brand.css
else
echo "sibling brand.css not found on site main — skipping"
fi

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
105 changes: 105 additions & 0 deletions src/app/brand.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/* ═══════════════════════════════════════════════════════════════════
agentproto brand — "Paper & Phosphor" tokens.

IDENTICAL COPY in agentproto/site and agentproto/cli-site, both at
src/app/brand.css. CI diffs this file against the sibling repo's
main branch — edit BOTH repos or the check fails.

The page is an engineering document: cool paper, ink, ultramarine
accent, IBM Plex serif display. The dark terminal panels are the
only place the phosphor green / amber status colors appear — the
paper ↔ phosphor contrast IS the brand ("the spec is a document,
the daemon is alive"). Terminal tokens are theme-invariant.
═══════════════════════════════════════════════════════════════════ */

@theme inline {
--font-sans: var(--font-plex-sans), system-ui, sans-serif;
--font-mono: var(--font-plex-mono), ui-monospace, "SF Mono", Menlo, monospace;
--font-serif: var(--font-plex-serif), Charter, Georgia, serif;
}

:root {
--color-fd-background: #f5f6f3;
--color-fd-foreground: #171a1e;
--color-fd-muted: #eceee9;
--color-fd-muted-foreground: #5c6470;
--color-fd-popover: #ffffff;
--color-fd-popover-foreground: #171a1e;
--color-fd-card: #ffffff;
--color-fd-card-foreground: #171a1e;
--color-fd-border: #dde0da;
--color-fd-primary: #2c46d8;
--color-fd-primary-foreground: #ffffff;
--color-fd-secondary: #e9ebe6;
--color-fd-secondary-foreground: #171a1e;
--color-fd-accent: #e7eaf9;
--color-fd-accent-foreground: #1b2b90;
--color-fd-ring: #2c46d8;

/* runtime island — theme-invariant */
--term-bg: #0d1512;
--term-line: #21302a;
--term-text: #c9d6ce;
--term-dim: #6d7f76;
--phos: #3edc81;
--amber: #f0b429;
}

.dark {
--color-fd-background: #101214;
--color-fd-foreground: #e8eaed;
--color-fd-muted: #1b1f24;
--color-fd-muted-foreground: #99a2ad;
--color-fd-popover: #16191d;
--color-fd-popover-foreground: #e8eaed;
--color-fd-card: #16191d;
--color-fd-card-foreground: #e8eaed;
--color-fd-border: #272c33;
--color-fd-primary: #8296ff;
--color-fd-primary-foreground: #10141f;
--color-fd-secondary: #1b1f24;
--color-fd-secondary-foreground: #e8eaed;
--color-fd-accent: #232a3d;
--color-fd-accent-foreground: #c9d2ff;
--color-fd-ring: #8296ff;
}

/* ── status blink (running dots, hero cursor) ──────────────────── */

@keyframes session-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.25; }
}
.session-blink {
animation: session-blink 2s ease-in-out infinite;
}

/* ── self-typing terminal lines ────────────────────────────────── */

@keyframes type-in {
from { width: 0; }
to { width: 100%; }
}
@keyframes appear {
to { opacity: 1; }
}
.type-line {
display: inline-block;
overflow: hidden;
white-space: nowrap;
vertical-align: bottom;
max-width: 100%;
animation: type-in 1.8s steps(36, end) both;
animation-delay: var(--type-delay, 0s);
}
.type-out {
opacity: 0;
animation: appear 0.01s both;
animation-delay: var(--type-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
.session-blink { animation: none; }
.type-line { animation: none; width: 100%; }
.type-out { animation: none; opacity: 1; }
}
104 changes: 1 addition & 103 deletions src/app/global.css
Original file line number Diff line number Diff line change
@@ -1,106 +1,4 @@
@import "tailwindcss";
@import "fumadocs-ui/css/neutral.css";
@import "fumadocs-ui/css/preset.css";

/* ═══════════════════════════════════════════════════════════════════
Paper & Phosphor — agentproto brand tokens (shared with
agentproto.sh; keep the two files in sync until a shared brand
package exists).

The page is an engineering document: cool paper, ink, ultramarine
accent. The dark terminal panels are the only place the phosphor
green / amber status colors appear. Terminal tokens are
theme-invariant.
═══════════════════════════════════════════════════════════════════ */

@theme inline {
--font-sans: var(--font-plex-sans), system-ui, sans-serif;
--font-mono: var(--font-plex-mono), ui-monospace, "SF Mono", Menlo, monospace;
--font-serif: var(--font-plex-serif), Charter, Georgia, serif;
}

:root {
--color-fd-background: #f5f6f3;
--color-fd-foreground: #171a1e;
--color-fd-muted: #eceee9;
--color-fd-muted-foreground: #5c6470;
--color-fd-popover: #ffffff;
--color-fd-popover-foreground: #171a1e;
--color-fd-card: #ffffff;
--color-fd-card-foreground: #171a1e;
--color-fd-border: #dde0da;
--color-fd-primary: #2c46d8;
--color-fd-primary-foreground: #ffffff;
--color-fd-secondary: #e9ebe6;
--color-fd-secondary-foreground: #171a1e;
--color-fd-accent: #e7eaf9;
--color-fd-accent-foreground: #1b2b90;
--color-fd-ring: #2c46d8;

/* runtime island — theme-invariant */
--term-bg: #0d1512;
--term-line: #21302a;
--term-text: #c9d6ce;
--term-dim: #6d7f76;
--phos: #3edc81;
--amber: #f0b429;
}

.dark {
--color-fd-background: #101214;
--color-fd-foreground: #e8eaed;
--color-fd-muted: #1b1f24;
--color-fd-muted-foreground: #99a2ad;
--color-fd-popover: #16191d;
--color-fd-popover-foreground: #e8eaed;
--color-fd-card: #16191d;
--color-fd-card-foreground: #e8eaed;
--color-fd-border: #272c33;
--color-fd-primary: #8296ff;
--color-fd-primary-foreground: #10141f;
--color-fd-secondary: #1b1f24;
--color-fd-secondary-foreground: #e8eaed;
--color-fd-accent: #232a3d;
--color-fd-accent-foreground: #c9d2ff;
--color-fd-ring: #8296ff;
}

/* ── status blink (running dots) ───────────────────────────────── */

@keyframes session-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.25; }
}
.session-blink {
animation: session-blink 2s ease-in-out infinite;
}

/* ── self-typing hero terminal ─────────────────────────────────── */

@keyframes type-in {
from { width: 0; }
to { width: 100%; }
}
@keyframes appear {
to { opacity: 1; }
}
.type-line {
display: inline-block;
overflow: hidden;
white-space: nowrap;
vertical-align: bottom;
max-width: 100%;
animation: type-in 1.8s steps(36, end) both;
animation-delay: var(--type-delay, 0s);
}
.type-out {
opacity: 0;
animation: appear 0.01s both;
animation-delay: var(--type-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
.session-blink { animation: none; }
.type-line { animation: none; width: 100%; }
.type-out { animation: none; opacity: 1; }
}
@import "./brand.css";
1 change: 1 addition & 0 deletions src/app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from "next"
import { IBM_Plex_Mono, IBM_Plex_Sans, IBM_Plex_Serif } from "next/font/google"
import { RootProvider } from "fumadocs-ui/provider/next"
import { BrandRibbon } from "@/components/brand-ribbon"
import "./global.css"

const plexSans = IBM_Plex_Sans({
Expand Down Expand Up @@ -50,6 +51,7 @@ export default function RootLayout({
>
<body className="flex flex-col min-h-screen">
<RootProvider>
<BrandRibbon current="cli" />
<div className="flex-1">{children}</div>
</RootProvider>
</body>
Expand Down
1 change: 1 addition & 0 deletions src/app/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
agentproto CLI — install it, run an agent, watch it live. A terminal running npm install, agentproto serve, and a session start.
Binary file added src/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions src/components/brand-ribbon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
"use client"

import { usePathname } from "next/navigation"

/**
* Cross-site ribbon: the one element that stitches the agentproto
* surfaces (protocol site, CLI site, live panel) into a single brand.
*
* IDENTICAL COPY in agentproto/site and agentproto/cli-site, both at
* src/components/brand-ribbon.tsx — only the `current` prop differs
* at the call site. Hidden on /panel, which is a full-height app.
*/
const SURFACES = [
{ key: "protocol", label: "protocol", host: "agentproto.sh", url: "https://agentproto.sh" },
{ key: "cli", label: "cli", host: "cli.agentproto.sh", url: "https://cli.agentproto.sh" },
{ key: "panel", label: "panel", host: "/panel", url: "https://cli.agentproto.sh/panel" },
] as const

export type BrandSurface = (typeof SURFACES)[number]["key"]

export function BrandRibbon({
current,
}: {
current: BrandSurface
}): React.ReactElement | null {
const pathname = usePathname()
if (pathname?.startsWith("/panel")) return null

return (
<div className="border-b border-fd-border bg-fd-background">
<div className="container mx-auto flex max-w-6xl gap-x-5 overflow-x-auto px-6 py-1.5 font-mono text-[10.5px] tracking-[0.1em] whitespace-nowrap">
{SURFACES.map(s =>
s.key === current ? (
<span key={s.key} className="text-fd-muted-foreground">
<b className="font-semibold text-fd-primary">{s.label}</b> {s.host}
</span>
) : (
<a
key={s.key}
href={s.url}
className="text-fd-muted-foreground transition-colors hover:text-fd-foreground"
>
{s.label} {s.host}
</a>
)
)}
</div>
</div>
)
}
Loading