feat: homets 化 创建类型定义文件

创建常量配置文件
 创建自定义 Hook

 创建组件目录
创建 HeroHeader 组件
创建 FeaturedFeatureCard 组件
创建 FeatureCard 组件
创建新的 HomePage.tsx
This commit is contained in:
zdl
2025-11-25 14:44:46 +08:00
parent c771f7cae6
commit 03f1331202
9 changed files with 640 additions and 379 deletions

33
src/types/home.ts Normal file
View File

@@ -0,0 +1,33 @@
// src/types/home.ts
// HomePage 相关类型定义
/**
* 功能特性配置
*/
export interface Feature {
id: string;
title: string;
description: string;
icon: string;
color: string;
url: string;
badge: string;
featured?: boolean;
}
/**
* 响应式配置
*/
export interface ResponsiveConfig {
heroHeight: string | undefined;
headingSize: string | undefined;
headingLetterSpacing: string | undefined;
heroTextSize: string | undefined;
containerPx: number | undefined;
showDecorations: boolean | undefined;
}
/**
* 功能卡片点击处理函数类型
*/
export type FeatureClickHandler = (feature: Feature) => void;