创建常量配置文件 创建自定义 Hook 创建组件目录 创建 HeroHeader 组件 创建 FeaturedFeatureCard 组件 创建 FeatureCard 组件 创建新的 HomePage.tsx
67 lines
1.5 KiB
TypeScript
67 lines
1.5 KiB
TypeScript
// src/constants/homeFeatures.ts
|
|
// 首页功能特性配置
|
|
|
|
import type { Feature } from '@/types/home';
|
|
|
|
/**
|
|
* 核心功能特性列表
|
|
* 第一个功能为特色功能,会以突出样式显示
|
|
*/
|
|
export const CORE_FEATURES: Feature[] = [
|
|
{
|
|
id: 'news-catalyst',
|
|
title: '新闻中心',
|
|
description: '实时新闻事件分析,捕捉市场催化因子',
|
|
icon: '📊',
|
|
color: 'yellow',
|
|
url: '/community',
|
|
badge: '核心',
|
|
featured: true
|
|
},
|
|
{
|
|
id: 'concepts',
|
|
title: '概念中心',
|
|
description: '热门概念与主题投资分析追踪',
|
|
icon: '🎯',
|
|
color: 'purple',
|
|
url: '/concepts',
|
|
badge: '热门'
|
|
},
|
|
{
|
|
id: 'stocks',
|
|
title: '个股信息汇总',
|
|
description: '全面的个股基本面信息整合',
|
|
icon: '📈',
|
|
color: 'blue',
|
|
url: '/stocks',
|
|
badge: '全面'
|
|
},
|
|
{
|
|
id: 'limit-analyse',
|
|
title: '涨停板块分析',
|
|
description: '涨停板数据深度分析与规律挖掘',
|
|
icon: '🚀',
|
|
color: 'green',
|
|
url: '/limit-analyse',
|
|
badge: '精准'
|
|
},
|
|
{
|
|
id: 'company',
|
|
title: '个股罗盘',
|
|
description: '个股全方位分析与投资决策支持',
|
|
icon: '🧭',
|
|
color: 'orange',
|
|
url: '/company?scode=688256',
|
|
badge: '专业'
|
|
},
|
|
{
|
|
id: 'trading-simulation',
|
|
title: '模拟盘交易',
|
|
description: '100万起始资金,体验真实交易环境',
|
|
icon: '💰',
|
|
color: 'teal',
|
|
url: '/trading-simulation',
|
|
badge: '实战'
|
|
}
|
|
];
|