import { motion } from "framer-motion"; import { Bot, FolderCode, BarChart, ServerCog, FileText, Settings, Network } from "lucide-react"; import { useTranslation } from "@/hooks/useTranslation"; import { Button } from "@/components/ui/button"; import { ClaudiaLogoMinimal } from "@/components/ClaudiaLogo"; import { BorderGlowCard } from "@/components/ui/glow-card"; interface WelcomePageProps { onNavigate: (view: string) => void; onNewSession: () => void; } export function WelcomePage({ onNavigate, onNewSession }: WelcomePageProps) { const { t } = useTranslation(); const mainFeatures = [ { id: "relay-stations", icon: Network, title: t("welcome.relayStationManagement"), subtitle: t("welcome.relayStationManagementDesc"), color: "text-indigo-500", bgColor: "bg-indigo-500/10", view: "relay-stations" }, { id: "agents", icon: Bot, title: t("welcome.agentManagement"), subtitle: t("welcome.agentManagementDesc"), color: "text-orange-500", bgColor: "bg-orange-500/10", view: "cc-agents" }, { id: "projects", icon: FolderCode, title: t("welcome.projectManagement"), subtitle: t("welcome.projectManagementDesc"), color: "text-blue-500", bgColor: "bg-blue-500/10", view: "projects" } ]; const bottomFeatures = [ { id: "usage", icon: BarChart, title: t("welcome.usageStatistics"), subtitle: t("welcome.usageStatisticsDesc"), color: "text-green-500", bgColor: "bg-green-500/10", view: "usage-dashboard" }, { id: "mcp", icon: ServerCog, title: t("welcome.mcpBroker"), subtitle: t("welcome.mcpBrokerDesc"), color: "text-purple-500", bgColor: "bg-purple-500/10", view: "mcp" }, { id: "claude-md", icon: FileText, title: t("welcome.claudeMd"), subtitle: t("welcome.claudeMdDesc"), color: "text-cyan-500", bgColor: "bg-cyan-500/10", view: "editor" }, { id: "settings", icon: Settings, title: t("welcome.settings"), subtitle: t("welcome.settingsDesc"), color: "text-gray-500", bgColor: "bg-gray-500/10", view: "settings" } ]; const handleCardClick = (view: string) => { onNavigate(view); }; const handleButtonClick = () => { onNewSession(); }; return (
{t("app.tagline")}
{feature.subtitle}
{feature.subtitle}