HubAPI / components /TerminalSection.tsx
samirhosninet's picture
feat(landing): align sections 5-11 with unified API key platform messaging
b50322f
Raw History Blame Contribute Delete
1.9 kB
"use client";
import { useLanguage } from "@/components/LanguageContext";
import { ErrorBoundary } from "@/components/ui/error-boundary";
import { ApiQuickstartPreview } from "@/components/ApiQuickstartPreview";
import { ProductVisionNotice } from "@/components/ProductVisionNotice";
export function TerminalSection() {
const { t } = useLanguage();
return (
<section id="api-preview" className="relative z-10 w-full max-w-5xl mx-auto px-4 md:px-6 py-20 md:py-28 scroll-mt-24">
<div className="text-center space-y-5 mb-10">
<div className="inline-flex items-center rounded-full border border-primary/20 bg-primary/5 px-4 py-1.5 text-sm font-medium text-primary backdrop-blur-sm shadow-sm font-mono">
<span className="relative flex h-2 w-2 mr-2.5 rtl:mr-0 rtl:ml-2">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"></span>
<span className="relative inline-flex rounded-full h-2 w-2 bg-primary"></span>
</span>
{t("terminalBadge")}
</div>
<h2 className="text-3xl font-extrabold tracking-tight sm:text-5xl bg-clip-text text-transparent bg-gradient-to-br from-foreground via-foreground/90 to-muted-foreground pb-1">
{t("terminalSubtitle")}
</h2>
<p className="max-w-2xl mx-auto text-base text-muted-foreground font-mono leading-relaxed">
{t("terminalDesc")}
</p>
</div>
<ProductVisionNotice
className="mb-8"
labelKey="quickstartVisionLabel"
disclaimerKey="quickstartVisionDisclaimer"
/>
<ErrorBoundary>
<ApiQuickstartPreview />
</ErrorBoundary>
<p className="mt-8 max-w-2xl mx-auto text-center text-[10px] sm:text-[11px] text-muted-foreground/75 leading-relaxed font-mono">
{t("terminalPrelaunchNotice")}
</p>
</section>
);
}