-
-
- Deploy now
-
-
- Read our docs
-
+// 模块级注释:特性数据接口
+interface FeatureType {
+ title: string;
+ description: string;
+ icon: React.ReactNode;
+ color: string;
+}
+
+// 模块级注释:核心特性数据
+const coreFeatures = [
+ {
+ title: '智能多租户架构',
+ description: '企业级数据隔离,确保每个团队的数据安全独立,支持灵活的权限管理和资源分配',
+ icon:
,
+ },
+ {
+ title: '实时数据洞察',
+ description: '强大的数据分析引擎,提供实时业务指标监控,智能预警和趋势分析',
+ icon:
,
+ },
+ {
+ title: '无缝团队协作',
+ description: '集成化协作平台,支持实时消息、任务管理、文档共享和视频会议',
+ icon:
,
+ },
+ {
+ title: '企业级安全',
+ description: 'SOC2认证的安全架构,端到端加密,支持SSO和多因素认证',
+ icon:
,
+ }
+];
+
+// 模块级注释:统计数据
+const statsData = [
+ {
+ title: '全球企业用户',
+ value: 50000,
+ suffix: '+',
+ prefix: '',
+ icon:
,
+ color: '#667eea',
+ growth: '+127%',
+ },
+ {
+ title: '月活跃团队',
+ value: 12543,
+ suffix: '',
+ prefix: '',
+ icon:
,
+ color: '#f093fb',
+ growth: '+23.6%',
+ },
+ {
+ title: 'API调用次数',
+ value: 98.7,
+ suffix: 'M',
+ prefix: '',
+ icon:
,
+ color: '#4facfe',
+ growth: '+45.2%',
+ },
+ {
+ title: '系统可用性',
+ value: 99.9,
+ suffix: '%',
+ prefix: '',
+ icon:
,
+ color: '#06d7b2',
+ growth: '99.9%',
+ }
+];
+
+// 模块级注释:技术栈特性数据
+const techFeatures: FeatureType[] = [
+ {
+ title: 'React 19',
+ description: '使用最新的 React 19 特性构建现代化应用',
+ icon:
,
+ color: '#2d7ff9',
+ },
+ {
+ title: 'Next.js 15',
+ description: '基于 Next.js 15 的强大全栈框架',
+ icon:
,
+ color: '#06d7b2',
+ },
+ {
+ title: 'Ant Design 5',
+ description: '使用 Ant Design 5.x 构建优雅的用户界面',
+ icon:
,
+ color: '#ff9640',
+ },
+ {
+ title: 'TypeScript',
+ description: '完整的 TypeScript 支持,提供类型安全',
+ icon:
,
+ color: '#8e6bff',
+ },
+];
+
+export default function HomePage(): React.ReactElement {
+ // 关键代码行注释:状态管理 - 使用_app.tsx的useTheme Hook确保mounted状态
+ const { isDark, toggleTheme, mounted, isTransitioning } = useTheme(); // 关键代码行注释:解构获取所需的状态
+ const { message, notification, modal } = App.useApp();
+
+ // 关键代码行注释:如果还未挂载,显示加载状态避免闪烁
+ if (!mounted) {
+ return
;
+ }
+
+ // 模块级注释:事件处理函数
+ const handleStartClick = (): void => {
+ message.success('欢迎使用现代化私域管理系统!');
+ };
+
+ const handleLearnMoreClick = (): void => {
+ notification.info({
+ message: '了解更多',
+ description: '感谢您对我们平台的关注。更多功能正在开发中,敬请期待!',
+ placement: 'topRight',
+ });
+ };
+
+ const handleHelpClick = (): void => {
+ modal.info({
+ title: '帮助中心',
+ content: (
+
+
欢迎使用帮助中心!
+
如果您有任何问题,请随时联系我们。
+
技术支持:support@example.com
-
-
-
+ ),
+ });
+ };
+
+ return (
+