import { ArrowRight, Shield, Globe, Lock, Server, Zap, ChevronRight } from "lucide-react"; import Link from 'next/link'; export function LandingPage({ locale = 'en' }: { locale?: 'en' | 'id' }) { const dict = { en: { hero: { badge: "v1.0 is Live", title: <>Secure Your Private Network, desc: "TrustLab is the definitive Private Certificate Authority (CA) for your internal infrastructure. Issue military-grade SSL/TLS certificates for Intranets, IoT, and Dev environments.", cta: "Get Started", cta_sec: "Generate Certificate" }, features: { root_ca: { title: "Private Root CA", desc: "Your own sovereign Certificate Authority. Trusted by your devices, unreachable by the public internet." }, internal: { title: "Internal Domains", desc: "Issue certificates for .local, .corp, and private IP addresses (192.168.x.x) that Public CAs reject." }, smime: { title: "S/MIME Encryption", desc: "Secure internal email communication with employee-to-employee encryption." }, infra: { title: "Infrastructure", desc: "Seamless integration guides for Nginx, IIS, Apache, and containerized environments." }, issuance: { title: "Instant Issuance", desc: "No validation delays. Certificates are issued instantly via our modern dashboard." }, start: { title: "Start Now", desc: "Follow the Setup Guide to install the Root CA and go green in minutes." } } }, id: { hero: { badge: "v1.0 Telah Rilis", title: <>Amankan Jaringan Privat Anda, desc: "TrustLab adalah Otoritas Sertifikat (CA) Privat definitif untuk infrastruktur internal Anda. Terbitkan sertifikat SSL/TLS kelas militer untuk Intranet, IoT, dan lingkungan Dev.", cta: "Mulai Sekarang", cta_sec: "Buat Sertifikat" }, features: { root_ca: { title: "Root CA Privat", desc: "Otoritas Sertifikat berdaulat milik Anda. Dipercaya perangkat Anda, tidak terjangkau internet publik." }, internal: { title: "Domain Internal", desc: "Terbitkan sertifikat untuk .local, .corp, dan IP privat (192.168.x.x) yang ditolak CA Publik." }, smime: { title: "Enkripsi S/MIME", desc: "Amankan komunikasi email internal dengan enkripsi antar-karyawan." }, infra: { title: "Infrastruktur", desc: "Panduan integrasi mulus untuk Nginx, IIS, Apache, dan environment container." }, issuance: { title: "Penerbitan Instan", desc: "Tanpa penundaan validasi. Sertifikat diterbitkan instan melalui dashboard modern kami." }, start: { title: "Mulai Sekarang", desc: "Ikuti Panduan Setup untuk menginstal Root CA dan aman dalam hitungan menit." } } } } const t = dict[locale] return (
{/* Hero Section */}
{t.hero.badge}

{t.hero.title}

{t.hero.desc}

{t.hero.cta} {t.hero.cta_sec}
{/* Features Grid */}
} title={t.features.root_ca.title} description={t.features.root_ca.desc} link={locale === 'id' ? "/id/guide/concepts/pki-undamentals" : "/guide/concepts/pki-undamentals"} /> } title={t.features.internal.title} description={t.features.internal.desc} link={locale === 'id' ? "/id/guide/certificates/request-new" : "/guide/certificates/request-new"} /> } title={t.features.smime.title} description={t.features.smime.desc} link={locale === 'id' ? "/id/guide/integrations/smime" : "/guide/integrations/smime"} /> } title={t.features.infra.title} description={t.features.infra.desc} link={locale === 'id' ? "/id/guide/integrations/web-servers" : "/guide/integrations/web-servers"} /> } title={t.features.issuance.title} description={t.features.issuance.desc} link={locale === 'id' ? "/id/guide/getting-started/access-dashboard" : "/guide/getting-started/access-dashboard"} /> } title={t.features.start.title} description={t.features.start.desc} link={locale === 'id' ? "/id/guide/getting-started/install-root-ca" : "/guide/getting-started/install-root-ca"} isAction />
); } function FeatureCard({ icon, title, description, link, isAction }: any) { return (
{icon}

{title}

{description}

Learn more
) }