refactor: optimize project structure and clean up code

- Split Banner.tsx into reusable components (Header, Footer, NavCard)
- Extract custom hooks: useTypewriter, useParallax
- Separate navigation data from components into data/navigation.ts
- Add TypeScript types (NavItem) for type safety
- Configure @ path alias in tsconfig.app.json for consistency
- Remove unused dependencies: radix-ui, react-helmet-async
- Organize components into layout/ and ui/ directories
This commit is contained in:
xiaozhou233 committed 2026-07-26 08:07:24 +08:00
1 parent 73788ad2d2
commit 3539cb04e9
15 files changed
+911 -2766

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import type { LucideIcon } from "lucide-react";
export interface NavItem {
name: string;
desc: string;
path: string;
Icon: LucideIcon;
color: string;
borderHover: string;
}