'use client' import { motion } from 'framer-motion' import { Github, ArrowRight, FileText, Bot, Download } from 'lucide-react' import { useRouter } from 'next/navigation' import Link from 'next/link' import UrlInput from './UrlInput' const QUICK_TRY = [ { name: 'DeFiLlama', url: 'https://api-docs.defillama.com' }, { name: 'Axiom', url: 'https://docs.axiom.trade' }, { name: 'Mintlify', url: 'https://mintlify.com' }, { name: 'Cursor', url: 'https://cursor.com' }, ] export default function Hero() { const router = useRouter() const handleSubmit = (url: string) => { router.push(`/extract?url=${encodeURIComponent(url)}`) } const handleQuickTry = (url: string) => { router.push(`/extract?url=${encodeURIComponent(url)}`) } return (
{/* Badge - Moved up, closer to header */} Free & Open Source {/* Main heading */} Extract Documentation for AI Agents {/* Short subheadline */} Extract llms.txt and install.md from any documentation site {/* URL Input - PROMINENT, centerpiece */} {/* Quick try buttons */} Try: {QUICK_TRY.map((site, i) => ( ))} {/* Feature pills - small, muted */} Auto-detects llms.txt Organized markdown Agent-ready format {/* Longer description - moved down with spacing */} Instantly fetch and organize documentation into downloadable markdown documents ready for Claude, ChatGPT, and other AI assistants. {/* Action buttons */} How It Works View on GitHub {/* Key features - visual summary */} {[ { icon: FileText, label: 'Fetches llms.txt', desc: 'Automatic discovery' }, { icon: Bot, label: 'Agent-ready output', desc: 'Organized markdown files' }, { icon: Download, label: 'One-click download', desc: 'Individual or ZIP bundle' }, ].map((item, i) => (
{item.label}
{item.desc}
))}
) }