Skip to content

The Open Standard for Generative UI

4.5 KB
Raw Blame
import { createPageMetadata } from "@/lib/page-metadata";
import { ArrowUpRight } from "lucide-react";
import { BevelButton } from "../../components/Button/BevelButton";
import { FadedDither } from "../../components/FadedDither/FadedDither";
import styles from "../../page.module.css";
import { AutofixSection } from "../../sections/AutofixSection/AutofixSection";
import { Footer } from "../../sections/Footer/Footer";
import { HeroSection } from "../../sections/HeroSection/HeroSection";
import { GatewayReliabilityOpenIllustration } from "../../sections/ProductIllustrations/ProductIllustrations";
import { CloudCtaSection } from "../CloudCtaSection";
import { FaqSection } from "./FaqSection";
import { IntegrateSection } from "./IntegrateSection";
import page from "./metadata";
import gatewayStyles from "./page.module.css";
import { PricingSection } from "./PricingSection";
import { RepairSection } from "./RepairSection";
import sectionStyles from "./sections.module.css";
import { SecuritySection } from "./SecuritySection";
import { UsageSection } from "./UsageSection";
import { WhySection } from "./WhySection";

export const metadata = createPageMetadata(page);

export default function GatewayPage() {
  return (
    <div className={`${styles.page} ${gatewayStyles.sectionRhythm}`}>
      <div className={styles.heroShell}>
        <HeroSection
          align="left"
          desktopFromTablet
          title={
            <span className={gatewayStyles.titleBlock}>
              <span className={gatewayStyles.eyebrow}>
                OpenUI <span className={gatewayStyles.cloudTag}>Gateway</span>
              </span>
              <span className={gatewayStyles.title}>Production reliability for OpenUI</span>
            </span>
          }
          subtitle={
            <span className={gatewayStyles.subtitle}>
              An OpenAI-compatible API that validates and repairs model output against your
              component library as it streams.
            </span>
          }
          smallSubtitle
          tightDesktopSpacing={false}
          splitLockup
          flushInnerInlinePadding
          commandSlot={
            <div className={gatewayStyles.ctaGroup}>
              <BevelButton
                href="https://console.thesys.dev/keys"
                external
                variant="primary"
                label="Get API key"
                badge={<ArrowUpRight size={16} strokeWidth={2.25} />}
              />
              <BevelButton
                href="https://zcal.co/t/thesys/demo"
                external
                variant="secondary"
                label="Book a demo"
                badge={<ArrowUpRight size={16} strokeWidth={2.25} />}
              />
            </div>
          }
          showPlaygroundButton={false}
          showGitHubBanner={false}
          showTagline={false}
          desktopPreviewSlot={
            <div id="gateway-hero-illustration" className={gatewayStyles.heroArtSpace}>
              <FadedDither band="light" className={gatewayStyles.heroShader} />
              <div className={gatewayStyles.heroArtwork}>
                <GatewayReliabilityOpenIllustration />
              </div>
            </div>
          }
          mobilePreviewSlot={
            <div className={gatewayStyles.heroArtSpace}>
              <FadedDither band="light" className={gatewayStyles.heroShader} />
              <div className={gatewayStyles.heroArtwork}>
                <GatewayReliabilityOpenIllustration />
              </div>
            </div>
          }
        />
      </div>

      <main>
        <div className={gatewayStyles.problemBand}>
          <WhySection />
        </div>
        <div className={gatewayStyles.repairBand}>
          <RepairSection />
        </div>
        <div className={gatewayStyles.autofixBridge}>
          <AutofixSection />
        </div>
        <div className={gatewayStyles.usageBand}>
          <UsageSection />
        </div>
        <IntegrateSection />
        <SecuritySection />
        <PricingSection />
        <div className={sectionStyles.faqBand}>
          <FaqSection />
        </div>
        <CloudCtaSection
          title="Run OpenUI in production."
          primary={{
            label: "Get API key",
            href: "https://console.thesys.dev/keys",
            external: true,
          }}
          secondary={{
            label: "Book a demo",
            href: "https://zcal.co/t/thesys/demo",
            external: true,
          }}
        />
      </main>
      <Footer />
    </div>
  );
}