Spaces:
Paused
Paused
feat: complete HUBAPI overhaul (Security, i18n RTL, Dark/Light Mode, A11y & Performance fixes)
587459d Download components/social-proof.tsx from samirhosninet/HubAPI: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/social-proof.tsx
- Command line
-
hf download hf://spaces/samirhosninet/HubAPI/components/social-proof.tsx
-
curl -L -o social-proof.tsx https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/social-proof.tsx
3.95 kB
| "use client"; | |
| import { Marquee } from "./ui/marquee"; | |
| import { useLanguage } from "@/components/LanguageContext"; | |
| const LOGOS = [ | |
| { | |
| name: "Y Combinator", | |
| color: "#ff6600", | |
| svg: ( | |
| <svg className="h-5 w-5" viewBox="0 0 24 24" fill="currentColor"> | |
| <rect width="24" height="24" rx="4" fill="#ff6600" /> | |
| <path d="M6 6h2.5l3.5 6.5L15.5 6H18l-5.5 10v4h-2.5v-4z" fill="white" /> | |
| </svg> | |
| ), | |
| }, | |
| { | |
| name: "Sequoia Capital", | |
| color: "#0f763e", | |
| svg: ( | |
| <svg className="h-6 w-24" viewBox="0 0 100 24" fill="currentColor"> | |
| <text x="0" y="18" className="font-sans font-black tracking-wider text-sm fill-emerald-500">SEQUOIA</text> | |
| </svg> | |
| ), | |
| }, | |
| { | |
| name: "Accel Partners", | |
| color: "#3b82f6", | |
| svg: ( | |
| <svg className="h-6 w-20" viewBox="0 0 100 24" fill="currentColor"> | |
| <circle cx="8" cy="12" r="6" fill="#3b82f6" /> | |
| <text x="22" y="18" className="font-sans font-bold tracking-tight text-sm fill-current text-[var(--card-foreground)]">ACCEL</text> | |
| </svg> | |
| ), | |
| }, | |
| { | |
| name: "Founders Fund", | |
| color: "#ec4899", | |
| svg: ( | |
| <svg className="h-6 w-32" viewBox="0 0 120 24" fill="currentColor"> | |
| <text x="0" y="18" className="font-mono font-semibold tracking-widest text-[11px] fill-rose-500">FOUNDERS FUND</text> | |
| </svg> | |
| ), | |
| }, | |
| { | |
| name: "Andreessen Horowitz", | |
| color: "#f59e0b", | |
| svg: ( | |
| <svg className="h-6 w-12" viewBox="0 0 60 24" fill="currentColor"> | |
| <text x="0" y="18" className="font-sans font-extrabold text-[15px] fill-amber-500">a16z</text> | |
| </svg> | |
| ), | |
| }, | |
| { | |
| name: "Benchmark", | |
| color: "#8b5cf6", | |
| svg: ( | |
| <svg className="h-6 w-28" viewBox="0 0 100 24" fill="currentColor"> | |
| <text x="0" y="18" className="font-serif italic font-bold text-sm fill-violet-500">BENCHMARK</text> | |
| </svg> | |
| ), | |
| }, | |
| ]; | |
| export function SocialProof() { | |
| const { t } = useLanguage(); | |
| return ( | |
| <section className="relative z-10 w-full py-12 md:py-16 overflow-hidden border-y border-border bg-muted/20 backdrop-blur-sm"> | |
| {/* Decorative background glow */} | |
| <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[80%] h-8 bg-primary/5 blur-2xl pointer-events-none" /> | |
| <div className="max-w-7xl mx-auto px-6"> | |
| <div className="text-center mb-8 space-y-2"> | |
| <p className="text-[10px] font-mono text-primary tracking-[0.2em] uppercase"> | |
| {t("socialProofBadge")} | |
| </p> | |
| </div> | |
| <div className="relative w-full flex items-center justify-center"> | |
| {/* Left/Right masks for smooth marquee fading edges */} | |
| <div className="absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none" /> | |
| <div className="absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none" /> | |
| <Marquee className="py-4 [--duration:30s] w-full" pauseOnHover> | |
| {LOGOS.map((logo, idx) => ( | |
| <div | |
| key={idx} | |
| className="flex items-center gap-3 px-6 py-3 mx-4 rounded-xl border border-[var(--card-border)] bg-card backdrop-blur-md shadow-sm transition-[border-color,box-shadow,transform] duration-300 hover:border-primary/30 hover:shadow-[0_0_20px_var(--primary-glow)] group hover:-translate-y-0.5 cursor-pointer select-none" | |
| > | |
| <div className="opacity-70 group-hover:opacity-100 transition-opacity duration-300"> | |
| {logo.svg} | |
| </div> | |
| <span className="text-xs font-mono text-[var(--card-muted-foreground)] group-hover:text-[var(--card-foreground)] transition-colors duration-300"> | |
| {logo.name} | |
| </span> | |
| </div> | |
| ))} | |
| </Marquee> | |
| </div> | |
| </div> | |
| </section> | |
| ); | |
| } | |