import React from 'react'; import { motion } from 'framer-motion'; import FileUploader from './FileUploader'; import { DocumentTextIcon, ChatBubbleBottomCenterTextIcon, LightBulbIcon, AcademicCapIcon } from '@heroicons/react/24/outline'; const WelcomeScreen = ({ onStartChat, onNewChat, darkMode }) => { const suggestions = [ "What is depreciation in accounting?", "Explain the concept of working capital", "What are the different types of financial statements?", "How do you calculate return on investment?" ]; const features = [ { icon: DocumentTextIcon, title: "Upload Documents", description: "Upload PDFs, Word docs, and text files for instant analysis" }, { icon: ChatBubbleBottomCenterTextIcon, title: "Ask Questions", description: "Get detailed answers based on your uploaded study materials" }, { icon: LightBulbIcon, title: "Smart Insights", description: "AI-powered explanations tailored for CA exam preparation" } ]; return (
{/* Hero Section */}

CA Study Assistant

Upload your study materials and get instant, intelligent answers

Start New Conversation
{/* Features */} {features.map((feature, index) => (

{feature.title}

{feature.description}

))}
{/* File Upload Section */}

Upload Your Study Materials

{/* Suggestion Pills */}

Try asking:

{suggestions.map((suggestion, index) => ( onStartChat(suggestion)} className={`px-4 py-2 rounded-full text-sm font-medium transition-colors ${ darkMode ? 'bg-gray-800 hover:bg-gray-700 text-gray-300 border-gray-700' : 'bg-gray-100 hover:bg-gray-200 text-gray-700 border-gray-300' } border`} > {suggestion} ))}
); }; export default WelcomeScreen;