feat: homets 化 创建类型定义文件
创建常量配置文件 创建自定义 Hook 创建组件目录 创建 HeroHeader 组件 创建 FeaturedFeatureCard 组件 创建 FeatureCard 组件 创建新的 HomePage.tsx
This commit is contained in:
33
src/types/home.ts
Normal file
33
src/types/home.ts
Normal 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;
|
||||
Reference in New Issue
Block a user