Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | 'use client'; |
| 2 | |
| 3 | import Image from 'next/image'; |
| 4 | import { useIsMobile } from './use-is-mobile'; |
| 5 | import { LogoLoop } from './logo-loop'; |
| 6 | |
| 7 | interface ClientLogo { |
| 8 | src: string; |
| 9 | alt: string; |
| 10 | h: number; |
| 11 | } |
| 12 | |
| 13 | const LOGOS: ClientLogo[] = [ |
| 14 | { src: '/clients/logo-agentai.svg', alt: 'agent.ai', h: 34 }, |
| 15 | { src: '/clients/logo-context.svg', alt: 'Context', h: 30 }, |
| 16 | { src: '/clients/logo-zoom.png', alt: 'Zoom', h: 25 }, |
| 17 | { src: '/clients/logo-letta.svg', alt: 'Letta', h: 27 }, |
| 18 | { src: '/clients/logo-glean.svg', alt: 'Glean', h: 34 }, |
| 19 | { src: '/clients/logo-hubspot.svg', alt: 'HubSpot', h: 34 }, |
| 20 | { src: '/clients/logo-wabi.svg', alt: 'Wabi', h: 27 }, |
| 21 | ]; |
| 22 | |
| 23 | const MOBILE_SCALE = 0.75; |
| 24 | |
| 25 | export function LogoBar() { |
| 26 | const isMobile = useIsMobile(); |
| 27 | |
| 28 | return ( |
| 29 | <section className="flex w-full items-center justify-center"> |
| 30 | <div |
| 31 | className="w-full max-w-[800px] overflow-hidden px-4 py-[14px] grayscale" |
| 32 | style={{ |
| 33 | maskImage: |
| 34 | 'linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%)', |
| 35 | WebkitMaskImage: |
| 36 | 'linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%)', |
| 37 | }} |
| 38 | > |
| 39 | <LogoLoop |
| 40 | direction="right" |
| 41 | gap={isMobile ? 40 : 64} |
| 42 | logoHeight={isMobile ? 18 : 26} |
| 43 | logos={LOGOS} |
| 44 | renderItem={item => { |
| 45 | const h = isMobile ? item.h * MOBILE_SCALE : item.h; |
| 46 | return ( |
| 47 | <Image |
| 48 | alt={item.alt} |
| 49 | draggable={false} |
| 50 | height={Math.ceil(h)} |
| 51 | src={item.src} |
| 52 | style={{ |
| 53 | height: h, |
| 54 | width: 'auto', |
| 55 | }} |
| 56 | width={Math.ceil(h * 3)} |
| 57 | /> |
| 58 | ); |
| 59 | }} |
| 60 | speed={40} |
| 61 | /> |
| 62 | </div> |
| 63 | </section> |
| 64 | ); |
| 65 | } |