Spaces:
Paused
Paused
Download components/footer.tsx from samirhosninet/HubAPI: direct link, hf CLI and curl.
- Browser
- Download file 7.49 kB
-
https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/footer.tsx
- Command line
-
hf download hf://spaces/samirhosninet/HubAPI/components/footer.tsx
-
curl -L -o footer.tsx https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/footer.tsx
7.49 kB
| "use client"; | |
| import Link from "next/link"; | |
| import { useLanguage } from "@/components/LanguageContext"; | |
| const footerLinkClass = | |
| "hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/50 rounded-sm"; | |
| export function Footer() { | |
| const { t } = useLanguage(); | |
| return ( | |
| <footer className="relative w-full bg-transparent py-16 md:py-24 z-10 overflow-hidden border-t border-border"> | |
| <div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-primary/30 to-transparent" /> | |
| <div className="max-w-7xl mx-auto px-6 md:px-12"> | |
| <div className="mb-10"> | |
| <span className="inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 px-3 py-1 text-[10px] font-mono font-medium text-primary uppercase tracking-widest"> | |
| {t("footerBadge")} | |
| </span> | |
| </div> | |
| <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-12 md:gap-8 mb-12"> | |
| <div className="lg:col-span-2 space-y-5"> | |
| <Link | |
| href="/" | |
| className="flex items-center gap-3 group focus-visible:outline-none" | |
| aria-label="HUBAPI home" | |
| > | |
| <div className="relative w-6 h-6 flex items-center justify-center transition-transform group-hover:scale-105 duration-300"> | |
| <div className="absolute inset-0 border border-border rounded-sm opacity-60" /> | |
| <div className="absolute w-2 h-2 bg-primary rounded-full top-1 left-1 shadow-[0_0_10px_var(--primary-glow)]" /> | |
| </div> | |
| <span className="font-fast-hand tracking-wider text-2xl text-foreground">{t("logo")}</span> | |
| </Link> | |
| <p className="font-mono text-sm font-semibold text-foreground tracking-tight"> | |
| {t("heroTagline")} | |
| </p> | |
| <p className="font-mono text-xs text-muted-foreground leading-relaxed max-w-md"> | |
| {t("footerBrandDesc")} | |
| </p> | |
| <div className="flex flex-wrap gap-3 pt-1"> | |
| <Link | |
| href="#hero-waitlist" | |
| className="inline-flex items-center justify-center px-5 py-2.5 font-mono text-xs font-bold uppercase tracking-widest bg-primary text-primary-foreground hover:opacity-90 transition-opacity clip-cyber-button shadow-[0_0_16px_var(--primary-glow)]" | |
| > | |
| {t("heroCtaGetKey")} | |
| </Link> | |
| <Link | |
| href="#models" | |
| className="inline-flex items-center justify-center px-5 py-2.5 font-mono text-xs font-bold uppercase tracking-widest border border-primary/40 bg-primary/10 text-primary hover:bg-primary/20 transition-colors clip-cyber-button" | |
| > | |
| {t("heroCtaViewModels")} | |
| </Link> | |
| </div> | |
| </div> | |
| <div className="space-y-4 font-mono text-xs"> | |
| <h3 className="font-semibold text-foreground uppercase tracking-widest text-[10px] text-primary/80"> | |
| {`// ${t("footerPlatform")}`} | |
| </h3> | |
| <ul className="space-y-3 text-muted-foreground"> | |
| <li> | |
| <Link href="#models" className={footerLinkClass}> | |
| {t("footerPlatformCatalog")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#models" className={footerLinkClass}> | |
| {t("footerPlatformUnifiedApi")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#security" className={footerLinkClass}> | |
| {t("footerPlatformApiKeys")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#dashboard-preview" className={footerLinkClass}> | |
| {t("footerPlatformDashboard")} | |
| </Link> | |
| </li> | |
| </ul> | |
| </div> | |
| <div className="space-y-4 font-mono text-xs"> | |
| <h3 className="font-semibold text-foreground uppercase tracking-widest text-[10px] text-primary/80"> | |
| {`// ${t("footerDevelopers")}`} | |
| </h3> | |
| <ul className="space-y-3 text-muted-foreground"> | |
| <li> | |
| <Link href="#api-preview" className={footerLinkClass}> | |
| {t("footerDevApiPreview")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#api-preview" className={footerLinkClass}> | |
| {t("footerDevSdk")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#build-principles" className={footerLinkClass}> | |
| {t("footerDevRouting")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#faq" className={footerLinkClass}> | |
| {t("footerDevFaq")} | |
| </Link> | |
| </li> | |
| </ul> | |
| </div> | |
| <div className="space-y-4 font-mono text-xs"> | |
| <h3 className="font-semibold text-foreground uppercase tracking-widest text-[10px] text-primary/80"> | |
| {`// ${t("footerSecurity")}`} | |
| </h3> | |
| <ul className="space-y-3 text-muted-foreground"> | |
| <li> | |
| <Link href="#security" className={footerLinkClass}> | |
| {t("footerScopedKeys")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#security" className={footerLinkClass}> | |
| {t("footerBudgetLimits")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#security" className={footerLinkClass}> | |
| {t("footerZeroRetention")} | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="#security" className={footerLinkClass}> | |
| {t("footerCompliance")} | |
| </Link> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div className="mb-8 p-4 md:p-5 premium-glass-card rounded-lg text-[10px] md:text-xs leading-relaxed text-muted-foreground font-mono"> | |
| <span className="text-primary/90 font-bold block mb-2 uppercase tracking-widest"> | |
| {`// ${t("footerNoticeTitle")}`} | |
| </span> | |
| {t("footerNoticeText")} | |
| </div> | |
| <div className="h-px w-full bg-border mb-6" /> | |
| <div className="flex flex-col md:flex-row items-center justify-between gap-4 font-mono text-[10px] text-muted-foreground"> | |
| <div className="flex flex-wrap items-center justify-center md:justify-start gap-x-4 gap-y-2"> | |
| <span> | |
| © {new Date().getFullYear()} {t("logo")}. {t("allRightsReserved")} | |
| </span> | |
| <Link href="/privacy" className={footerLinkClass}> | |
| {t("privacyPolicy")} | |
| </Link> | |
| <span aria-hidden="true">·</span> | |
| <Link href="/terms" className={footerLinkClass}> | |
| {t("termsOfService")} | |
| </Link> | |
| </div> | |
| <div className="flex items-center gap-2 border border-primary/20 bg-primary/5 px-2.5 py-1 rounded-full text-primary"> | |
| <span className="w-1.5 h-1.5 bg-primary rounded-full animate-pulse shadow-[0_0_8px_var(--primary-glow)]" /> | |
| <span className="font-bold tracking-wider uppercase">{t("preLaunch")}</span> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| ); | |
| } | |