Files
monkey-ai-web/src/pages/WeyAiDownload/WorkbenchPreview.jsx
T

133 lines
3.7 KiB
React
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React from 'react';
import { useTranslation } from 'react-i18next';
import {
ChartNoAxesColumn,
Check,
ChevronUp,
FileText,
LayoutGrid,
Plus,
Search,
Settings,
Zap,
} from 'lucide-react';
import logo from '@/assets/prototype/weyai-workbench-logo.png';
// 结构与尺寸取自桌面原型 `微元优化原型/index.html` 的 WeyAIWorkbenchArt,
// 只做装饰示意,不承载交互;颜色由页面变量按主题色派生。
const WEYAI_BRAND_NAME = 'WeyAI';
export default function WorkbenchPreview() {
const { t } = useTranslation();
const navigation = [
[Plus, t('新建对话'), true],
[FileText, t('我的对话')],
[LayoutGrid, t('模型')],
[Settings, t('工具')],
];
const tools = [
[FileText, t('文档整理')],
[ChartNoAxesColumn, t('数据分析')],
[Search, t('代码协作')],
];
return (
<div className='wd-workbench-art' aria-hidden='true'>
<div className='wd-art-grid' />
<div className='wd-art-orbit' />
<div className='wd-art-window'>
<div className='wd-art-titlebar'>
<div className='wd-window-dots'>
<i />
<i />
<i />
</div>
<span>{t('WeyAI 工作台')}</span>
<span>{t('工具示意')}</span>
</div>
<div className='wd-art-body'>
<div className='wd-art-sidebar'>
<div className='wd-art-brand'>
<img src={logo} alt='' />
{WEYAI_BRAND_NAME}
</div>
{navigation.map(([Icon, label, active]) => (
<span
key={label}
className={`wd-art-nav${active ? ' wd-art-nav-active' : ''}`}
>
<Icon size={15} />
<span>{label}</span>
</span>
))}
<div className='wd-art-sidebar-bottom'>
<span>W</span>
<div>
{t('平台账号')}
<small>{t('已连接')}</small>
</div>
<i />
</div>
</div>
<div className='wd-art-main'>
<div className='wd-art-model'>
<span>
<Zap size={14} />
{t('选择模型')}
</span>
<span>⌄</span>
</div>
<div className='wd-art-welcome'>
<img src={logo} alt='' />
<h3>{t('让想法,在桌面展开')}</h3>
<p>{t('对话、文件与工具,汇聚一处')}</p>
</div>
<div className='wd-art-tools'>
{tools.map(([Icon, label]) => (
<div key={label}>
<Icon size={18} />
<span>{label}</span>
<i />
</div>
))}
</div>
<div className='wd-art-input'>
<span>{t('今天想从哪里开始?')}</span>
<div>
<Plus size={16} />
<span>{t('工具')}</span>
<b>
<ChevronUp size={14} />
</b>
</div>
</div>
</div>
</div>
</div>
<div className='wd-art-float wd-art-file'>
<span>
<FileText size={18} />
</span>
<div>
{t('文件与知识')}
<small>{t('随时整理,随时调用')}</small>
</div>
</div>
<div className='wd-art-float wd-art-task'>
<span>
<Check size={18} />
</span>
<div>
{t('工作流')}
<small>{t('连接日常任务')}</small>
</div>
<div className='wd-art-flow'>
<i />
<i />
<i />
</div>
</div>
</div>
);
}