mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
62facacee1
Every integration quickstart in docs/ and showcase/shell-docs/ now opens with a "Create a free account" step that points the reader at the Enterprise Intelligence Platform before the framework path. Existing top-of-page <OpsPlatformCTA> blocks on the six integrations that already had one are left in place. - New <SignupLink surface="docs_<int>_quickstart_step1">…</SignupLink> MDX component in both apps. It mirrors OpsPlatformCTA's URL+UTM contract (https://dashboard.operations.copilotkit.ai/ with the canonical docs UTMs, picked up from NEXT_PUBLIC_INTELLIGENCE_SIGNUP_URL when set) and fires the same PostHog event the other CTAs use: posthog.capture("try_for_free_clicked", { location: surface }). - Registered as an MDX global in: docs/app/integrations/[[...slug]]/page.tsx docs/app/(home)/[[...slug]]/page.tsx showcase/shell-docs/src/lib/mdx-registry.tsx - All 28 integration quickstart .mdx files now lead with a Step that uses this component as an inline link inside a single sentence of prose — no CTA card inside <Steps>. The <TailoredContent> "Choose your starting point" / "How do you want to get started?" selector is now wrapped in its own <Step> so it advances the counter, and the inner CLI/manual paths render as steps 3, 4, 5, … instead of 2, 3, 4, …. Applies to all 20 quickstarts that use the picker. - Indigo→purple gradient text on the Step 1 heading on both surfaces (`.fd-steps > .fd-step:first-child h3` on docs/, `.docs-steps > div:first-child h3` on shell-docs). Direct-child combinator scopes it to the outer first Step so inner first-children inside TailoredContentOption don't pick it up. Bump weight to 700 and font-size to 1.375rem on docs/ to compensate for the background-clip:text rendering path (grayscale AA, no solid fill) which makes glyphs look lighter/smaller than the adjacent solid 600/20px headings. - Tone down the selected TailoredContent option card on both surfaces to a near-grayscale wash (from-slate-50 → to-indigo-50/30) and shorten the card itself (smaller padding, smaller icon, smaller title; extra left padding for breathing room) so the picker takes less vertical space and doesn't compete with the Step 1 gradient heading. Indigo ring still does the "selected" signal. - Bump the tablist's bottom margin in shell-docs (my-2 → mt-2 mb-6) so the gap between the picker and the first inner Step matches the 1.5rem gap that every other consecutive-Step transition uses. - Black SignupLink color in Step 1 on shell-docs so the link doesn't clash with the gradient heading above it. - Shell-docs: reset margin-top on the first heading inside any Step so the badge and heading align, and nudge the badge top from -0.125rem to 0.1875rem so its vertical center matches the heading line center. Moved the badge's appearance (background/border/color/font-weight) out of inline style and into globals.css so :first-child overrides can win without fighting inline-style specificity.