| | |
| | | "use client"; |
| | | |
| | | import { useState } from 'react'; |
| | | import Sidebar from '@/components/layout/Sidebar'; |
| | | import Card from '@/components/Card'; |
| | | import ChatDialog from '@/components/ChatDialog'; |
| | | import Navbar from '@/components/layout/Navbar'; |
| | | |
| | | const services = [ |
| | | { |
| | |
| | | }; |
| | | |
| | | return ( |
| | | <div className="flex"> |
| | | <Sidebar /> |
| | | <div className="flex-1 p-6 md:p-8 bg-gradient-to-b from-[var(--ai-surface)] to-white"> |
| | | <div className="max-w-7xl mx-auto"> |
| | | <div className="mb-8"> |
| | | <h1 className="text-3xl font-bold text-[var(--ai-primary)] mb-2"> |
| | | AI场景模拟 |
| | | <span className="ml-2 inline-block w-2 h-2 rounded-full bg-[var(--ai-secondary)] animate-pulse"></span> |
| | | </h1> |
| | | <p className="text-gray-600">选择以下场景,体验人工智能如何解决实际业务问题</p> |
| | | <div className="h-1 w-24 bg-gradient-to-r from-[var(--ai-secondary)] to-[var(--ai-accent)] mt-4"></div> |
| | | </div> |
| | | <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
| | | {services.map((service, index) => ( |
| | | <Card |
| | | key={index} |
| | | {...service} |
| | | onClick={() => handleCardClick(service.title, service.chatbotId)} |
| | | /> |
| | | ))} |
| | | <> |
| | | <Navbar /> |
| | | <div className="min-h-screen pt-16"> |
| | | <div className="flex-1 p-6 md:p-8 bg-gradient-to-b from-[var(--ai-surface)] to-white"> |
| | | <div className="max-w-7xl mx-auto"> |
| | | <div className="mb-8"> |
| | | <h1 className="text-3xl font-bold text-[var(--ai-primary)] mb-2"> |
| | | AI场景模拟 |
| | | <span className="ml-2 inline-block w-2 h-2 rounded-full bg-[var(--ai-secondary)] animate-pulse"></span> |
| | | </h1> |
| | | <p className="text-gray-600">选择以下场景,体验人工智能如何解决实际业务问题</p> |
| | | <div className="h-1 w-24 bg-gradient-to-r from-[var(--ai-secondary)] to-[var(--ai-accent)] mt-4"></div> |
| | | </div> |
| | | <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
| | | {services.map((service, index) => ( |
| | | <Card |
| | | key={index} |
| | | {...service} |
| | | onClick={() => handleCardClick(service.title, service.chatbotId)} |
| | | /> |
| | | ))} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <ChatDialog |
| | | isOpen={isChatOpen} |
| | | onClose={() => setIsChatOpen(false)} |
| | | chatbotId={currentChatbot} |
| | | /> |
| | | </div> |
| | | <ChatDialog |
| | | isOpen={isChatOpen} |
| | | onClose={() => setIsChatOpen(false)} |
| | | chatbotId={currentChatbot} |
| | | /> |
| | | </div> |
| | | </> |
| | | ); |
| | | } |