Skip to content

A desktop coding agent with free access to frontier models.

TypeScript
4.3 KB
Raw Blame
import { Plug, Sparkles } from "lucide-react";

import { BrandLogo } from "./lp-brand-logos";
import { OmniRushMark } from "./omnirush-mark";

type SourceLogo = "notion" | "hubspot" | "chrome";

const sources: { label: string; logo?: SourceLogo; logoClass?: string }[] = [
  { label: "Notion MCP", logo: "notion", logoClass: "text-[var(--lp-ink)]" },
  { label: "HubSpot MCP", logo: "hubspot", logoClass: "text-[#FF7A59]" },
  { label: "Chrome MCP", logo: "chrome", logoClass: "text-[#4285F4]" },
  { label: "Meeting Brief — skill" }
];

function Connector() {
  return (
    <>
      <div className="flex h-10 flex-col items-center md:hidden">
        <div className="h-7 w-px bg-[#c4ceda]" />
        <span
          aria-hidden="true"
          className="h-0 w-0 border-x-[4px] border-t-[6px] border-x-transparent border-t-[#c4ceda]"
        />
      </div>
      <div className="hidden h-auto min-w-10 flex-1 items-center md:flex">
        <div className="h-px flex-1 bg-[#c4ceda]" />
        <span
          aria-hidden="true"
          className="h-0 w-0 border-y-[4px] border-l-[6px] border-y-transparent border-l-[#c4ceda]"
        />
      </div>
    </>
  );
}

export function LpGatewayDiagram() {
  return (
    <div className="flex flex-col items-stretch gap-4 md:flex-row md:items-center md:gap-0">
      <div className="w-full rounded-[20px] bg-[var(--lp-tonal)] p-5 md:w-[320px] md:shrink-0">
        <div className="mb-3 text-[11px] font-bold tracking-[0.1em] text-[var(--lp-muted)]">
          SET UP ONCE
        </div>
        <div className="flex flex-col gap-2">
          {sources.map((source) => (
            <div
              key={source.label}
              className="flex items-center gap-3 rounded-[10px] bg-white px-3.5 py-2.5 text-[13.5px] font-medium text-[var(--lp-ink)]"
            >
              <span className="flex w-4 shrink-0 justify-center">
                {source.logo ? (
                  <BrandLogo
                    name={source.logo}
                    className={`h-4 w-4 ${source.logoClass ?? ""}`}
                  />
                ) : (
                  <Sparkles
                    className="h-4 w-4 text-[#f59e0b]"
                    strokeWidth={1.75}
                    aria-hidden="true"
                  />
                )}
              </span>
              {source.label}
            </div>
          ))}
        </div>
      </div>

      <Connector />

      <div className="flex w-full shrink-0 flex-col items-center rounded-[20px] bg-white px-5 py-[26px] text-center shadow-[0_10px_30px_rgba(1,22,39,0.08)] md:w-[216px]">
        <Plug className="mb-3 h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
        <div className="text-[16px] font-semibold text-[var(--lp-ink)]">
          OmniRush.ai Connect
        </div>
        <div className="mt-1 text-[11px] font-bold tracking-[0.1em] text-[var(--lp-blue)]">
          MCP GATEWAY
        </div>
        <p className="mt-3 text-[11.5px] leading-[17px] text-[var(--lp-muted)]">
          Auth, roles, and policies applied on the way through
        </p>
      </div>

      <Connector />

      <div className="w-full rounded-[20px] bg-[var(--lp-tonal)] p-5 md:w-[320px] md:shrink-0">
        <div className="mb-3 text-[11px] font-bold tracking-[0.1em] text-[var(--lp-muted)]">
          INSTANTLY SHARED WITH EVERYONE
        </div>
        <div className="flex flex-col gap-2">
          <div className="flex items-center gap-3 rounded-[10px] bg-white px-3.5 py-2.5 text-[13.5px] font-medium text-[var(--lp-ink)]">
            <span className="flex w-4 shrink-0 justify-center">
              <OmniRushMark className="h-4 w-4 object-contain" />
            </span>
            Teammates on desktop &amp; web
          </div>
          <ClientRow logo="claude" label="Claude Code" />
          <ClientRow logo="cursor" label="Cursor" />
          <ClientRow logo="openai" label="ChatGPT — any MCP client" />
        </div>
      </div>
    </div>
  );
}

type ClientRowProps = {
  logo: "claude" | "cursor" | "openai";
  label: string;
};

function ClientRow({ logo, label }: ClientRowProps) {
  return (
    <div className="flex items-center gap-3 rounded-[10px] bg-white px-3.5 py-2.5 text-[13.5px] font-medium text-[var(--lp-ink)]">
      <span className="flex w-4 shrink-0 justify-center">
        <BrandLogo name={logo} className="h-3.5 w-3.5" />
      </span>
      {label}
    </div>
  );
}