Skip to content

Commit c0bfb3f

Browse files
committed
style(onboarding): 硬编码 AI 色板换令牌色(主色/琥珀/晨空蓝)
1 parent 7071149 commit c0bfb3f

3 files changed

Lines changed: 22 additions & 13 deletions

File tree

‎client/src/components/onboarding/help/ModuleGuideTab.tsx‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface ModuleInfo {
1616

1717
const MODULES: ModuleInfo[] = [
1818
{
19-
color: 'bg-indigo-500',
19+
color: 'bg-brand-500',
2020
name: '仪表盘',
2121
description: '学习数据的可视化中心,展示学习时长、效率趋势、模块使用分布等关键指标。',
2222
scenarios: '查看每日/周学习报告,了解学习进度与效率变化。',
@@ -44,19 +44,26 @@ const MODULES: ModuleInfo[] = [
4444
aiCapability: 'AI 自动从笔记生成记忆卡片,智能调整复习间隔。',
4545
},
4646
{
47-
color: 'bg-cyan-500',
47+
color: 'bg-cyber',
4848
name: '浮出水面(费曼)',
4949
description: '费曼学习法实践工具,用自己的话解释概念,发现知识盲区。',
5050
scenarios: '检验理解深度、考前自测、向他人讲解前准备。',
5151
aiCapability: 'AI 扮演听众,指出解释中的逻辑漏洞与遗漏。',
5252
},
5353
{
54-
color: 'bg-purple-500',
54+
color: 'bg-accent-500',
5555
name: '灵感',
5656
description: '灵感收集与知识关联网络,捕捉学习中的灵感瞬间,建立知识间联系。',
5757
scenarios: '头脑风暴、跨学科关联、创意记录。',
5858
aiCapability: 'AI 发现知识点间的隐含关联,推荐相关内容。',
5959
},
60+
{
61+
color: 'bg-lime-500',
62+
name: '标准作业(SOP)',
63+
description: '标准作业流程:把可复用的学习流程固化为模板,按步骤逐步执行并推进。',
64+
scenarios: '固定学习流程(预习-听课-复习)、周复盘仪式、长任务拆解。',
65+
aiCapability: 'AI 校验模板步骤完整性(lint),流程可导出/导入分享。',
66+
},
6067
];
6168

6269
function ModuleCard({ module }: { module: ModuleInfo }) {

‎client/src/components/onboarding/help/QuickStartTab.tsx‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import { Compass, RotateCw, MousePointerClick, ScrollText } from 'lucide-react';
77
import { useOnboardingStore } from '../useOnboardingStore';
88

99
const MODULES = [
10-
{ color: 'bg-indigo-500', name: '仪表盘', desc: '学习概览与数据统计' },
10+
{ color: 'bg-brand-500', name: '仪表盘', desc: '学习概览与数据统计' },
1111
{ color: 'bg-rose-500', name: '深潜', desc: '番茄钟专注与休息提醒' },
1212
{ color: 'bg-emerald-500', name: '结礁', desc: '学习笔记管理与富文本编辑' },
1313
{ color: 'bg-amber-500', name: '反衰减呼吸', desc: '间隔重复记忆卡片' },
14-
{ color: 'bg-cyan-500', name: '浮出水面', desc: '费曼学习法输出练习' },
15-
{ color: 'bg-purple-500', name: '灵感', desc: '灵感收集与知识关联' },
14+
{ color: 'bg-amber', name: '浮出水面', desc: '费曼学习法输出练习' },
15+
{ color: 'bg-accent-500', name: '灵感', desc: '灵感收集与知识关联' },
16+
{ color: 'bg-lime-500', name: '标准作业', desc: 'SOP 流程模板与执行' },
1617
];
1718

1819
export function QuickStartTab() {
@@ -32,7 +33,7 @@ export function QuickStartTab() {
3233
{/* 3D 导航说明 */}
3334
<section>
3435
<h3 className="text-lg font-semibold text-white/90 mb-4 flex items-center gap-2">
35-
<Compass className="w-5 h-5 text-indigo-400" />
36+
<Compass className="w-5 h-5 text-brand-400" />
3637
3D 导航
3738
</h3>
3839
<div className="grid grid-cols-1 sm:grid-cols-3 gap-3">
@@ -45,7 +46,7 @@ export function QuickStartTab() {
4546
key={item.label}
4647
className="flex items-start gap-3 p-3 rounded-xl bg-white/5 border border-white/10"
4748
>
48-
<item.icon className="w-5 h-5 text-indigo-300 mt-0.5 shrink-0" />
49+
<item.icon className="w-5 h-5 text-brand-300 mt-0.5 shrink-0" />
4950
<div>
5051
<p className="text-sm font-medium text-white/80">{item.label}</p>
5152
<p className="text-xs text-white/50">{item.desc}</p>
@@ -75,7 +76,7 @@ export function QuickStartTab() {
7576
<section className="pt-2">
7677
<button
7778
onClick={handleReplayGuide}
78-
className="px-5 py-2.5 rounded-xl bg-indigo-500/20 hover:bg-indigo-500/30 border border-indigo-400/30 text-indigo-200 text-sm font-medium transition-colors"
79+
className="px-5 py-2.5 rounded-xl bg-brand-500/20 hover:bg-brand-500/30 border border-brand-400/30 text-brand-200 text-sm font-medium transition-colors"
7980
>
8081
重新播放引导
8182
</button>

‎client/src/lib/3d/scenes/MobileNavGrid.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@
88
*/
99
import { useNavigate, useLocation } from 'react-router-dom';
1010
import { motion } from 'framer-motion';
11-
import { Timer, FileText, Layers, Lightbulb, Sparkles, Clapperboard, BarChart3, Orbit } from 'lucide-react';
11+
import { Timer, FileText, Layers, Lightbulb, Sparkles, Clapperboard, BarChart3, Orbit, ListChecks } from 'lucide-react';
1212
import { cn } from '@/lib/utils';
1313
import { soundPlayer } from '@/lib/audio/SoundPlayer';
1414
import { useIsNewbiePhase } from '@/features/onboarding/firstDive/useFirstDiveStore';
1515
import { getModuleSubtitle } from '@/features/onboarding/firstDive/moduleSubtitles';
1616

1717
const modules = [
18-
{ id: 'dashboard', label: '首页', route: '/', icon: BarChart3, color: 'from-indigo-500/20 to-indigo-600/10', iconColor: 'text-indigo-400' },
18+
{ id: 'dashboard', label: '首页', route: '/', icon: BarChart3, color: 'from-brand-500/20 to-brand-600/10', iconColor: 'text-brand-400' },
1919
{ id: 'pomodoro', label: '深潜', route: '/pomodoro', icon: Timer, color: 'from-orange-500/20 to-orange-600/10', iconColor: 'text-orange-400' },
20-
{ id: 'notes', label: '结礁', route: '/notes', icon: FileText, color: 'from-blue-500/20 to-blue-600/10', iconColor: 'text-blue-400' },
20+
{ id: 'notes', label: '结礁', route: '/notes', icon: FileText, color: 'from-accent-500/20 to-accent-600/10', iconColor: 'text-accent-400' },
2121
{ id: 'flashcards', label: '闪卡', route: '/flashcards', icon: Layers, color: 'from-emerald-500/20 to-emerald-600/10', iconColor: 'text-emerald-400' },
22-
{ id: 'feynman', label: '费曼', route: '/feynman', icon: Lightbulb, color: 'from-violet-500/20 to-violet-600/10', iconColor: 'text-violet-400' },
22+
{ id: 'feynman', label: '费曼', route: '/feynman', icon: Lightbulb, color: 'from-amber/20 to-amber/10', iconColor: 'text-amber' },
2323
{ id: 'inspiration', label: '萤火海沟', route: '/inspiration', icon: Sparkles, color: 'from-pink-500/20 to-pink-600/10', iconColor: 'text-pink-400' },
2424
{ id: 'classroom', label: '回声定位', route: '/classroom', icon: Clapperboard, color: 'from-teal-500/20 to-teal-600/10', iconColor: 'text-teal-400' },
2525
{ id: 'constellation', label: '星座大厅', route: '/constellation', icon: Orbit, color: 'from-amber-500/20 to-amber-600/10', iconColor: 'text-amber-400' },
26+
{ id: 'sop', label: '标准作业', route: '/sop', icon: ListChecks, color: 'from-lime-500/20 to-lime-600/10', iconColor: 'text-lime-400' },
2627
];
2728

2829
const containerVariants = {

0 commit comments

Comments
 (0)