@@ -3,75 +3,102 @@ import { VSCodeTabs, Minimap } from './components/VSCodeTabs';
33import ProjectDetails from './components/ProjectDetails' ;
44import ContactSection from './components/ContactSection' ;
55import GithubStats from './components/GithubStats' ;
6+ import HomeSection from './components/HomeSection' ;
67import {
78 Folder , ChevronRight , ChevronDown , Code , Home ,
8- Mail , FolderOpen , Sun , Moon
9+ Mail , FolderOpen , Sun , Moon , User
910} from 'lucide-react' ;
1011
1112const App = ( ) => {
1213 const [ isExpanded , setIsExpanded ] = useState ( true ) ;
13- const [ activeTab , setActiveTab ] = useState ( 'dashboard ' ) ;
14+ const [ activeTab , setActiveTab ] = useState ( 'home ' ) ;
1415 const [ isDark , setIsDark ] = useState ( true ) ;
1516
16- const githubStats = {
17- commits : 523 ,
18- stars : 128 ,
19- forks : 34 ,
20- views : 1243 ,
21- languages : {
22- JavaScript : 45 ,
23- TypeScript : 30 ,
24- Python : 15 ,
25- CSS : 10
26- }
27- } ;
28-
2917 const projects = [
3018 {
3119 name : 'Cat Finding 2024' ,
3220 tech : 'React Native, Node.js, MongoDB' ,
3321 description : 'A mobile application to help locate and rescue stray cats' ,
22+ year : '2024' ,
3423 timeline : [
35- { date : 'January 2024' , update : 'Initial Release' } ,
36- { date : 'February 2024' , update : 'Added real-time location tracking ' } ,
37- { date : 'March 2024' , update : 'Implemented community features' } ,
38- { date : 'April 2024' , update : 'Added cat recognition AI ' }
24+ { date : 'January 2024' , update : 'Initial Release with basic cat location tracking ' } ,
25+ { date : 'February 2024' , update : 'Added real-time location updates and notifications ' } ,
26+ { date : 'March 2024' , update : 'Implemented community features and chat system ' } ,
27+ { date : 'April 2024' , update : 'Integrated AI-powered cat recognition and health assessment ' }
3928 ] ,
4029 tags : [ 'mobile' , 'web' , 'ai' ] ,
41- github : 'https://github.com/yourusername/cat-finding' ,
42- demo : 'https://cat-finding-demo.com' ,
30+ github : 'https://github.com/hnaamdev41/cat-finding' ,
31+ images : [
32+ '/assets/cat-finding-1.jpg' ,
33+ '/assets/cat-finding-2.jpg'
34+ ] ,
4335 status : 'active'
4436 } ,
4537 {
4638 name : 'Pokemon Telegram Bot' ,
4739 tech : 'Python, Telegram API, JSON' ,
48- description : 'A Telegram bot that provides Pokemon information and features' ,
40+ description : 'A comprehensive Telegram bot that provides Pokemon information, battle simulation, and team building features' ,
4941 year : '2023' ,
5042 tags : [ 'bot' , 'ai' ] ,
51- github : 'https://github.com/yourusername/pokemon-bot' ,
43+ github : 'https://github.com/hnaamdev41/pokemon-bot' ,
44+ images : [
45+ '/assets/pokemon-1.jpg' ,
46+ '/assets/pokemon-2.jpg'
47+ ] ,
5248 status : 'completed'
5349 } ,
5450 {
5551 name : 'Solo Levelling RPG Game' ,
5652 tech : 'Python, Discord API, JSON' ,
57- description : 'A Discord-based RPG game inspired by Solo Levelling manhwa' ,
53+ description : 'A Discord-based RPG game inspired by Solo Levelling manhwa, featuring character progression, monster hunting, and guild systems ' ,
5854 year : '2021' ,
5955 tags : [ 'game' , 'bot' ] ,
60- github : 'https://github.com/yourusername/solo-level' ,
56+ github : 'https://github.com/hnaamdev41/solo-level' ,
57+ images : [
58+ '/assets/solo-1.jpg' ,
59+ '/assets/solo-2.jpg'
60+ ] ,
6161 status : 'completed'
6262 } ,
6363 {
6464 name : 'Custom ROM Development' ,
6565 tech : 'Android, Java, Shell Scripting' ,
66- description : 'Custom Android ROM development with enhanced features' ,
67- year : '2021' ,
66+ description : 'Custom Android ROM development focusing on performance optimization, battery life improvement, and enhanced user experience. Custom ROMs are modified versions of Android that offer additional features, better performance, and more customization options compared to stock Android. ' ,
67+ year : '2021-2024 ' ,
6868 tags : [ 'mobile' , 'system' ] ,
69- github : 'https://github.com/yourusername/custom-rom' ,
70- status : 'archived'
69+ github : 'https://github.com/hnaamdev41/android_device_xiaomi_violet' ,
70+ images : [
71+ '/assets/rom-1.jpg' ,
72+ '/assets/rom-2.jpg'
73+ ] ,
74+ status : 'active' ,
75+ devices : [
76+ {
77+ name : 'Redmi Note 7 Pro' ,
78+ codename : 'violet' ,
79+ repo : 'https://github.com/hnaamdev41/android_device_xiaomi_violet'
80+ } ,
81+ {
82+ name : 'Poco X3' ,
83+ codename : 'surya/karna' ,
84+ repo : 'https://github.com/hnaamdev41/android_device_xiaomi_surya'
85+ } ,
86+ {
87+ name : 'Redmi Note 8 Pro' ,
88+ codename : 'begonia' ,
89+ repo : 'https://github.com/hnaamdev41/android_device_xiaomi_begonia'
90+ } ,
91+ {
92+ name : 'Poco F3/Mi 11x' ,
93+ codename : 'alioth/aliothin' ,
94+ repo : 'https://github.com/hnaamdev41/android_device_xiaomi_alioth'
95+ }
96+ ]
7197 }
7298 ] ;
7399
74100 const [ tabs , setTabs ] = useState ( [
101+ { id : 'home' , title : 'Home' , type : 'home' } ,
75102 { id : 'dashboard' , title : 'Dashboard' , type : 'dashboard' }
76103 ] ) ;
77104
@@ -108,8 +135,10 @@ const App = () => {
108135 }
109136
110137 switch ( activeTab ) {
138+ case 'home' :
139+ return < HomeSection isDark = { isDark } /> ;
111140 case 'dashboard' :
112- return < GithubStats stats = { githubStats } isDark = { isDark } /> ;
141+ return < GithubStats isDark = { isDark } /> ;
113142 case 'contact' :
114143 return < ContactSection isDark = { isDark } /> ;
115144 default :
@@ -118,7 +147,7 @@ const App = () => {
118147 } ;
119148
120149 return (
121- < div className = { `h-screen ${ isDark ? 'bg-gray-900' : 'bg-white' } ${ isDark ? 'text-gray-300' : 'text-gray-800' } ` } >
150+ < div className = { `min- h-screen ${ isDark ? 'bg-gray-900' : 'bg-white' } ${ isDark ? 'text-gray-300' : 'text-gray-800' } ` } >
122151 { /* VS Code Top Bar */ }
123152 < div className = { `absolute top-0 left-0 right-0 h-6 ${ isDark ? 'bg-gray-900' : 'bg-gray-100' } flex items-center px-4 border-b ${ isDark ? 'border-gray-700' : 'border-gray-300' } ` } >
124153 < div className = "flex space-x-2" >
@@ -142,7 +171,7 @@ const App = () => {
142171 { /* Main Content */ }
143172 < div className = "flex w-full pt-6" >
144173 { /* Left Sidebar */ }
145- < div className = { `w-64 border-r ${ isDark ? 'border-gray-700' : 'border-gray-200' } ` } >
174+ < div className = { `w-64 border-r ${ isDark ? 'border-gray-700 bg-gray-900 ' : 'border-gray-200 bg-white ' } ` } >
146175 < div className = "p-2" >
147176 < div
148177 className = "flex items-center p-1 rounded cursor-pointer"
@@ -155,6 +184,14 @@ const App = () => {
155184
156185 { isExpanded && (
157186 < div className = "ml-4 space-y-1" >
187+ < div
188+ className = { `flex items-center p-1 rounded cursor-pointer ${ activeTab === 'home' ? 'bg-gray-800' : '' } ` }
189+ onClick = { ( ) => handleTabClick ( 'home' ) }
190+ >
191+ < User size = { 16 } className = "mr-2 text-purple-400" />
192+ < span > home</ span >
193+ </ div >
194+
158195 < div
159196 className = { `flex items-center p-1 rounded cursor-pointer ${ activeTab === 'dashboard' ? 'bg-gray-800' : '' } ` }
160197 onClick = { ( ) => handleTabClick ( 'dashboard' ) }
@@ -207,7 +244,7 @@ const App = () => {
207244 isDark = { isDark }
208245 />
209246
210- < div className = "flex-1 overflow-auto" >
247+ < div className = "flex-1 overflow-auto bg-gray-900 " >
211248 < div className = "h-full flex" >
212249 < div className = "flex-1 p-6" >
213250 < div className = "max-w-4xl mx-auto" >
0 commit comments