Files
3x-ui-web-src/docs/components/home/features.tsx
T
Sanaei f727d04f65
CI / go-test (push) Canceled after 0s
CI / postgres-durable-first (push) Canceled after 0s
CI / codegen (push) Canceled after 0s
CI / govulncheck (push) Canceled after 0s
CI / race (push) Canceled after 0s
CI / fuzz-smoke (push) Canceled after 0s
CI / golangci (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CodeQL Advanced / Analyze (go) (push) Canceled after 0s
CodeQL Advanced / Analyze (actions) (push) Canceled after 0s
CodeQL Advanced / Analyze (javascript-typescript) (push) Canceled after 0s
Docs CI / build (push) Canceled after 0s
Docs Deploy (GitHub Pages) / build (push) Canceled after 0s
Release 3X-UI / build (386) (push) Canceled after 0s
Release 3X-UI / build (amd64) (push) Canceled after 0s
Release 3X-UI / build (arm64) (push) Canceled after 0s
Release 3X-UI / build (armv5) (push) Canceled after 0s
Release 3X-UI / build (armv6) (push) Canceled after 0s
Release 3X-UI / build (armv7) (push) Canceled after 0s
Release 3X-UI / build (s390x) (push) Canceled after 0s
Release 3X-UI / Build for Windows (amd64) (push) Canceled after 0s
Deploy Smoke Tests / noninteractive-install (ubuntu-24.04-arm) (push) Canceled after 0s
Deploy Smoke Tests / noninteractive-install (ubuntu-latest) (push) Canceled after 0s
Deploy Smoke Tests / release-tag-install (ubuntu-24.04-arm) (push) Canceled after 0s
Deploy Smoke Tests / release-tag-install (ubuntu-latest) (push) Canceled after 0s
Docs Deploy (GitHub Pages) / deploy (push) Canceled after 0s
Release 3X-UI / Publish rolling dev release (push) Canceled after 0s
v3.7.0
2026-08-24 15:07:15 +02:00

50 lines
1.6 KiB
TypeScript

import {
Boxes,
Network,
Send,
ShieldCheck,
TerminalSquare,
Users,
type LucideIcon,
} from 'lucide-react';
// Icons map by position to the localized feature items in lib/site-i18n.ts
// (Every major protocol, REALITY, Clients, Multi-node, Telegram, Self-hosted).
const ICONS: LucideIcon[] = [Boxes, ShieldCheck, Users, Network, Send, TerminalSquare];
export function Features({
heading,
subtitle,
items,
}: {
heading: string;
subtitle: string;
items: { title: string; description: string }[];
}) {
return (
<section className="mx-auto w-full max-w-6xl px-4 py-16 sm:py-24">
<div className="mx-auto max-w-2xl text-center">
<h2 className="text-2xl font-bold tracking-tight sm:text-3xl">{heading}</h2>
<p className="mt-3 text-fd-muted-foreground">{subtitle}</p>
</div>
<div className="mt-12 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
{items.map(({ title, description }, i) => {
const Icon = ICONS[i] ?? Boxes;
return (
<div
key={title}
className="rounded-2xl border bg-fd-card p-6 transition-colors hover:border-fd-primary/40"
>
<div className="inline-flex size-11 items-center justify-center rounded-xl bg-brand/10 text-brand">
<Icon className="size-6" aria-hidden />
</div>
<h3 className="mt-4 font-semibold">{title}</h3>
<p className="mt-2 text-sm text-fd-muted-foreground">{description}</p>
</div>
);
})}
</div>
</section>
);
}