File size: 1,904 Bytes
587459d
 
 
 
4fdf972
cfaedfc
587459d
 
 
 
 
b50322f
587459d
4fdf972
 
587459d
 
 
4fdf972
587459d
 
 
 
4fdf972
587459d
 
 
4fdf972
 
 
 
 
 
 
587459d
4fdf972
587459d
4fdf972
 
 
 
587459d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"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>
  );
}