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:
1 parent
73788ad2d2
commit
3539cb04e9
15 files changed
+911
-2766
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user