import React, { useState, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Brain, FileText, Upload, Sparkles, MessageSquare, Plus, ChevronRight } from 'lucide-react'; const HeroAnimation = () => { // Animation States: 'upload' | 'processing' | 'chat' | 'mindmap' const [step, setStep] = useState('upload'); // Cycle through the animation loop useEffect(() => { const sequence = async () => { while (true) { setStep('upload'); await new Promise(r => setTimeout(r, 2000)); // Show upload setStep('processing'); await new Promise(r => setTimeout(r, 1500)); // Show processing setStep('chat'); await new Promise(r => setTimeout(r, 2000)); // Show chat typing setStep('mindmap'); await new Promise(r => setTimeout(r, 4000)); // Show mind map // Reset loop setStep('reset'); await new Promise(r => setTimeout(r, 500)); } }; sequence(); }, []); return (
The Transformer architecture replaces RNNs with self-attention mechanisms.