From 7d425b2efedd303c868cc7f688fc46c46e100c54 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 25 Nov 2026 18:59:47 +0700 Subject: [PATCH] Mark desktop, web, and mobile in the homepage plugins subtitle (#10799) Each client the subtitle names has its own color and an icon. The locale strings tag the three names so each translation places them. --- .../website/src/components/landing-page.tsx | 46 ++++++++++++++++++- packages/website/src/i18n/resources/en.json | 2 +- .../website/src/i18n/resources/zh-CN.json | 2 +- 3 files changed, 46 insertions(+), 4 deletions(-) diff --git a/packages/website/src/components/landing-page.tsx b/packages/website/src/components/landing-page.tsx index f5f9920317..596634dc94 100644 --- a/packages/website/src/components/landing-page.tsx +++ b/packages/website/src/components/landing-page.tsx @@ -13,6 +13,7 @@ import { Gem, GitFork, GitPullRequest, + Globe, Laptop, Lock, Merge, @@ -387,7 +388,7 @@ function FeatureSection({ }: { eyebrow?: string; title: string; - description: string; + description: React.ReactNode; badge?: string; links?: ReadonlyArray<{ href: string; label: string }>; children: React.ReactNode; @@ -941,9 +942,50 @@ function HubSection() { ); } +/** A client that runs plugins, named in the section lede with its icon. */ +function PluginClient({ + icon: Icon, + className, + iconClassName = "mr-[0.3em]", + children, +}: { + icon: LucideIcon; + className: string; + iconClassName?: string; + children?: React.ReactNode; +}) { + return ( + + + ); +} + +const PLUGIN_CLIENT_COMPONENTS = { + desktop: , + web: , + // Optical: the phone glyph is narrower than its box, so pull both sides in. + mobile: ( + + ), +}; + function ExtensibleSection({ pluginCount }: { pluginCount?: number | null }) { const { t } = useTranslation(); const pluginActions = React.useMemo(() => , []); + const description = React.useMemo( + () => , + [], + ); const libraryTitle = pluginCount && pluginCount > 0 ? t("landing.plugins.libraryTitleCount", { count: pluginCount }) @@ -952,7 +994,7 @@ function ExtensibleSection({ pluginCount }: { pluginCount?: number | null }) {
diff --git a/packages/website/src/i18n/resources/en.json b/packages/website/src/i18n/resources/en.json index 78619776f0..fbc4f6fb91 100644 --- a/packages/website/src/i18n/resources/en.json +++ b/packages/website/src/i18n/resources/en.json @@ -410,7 +410,7 @@ }, "plugins": { "title": "Ask Paseo to change Paseo", - "description": "Build or install a plugin once on your server, and it works across desktop, web, and native mobile with no restart.", + "description": "Build or install a plugin once on your server, and it works across desktop, web, and native mobile with no restart.", "request": "Add a sidebar panel with the PRs waiting on my review.", "plan": "I'll build it as a local plugin and install it.", "done": "Review queue is in your sidebar.", diff --git a/packages/website/src/i18n/resources/zh-CN.json b/packages/website/src/i18n/resources/zh-CN.json index a52bd96b75..69818e8f5c 100644 --- a/packages/website/src/i18n/resources/zh-CN.json +++ b/packages/website/src/i18n/resources/zh-CN.json @@ -410,7 +410,7 @@ }, "plugins": { "title": "让 Paseo 修改 Paseo", - "description": "插件只需在你的服务器上构建或安装一次,即可在桌面端、Web 端和原生移动端运行,无需重启。", + "description": "插件只需在你的服务器上构建或安装一次,即可在 桌面端、Web 端和 原生移动端运行,无需重启。", "request": "在侧边栏加一个面板,列出等待我审查的 PR。", "plan": "我会把它做成本地插件并安装。", "done": "审查队列已出现在你的侧边栏。",