diff --git a/app/[lang]/(marketing)/plugins/page.tsx b/app/[lang]/(marketing)/plugins/page.tsx index a377257..d2c1f28 100644 --- a/app/[lang]/(marketing)/plugins/page.tsx +++ b/app/[lang]/(marketing)/plugins/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from 'next' import Link from 'next/link' import { notFound } from 'next/navigation' -import { ArrowRight, Bot, Boxes, Layers, Radio, Tag } from 'lucide-react' +import { ArrowRight, Bot, Boxes, FileCode2, Layers, Radio, Tag } from 'lucide-react' import { isAppLocale, type AppLocale } from '@/lib/i18n' import { getRegistry, REGISTRY_HOST } from '@/lib/registry' import { pluginsCopy } from '@/lib/plugins-copy' @@ -136,39 +136,54 @@ export default async function PluginsPage({ params }: Props) { -
-
-

{t.quickstart.title}

-

{t.quickstart.body}

+
+
+
+
+ +
+

{t.quickstart.title}

+

{t.quickstart.body}

+ + {t.quickstart.docs} + + +
- - {t.quickstart.docs} - -
-
-
- + +
+
+
+ +
+

{t.quickstart.agents}

+

{t.quickstart.agentsBody}

+ + MCP + + +
+
+
+

MCP endpoint

+ +
+
+

Claude Code

+ +
-

{t.quickstart.agents}

-

{t.quickstart.agentsBody}

- -

Claude Code:

- - - MCP - -
diff --git a/components/plugins/copy-block.tsx b/components/plugins/copy-block.tsx index 86932c3..aa061c6 100644 --- a/components/plugins/copy-block.tsx +++ b/components/plugins/copy-block.tsx @@ -3,7 +3,10 @@ import { useState } from 'react' import { Check, Copy } from 'lucide-react' -/** A code block with a copy button; `label` names it for screen readers. */ +/** + * A code block with a copy button beside it, not on top of it: a long + * command scrolls inside its own column and is never hidden under the button. + */ export function CopyBlock({ code, label, copiedLabel }: { code: string; label: string; copiedLabel: string }) { const [copied, setCopied] = useState(false) @@ -18,8 +21,8 @@ export function CopyBlock({ code, label, copiedLabel }: { code: string; label: s } return ( -
-
+    
+
         {code}
       
diff --git a/lib/plugins-copy.ts b/lib/plugins-copy.ts index 9a49558..005ae0c 100644 --- a/lib/plugins-copy.ts +++ b/lib/plugins-copy.ts @@ -17,7 +17,7 @@ const en = { title: 'Use it in easyp.yaml', body: 'Point a plugin at the registry with remote: — pin the version so the output does not move when a newer one is published.', agents: 'For AI agents', - agentsBody: 'The same listing over MCP, tool plugins_list:', + agentsBody: 'The same listing over MCP, as the plugins_list tool. Connect any agent by URL, or Claude Code with one command.', docs: 'Client usage docs', }, browser: { @@ -62,7 +62,7 @@ const ru: typeof en = { title: 'Подключение в easyp.yaml', body: 'Укажите плагин через remote: и зафиксируйте версию, чтобы результат не менялся, когда выйдет новая.', agents: 'Для AI-агентов', - agentsBody: 'Тот же список через MCP, инструмент plugins_list:', + agentsBody: 'Тот же список через MCP — инструмент plugins_list. Подключите любого агента по адресу или Claude Code одной командой.', docs: 'Документация по подключению', }, browser: {