chore(website): simplify homepage Hub flow layout and remove highlight cards

This commit is contained in:
Mohamed Boudra
2026-11-20 14:53:44 +01:00
parent 78a7508e3d
commit 2c69f5a5d2
4 changed files with 45 additions and 86 deletions
+43 -45
View File
@@ -42,55 +42,53 @@ const DIAGRAM_DAEMONS = [
const DIAGRAM_CLIENTS = ["desktop", "web", "mobile", "cli"] as const;
/** Compact flow card for the homepage Paseo Hub section. */
/** Compact flow diagram for the homepage Paseo Hub section, sitting directly on the page background. */
export function HubLandingFlow() {
const { t } = useTranslation();
return (
<div className="rounded-xl border border-white/10 bg-black/20 p-5 md:p-6">
<div className="grid items-center gap-4 lg:grid-cols-[minmax(0,1.25fr)_auto_minmax(0,11.5rem)_auto_minmax(0,1fr)]">
<div className="space-y-2.5">
<p className="text-[11px] uppercase tracking-wide text-white/35">
{t("landing.hubSection.flowTriggers")}
</p>
<div className="grid grid-cols-2 gap-2">
{HUB_TRIGGER_SOURCES.map(({ id, Icon }) => (
<div
key={id}
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/[0.03] px-2.5 py-2"
>
<Icon className="h-3.5 w-3.5 shrink-0 text-white/70" />
<span className="truncate text-xs font-medium text-white/85">
{t(`hub.sources.${id}.name`)}
</span>
</div>
))}
</div>
</div>
<FlowArrow />
<div className="rounded-xl border border-white/20 bg-white/[0.06] px-5 py-5 text-center">
<p className="flex justify-center">
<HubLockup className="h-5 w-auto text-foreground" />
<span className="sr-only">{t("hub.shape.hub")}</span>
</p>
<p className="mt-2 text-xs text-muted-foreground">{t("hub.shape.hubHosting")}</p>
</div>
<FlowArrow />
<div className="space-y-2.5">
<p className="text-[11px] uppercase tracking-wide text-white/35">
{t("landing.hubSection.flowDaemons")}
</p>
<div className="space-y-2">
{DIAGRAM_DAEMONS.map((daemon) => (
<CompactDaemonRow key={daemon.name} name={daemon.name} agents={daemon.agents} />
))}
<div className="flex items-center gap-2 rounded-lg border border-dashed border-white/10 bg-white/[0.015] px-3 py-2 text-xs text-white/60">
<PaseoMark className="h-3.5 w-3.5 shrink-0 text-white/75" />
<span className="truncate">{t("landing.hubSection.flowOpenSession")}</span>
<div className="grid items-center gap-5 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,12rem)_auto_minmax(0,1fr)]">
<div className="space-y-2.5">
<p className="text-[11px] uppercase tracking-wide text-white/35">
{t("landing.hubSection.flowTriggers")}
</p>
<div className="grid grid-cols-2 gap-2">
{HUB_TRIGGER_SOURCES.map(({ id, Icon }) => (
<div
key={id}
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2"
>
<Icon className="h-3.5 w-3.5 shrink-0 text-white/70" />
<span className="truncate text-xs font-medium text-white/85">
{t(`hub.sources.${id}.name`)}
</span>
</div>
))}
</div>
</div>
<FlowArrow />
<div className="rounded-xl border border-white/20 bg-white/[0.06] px-5 py-5 text-center">
<p className="flex justify-center">
<HubLockup className="h-5 w-auto text-foreground" />
<span className="sr-only">{t("hub.shape.hub")}</span>
</p>
<p className="mt-2 text-xs text-muted-foreground">{t("hub.shape.hubHosting")}</p>
</div>
<FlowArrow />
<div className="space-y-2.5">
<p className="text-[11px] uppercase tracking-wide text-white/35">
{t("landing.hubSection.flowDaemons")}
</p>
<div className="space-y-2">
{DIAGRAM_DAEMONS.map((daemon) => (
<CompactDaemonRow key={daemon.name} name={daemon.name} agents={daemon.agents} />
))}
<div className="flex items-center gap-2 rounded-lg border border-dashed border-white/10 bg-white/[0.015] px-3 py-2 text-xs text-white/60">
<PaseoMark className="h-3.5 w-3.5 shrink-0 text-white/75" />
<span className="truncate">{t("landing.hubSection.flowOpenSession")}</span>
</div>
</div>
</div>
@@ -10,7 +10,6 @@ import {
Braces,
Compass,
ExternalLink,
FileCode2,
Gem,
GitFork,
GitPullRequest,
@@ -19,7 +18,6 @@ import {
Merge,
Monitor,
Puzzle,
Server,
Smartphone,
Terminal,
Users,
@@ -883,16 +881,6 @@ function SdkAutomationExample() {
);
}
const HUB_HIGHLIGHTS = [
{ key: "machines", Icon: Laptop },
{ key: "authoring", Icon: FileCode2 },
{ key: "hosting", Icon: Server },
] as const;
const HUB_HIGHLIGHT_CODE_COMPONENTS = {
code: <code className="font-mono text-[11px] text-white/80" />,
};
function HubSection() {
const { t } = useTranslation();
const localize = useLocalizePath();
@@ -914,27 +902,10 @@ function HubSection() {
</p>
</div>
<div className="space-y-5">
<div className="space-y-8">
<HubLandingFlow />
<div className="grid gap-3 md:grid-cols-3">
{HUB_HIGHLIGHTS.map(({ key, Icon }) => (
<div
key={key}
className="flex items-center gap-2 rounded-xl border border-white/10 bg-white/[0.025] px-3.5 py-3 text-xs text-white/80"
>
<Icon className="h-4 w-4 shrink-0 text-extra-muted-foreground" strokeWidth={1.5} />
<span className="min-w-0">
<Trans
i18nKey={`landing.hubSection.highlights.${key}`}
components={HUB_HIGHLIGHT_CODE_COMPONENTS}
/>
</span>
</div>
))}
</div>
<div className="flex flex-wrap items-center gap-3 pt-1">
<div className="flex flex-wrap items-center gap-3">
<a href={localize("/hub")} className={PRIMARY_CTA_CLASS}>
{t("landing.hubSection.exploreCta")}
<ArrowRight className="h-4 w-4" aria-hidden="true" />
@@ -381,11 +381,6 @@
"flowTriggers": "Trigger sources",
"flowDaemons": "Your connected daemons",
"flowOpenSession": "Open live session in Paseo",
"highlights": {
"machines": "Your machines and subscriptions",
"authoring": "Dashboard or YAML (<code>paseo hub deploy</code>)",
"hosting": "Self-hosted (Apache 2.0) or hosted"
},
"exploreCta": "Explore Paseo Hub",
"docsCta": "Self-host docs"
},
@@ -381,11 +381,6 @@
"flowTriggers": "触发来源",
"flowDaemons": "已连接的 daemon",
"flowOpenSession": "在 Paseo 中打开实时会话",
"highlights": {
"machines": "使用你的机器和订阅",
"authoring": "仪表盘或 YAML(<code>paseo hub deploy</code>)",
"hosting": "自托管(Apache 2.0)或托管服务"
},
"exploreCta": "了解 Paseo Hub",
"docsCta": "自托管文档"
},