|
1 | | -# CodeHubX |
| 1 | +# React + TypeScript + Vite |
2 | 2 |
|
3 | | -[](https://siddhu123m.github.io/CodehubX/) |
4 | | -[](https://reactjs.org/) |
5 | | -[](https://vitejs.dev/) |
| 3 | +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. |
6 | 4 |
|
7 | | -A stunning, modern web application featuring a completely redesigned professional interface with animated gradients, card-based layouts, and smooth micro-interactions. Discover 500+ carefully curated developer tools, AI resources, and free platforms across 7 categories. |
| 5 | +Currently, two official plugins are available: |
8 | 6 |
|
9 | | -## ✨ Key Features |
| 7 | +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh |
| 8 | +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh |
10 | 9 |
|
11 | | -- **🎨 Modern Card-Based Design** - Beautiful gradient cards with hover animations and smooth transitions |
12 | | -- **🔍 Real-Time Search** - Instant search across all categories and tools with live filtering |
13 | | -- **🌈 Animated Hero Section** - Eye-catching gradient blobs with floating animations |
14 | | -- **🌓 Dark/Light Themes** - Seamless theme switching with localStorage persistence |
15 | | -- **⚡ Lightning Fast** - Optimized build with 355KB total bundle size |
16 | | -- **📱 Fully Responsive** - Perfect experience on mobile, tablet, and desktop |
17 | | -- **🎭 Smooth Animations** - Framer Motion powered transitions and micro-interactions |
18 | | -- **🎯 Intuitive Navigation** - Clean navbar with minimal, professional design |
19 | | -- **💳 Tool Cards** - Individual cards for each tool with external link indicators |
20 | | -- **🚀 Optimized Performance** - Single-bundle architecture for faster loading |
| 10 | +## React Compiler |
21 | 11 |
|
22 | | -## 🛠️ Technology Stack |
| 12 | +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). |
23 | 13 |
|
24 | | -- **React 19** - Latest React with modern hooks |
25 | | -- **TypeScript** - Full type safety |
26 | | -- **Vite** - Ultra-fast build tool |
27 | | -- **React Router** - Client-side routing |
28 | | -- **Framer Motion** - Smooth animations and transitions |
29 | | -- **Lucide React** - Beautiful, consistent icons |
| 14 | +## Expanding the ESLint configuration |
30 | 15 |
|
31 | | -## 🎨 Design Features |
| 16 | +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: |
32 | 17 |
|
33 | | -- Animated gradient blobs in hero section |
34 | | -- Card-based category layout with hover effects |
35 | | -- Gradient text effects and borders |
36 | | -- Smooth page transitions |
37 | | -- Micro-interactions on all interactive elements |
38 | | -- Professional color scheme (dark/light modes) |
39 | | -- Modern typography and spacing |
40 | | -- Box shadows and depth effects |
| 18 | +```js |
| 19 | +export default defineConfig([ |
| 20 | + globalIgnores(['dist']), |
| 21 | + { |
| 22 | + files: ['**/*.{ts,tsx}'], |
| 23 | + extends: [ |
| 24 | + // Other configs... |
41 | 25 |
|
42 | | -## 📁 Project Structure |
| 26 | + // Remove tseslint.configs.recommended and replace with this |
| 27 | + tseslint.configs.recommendedTypeChecked, |
| 28 | + // Alternatively, use this for stricter rules |
| 29 | + tseslint.configs.strictTypeChecked, |
| 30 | + // Optionally, add this for stylistic rules |
| 31 | + tseslint.configs.stylisticTypeChecked, |
43 | 32 |
|
| 33 | + // Other configs... |
| 34 | + ], |
| 35 | + languageOptions: { |
| 36 | + parserOptions: { |
| 37 | + project: ['./tsconfig.node.json', './tsconfig.app.json'], |
| 38 | + tsconfigRootDir: import.meta.dirname, |
| 39 | + }, |
| 40 | + // other options... |
| 41 | + }, |
| 42 | + }, |
| 43 | +]) |
44 | 44 | ``` |
45 | | -CodehubX/ |
46 | | -├── assets/ |
47 | | -│ ├── index-CoPamAmI.css # Compiled styles (12KB) |
48 | | -│ └── index-DxNLit1R.js # Single optimized bundle (356KB) |
49 | | -├── data/ # Markdown content files |
50 | | -├── 404.html # GitHub Pages SPA routing |
51 | | -└── index.html # Entry point |
52 | | -``` |
53 | | - |
54 | | -## 📂 Categories |
55 | | - |
56 | | -- **🤖 AI Resources** - Cutting-edge AI tools and libraries |
57 | | -- **🎬 Entertainment** - Best platforms for entertainment |
58 | | -- **⚠️ Piracy Resources** - Access tools and websites |
59 | | -- **📚 Free Resources** - Educational and professional resources |
60 | | -- **💻 GitHub Repositories** - Valuable repositories for developers |
61 | | -- **🛠️ Developer Tools** - Development and design tools |
62 | | -- **🎭 Identity Tools** - Temporary identity management |
63 | | - |
64 | | -## 🚀 Performance |
65 | | - |
66 | | -- Single optimized JavaScript bundle (356KB) |
67 | | -- Minimal CSS (12KB) |
68 | | -- No external dependencies loaded |
69 | | -- Fast First Contentful Paint |
70 | | -- Smooth 60fps animations |
71 | | -- Optimized for Core Web Vitals |
72 | | - |
73 | | -## 📱 Responsive Design |
74 | | - |
75 | | -- Mobile-first approach |
76 | | -- Breakpoints for all device sizes |
77 | | -- Touch-friendly interface |
78 | | -- Optimized mobile navigation |
79 | | -- Adaptive layouts |
80 | 45 |
|
81 | | -## 🌐 Browser Support |
82 | | - |
83 | | -- Chrome (latest) |
84 | | -- Firefox (latest) |
85 | | -- Safari (latest) |
86 | | -- Edge (latest) |
87 | | - |
88 | | -## 📝 License |
89 | | - |
90 | | -Open source project for the developer community. |
91 | | - |
92 | | -## 📧 Contact |
93 | | - |
94 | | -Report broken links or suggest new tools: [codehubx.work@gmail.com](mailto:codehubx.work@gmail.com) |
| 46 | +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: |
| 47 | + |
| 48 | +```js |
| 49 | +// eslint.config.js |
| 50 | +import reactX from 'eslint-plugin-react-x' |
| 51 | +import reactDom from 'eslint-plugin-react-dom' |
| 52 | + |
| 53 | +export default defineConfig([ |
| 54 | + globalIgnores(['dist']), |
| 55 | + { |
| 56 | + files: ['**/*.{ts,tsx}'], |
| 57 | + extends: [ |
| 58 | + // Other configs... |
| 59 | + // Enable lint rules for React |
| 60 | + reactX.configs['recommended-typescript'], |
| 61 | + // Enable lint rules for React DOM |
| 62 | + reactDom.configs.recommended, |
| 63 | + ], |
| 64 | + languageOptions: { |
| 65 | + parserOptions: { |
| 66 | + project: ['./tsconfig.node.json', './tsconfig.app.json'], |
| 67 | + tsconfigRootDir: import.meta.dirname, |
| 68 | + }, |
| 69 | + // other options... |
| 70 | + }, |
| 71 | + }, |
| 72 | +]) |
| 73 | +``` |
0 commit comments