Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: fix small UI issues across docs site
Sushmithamallesh8700f1e5529d
diff --git a/docs/app/error.tsx b/docs/app/error.tsxnew file mode 100644index 000000000..1b97d29ac--- /dev/null+++ b/docs/app/error.tsx@@ -0,0 +1,45 @@+'use client';++import Link from 'next/link';++export default function Error({+ reset,+}: {+ error: Error & { digest?: string };+ reset: () => void;+}) {+ return (+ <div className="flex min-h-[85vh] flex-col items-center justify-center px-4">+ <div className="relative">+ <div className="absolute -inset-4 rounded-full bg-gradient-to-r from-fd-primary/20 via-fd-primary/5 to-transparent blur-2xl" />+ <h1 className="relative text-[120px] sm:text-[150px] font-bold leading-none tracking-tighter text-fd-foreground/10 select-none">+ 500+ </h1>+ </div>++ <div className="mt-2 text-center max-w-md">+ <h2 className="text-xl font-semibold text-fd-foreground">+ Something went wrong+ </h2>+ <p className="mt-2 text-fd-muted-foreground text-sm">+ An unexpected error occurred. Try again or head back to the docs.+ </p>+ </div>++ <div className="mt-8 flex flex-wrap justify-center gap-3">+ <button+ onClick={reset}+ className="inline-flex items-center gap-2 rounded-lg bg-fd-primary px-4 py-2 text-sm font-medium text-fd-primary-foreground transition-colors hover:bg-fd-primary/90"+ >+ Try again+ </button>+ <Link+ href="/"+ className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-4 py-2 text-sm font-medium transition-colors hover:bg-fd-accent"+ >+ Home+ </Link>+ </div>+ </div>+ );+}diff --git a/docs/app/global-error.tsx b/docs/app/global-error.tsxnew file mode 100644index 000000000..7a5961f33--- /dev/null+++ b/docs/app/global-error.tsx@@ -0,0 +1,42 @@+'use client';++export default function GlobalError({+ reset,+}: {+ error: Error & { digest?: string };+ reset: () => void;+}) {+ return (+ <html lang="en">+ <body style={{ margin: 0, fontFamily: 'Inter, system-ui, sans-serif' }}>+ <div style={{ display: 'flex', minHeight: '100vh', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', padding: '1rem' }}>+ <h1 style={{ fontSize: '6rem', fontWeight: 700, letterSpacing: '-0.05em', color: 'rgba(0,0,0,0.1)', margin: 0, lineHeight: 1 }}>+ 500+ </h1>+ <div style={{ marginTop: '0.5rem', textAlign: 'center', maxWidth: '28rem' }}>+ <h2 style={{ fontSize: '1.25rem', fontWeight: 600, margin: 0 }}>+ Something went wrong+ </h2>+ <p style={{ marginTop: '0.5rem', color: '#666', fontSize: '0.875rem' }}>+ An unexpected error occurred. Try again or head back to the docs.+ </p>+ </div>+ <div style={{ marginTop: '2rem', display: 'flex', gap: '0.75rem' }}>+ <button+ onClick={reset}+ style={{ padding: '0.5rem 1rem', fontSize: '0.875rem', fontWeight: 500, borderRadius: '0.5rem', border: 'none', background: '#171414', color: '#fff', cursor: 'pointer' }}+ >+ Try again+ </button>+ <a+ href="/"+ style={{ padding: '0.5rem 1rem', fontSize: '0.875rem', fontWeight: 500, borderRadius: '0.5rem', border: '1px solid #e5e0df', background: '#fff', color: '#171414', textDecoration: 'none' }}+ >+ Home+ </a>+ </div>+ </div>+ </body>+ </html>+ );+}diff --git a/docs/app/global.css b/docs/app/global.cssindex b5165c680..a6cca754d 100644--- a/docs/app/global.css+++ b/docs/app/global.css@@ -66,6 +66,21 @@Design Tokens========================================================================== */+/* ==========================================================================+ Global Defaults+ ========================================================================== */++html {+ scroll-behavior: smooth;+ -webkit-tap-highlight-color: transparent;+}++@media (prefers-reduced-motion: reduce) {+ html {+ scroll-behavior: auto;+ }+}+:root {/* Brand */--composio-orange: #ea580c;diff --git a/docs/components/toolkits/toolkit-detail.tsx b/docs/components/toolkits/toolkit-detail.tsxindex 319681a1f..848990bda 100644--- a/docs/components/toolkits/toolkit-detail.tsx+++ b/docs/components/toolkits/toolkit-detail.tsx@@ -267,6 +267,7 @@ export function ToolkitDetail({ toolkit, tools, triggers, path }: ToolkitDetailP<Linkhref={`https://platform.composio.dev/auth?next_page=${encodeURIComponent(`/tool-router?toolkits=${toolkit.slug}`)}`}target="_blank"+ rel="noopener noreferrer"className="inline-flex items-center gap-1.5 rounded-md border border-orange-500/30 bg-orange-500/10 px-3 py-1.5 text-sm font-medium text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400">Try {(toolkit.name?.trim() || toolkit.slug)}