Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
325 lines (307 loc) · 12.2 KB
/
Copy pathindex.js
File metadata and controls
325 lines (307 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
import React, { useState, useEffect } from 'react';
import { Github, Linkedin, Mail, Instagram, Terminal, Code, Database, Brain, Server, Globe } from 'lucide-react';
const Portfolio = () => {
const [activeSection, setActiveSection] = useState('about');
const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });
const [cursorVariant, setCursorVariant] = useState('default');
// Mouse movement effect
useEffect(() => {
const handleMouseMove = (e) => {
setMousePosition({ x: e.clientX, y: e.clientY });
};
window.addEventListener('mousemove', handleMouseMove);
return () => window.removeEventListener('mousemove', handleMouseMove);
}, []);
// TypeWriter component
const TypeWriter = ({ text }) => {
const [displayText, setDisplayText] = useState('');
const [currentIndex, setCurrentIndex] = useState(0);
useEffect(() => {
if (currentIndex < text.length) {
const timeout = setTimeout(() => {
setDisplayText(prev => prev + text[currentIndex]);
setCurrentIndex(prev => prev + 1);
}, 100);
return () => clearTimeout(timeout);
}
}, [currentIndex, text]);
return <span className="font-mono">{displayText}</span>;
};
// Custom cursor component
const Cursor = () => (
<div
className="fixed w-8 h-8 pointer-events-none mix-blend-difference z-50"
style={{
left: `${mousePosition.x - 16}px`,
top: `${mousePosition.y - 16}px`,
transition: 'all 0.1s ease'
}}
>
<div
className={`
rounded-full bg-white opacity-50
${cursorVariant === 'default' ? 'w-8 h-8' : 'w-16 h-16'}
transition-all duration-300 ease-out
`}
/>
</div>
);
// Data for skills
const skills = {
programming: [
{ name: 'Python', level: 90 },
{ name: 'TensorFlow', level: 85 },
{ name: 'Neural Networks', level: 80 },
{ name: 'Computer Vision', level: 85 },
{ name: 'NLP', level: 75 }
],
tools: [
{ name: 'Git', level: 90 },
{ name: 'Docker', level: 80 },
{ name: 'Kubernetes', level: 70 },
{ name: 'AWS', level: 75 },
{ name: 'MongoDB', level: 85 }
]
};
// Data for projects
const projects = [
{
title: 'AI Research Assistant',
description: 'Advanced NLP-based research assistant using transformer architecture',
tech: ['Python', 'PyTorch', 'Transformers', 'FastAPI'],
github: 'https://github.com/UmeshCode1/ai-research-assistant',
icon: <Brain className="w-6 h-6" />
},
{
title: 'Computer Vision Pipeline',
description: 'Real-time object detection and tracking system',
tech: ['Python', 'OpenCV', 'TensorFlow', 'YOLO'],
github: 'https://github.com/UmeshCode1/cv-pipeline',
icon: <Globe className="w-6 h-6" />
},
{
title: 'ML Model Deployment',
description: 'Scalable ML model deployment infrastructure',
tech: ['Docker', 'Kubernetes', 'Flask', 'Redis'],
github: 'https://github.com/UmeshCode1/ml-deployment',
icon: <Server className="w-6 h-6" />
}
];
return (
<div className="min-h-screen bg-gray-900 text-gray-100">
<Cursor />
{/* Matrix background */}
<div className="fixed inset-0 opacity-10">
<div className="absolute inset-0 overflow-hidden">
{[...Array(50)].map((_, i) => (
<div
key={i}
className="absolute text-green-500 text-xl animate-fall"
style={{
left: `${Math.random() * 100}%`,
top: `${Math.random() * 100}%`,
animationDuration: `${5 + Math.random() * 10}s`
}}
>
{String.fromCharCode(33 + Math.floor(Math.random() * 93))}
</div>
))}
</div>
</div>
{/* Header section */}
<header className="relative bg-gradient-to-r from-blue-900 to-purple-900 py-20 px-4">
<div className="max-w-4xl mx-auto text-center relative z-10">
<div className="mb-8 transform hover:scale-110 transition-transform duration-300">
<img
src="/api/placeholder/150/150"
alt="Umesh Patel"
className="rounded-full w-32 h-32 mx-auto border-4 border-blue-500"
/>
</div>
<h1 className="text-5xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-400">
<TypeWriter text="Umesh Patel" />
</h1>
<p className="text-xl mb-6 font-mono">
<TypeWriter text="AI Researcher | ML Engineer | Tech Innovator" />
</p>
<div className="flex justify-center space-x-6">
{[
{ Icon: Github, link: 'https://github.com/UmeshCode1' },
{ Icon: Linkedin, link: 'https://linkedin.com/in/umesh-patel-5647b42a4' },
{ Icon: Mail, link: 'mailto:umesh.code1@gmail.com' },
{ Icon: Instagram, link: 'https://www.instagram.com/nycto_phile.i' }
].map(({ Icon, link }) => (
<a
key={link}
href={link}
className="transform hover:scale-125 transition-transform duration-300 text-blue-400 hover:text-blue-300"
onMouseEnter={() => setCursorVariant('hover')}
onMouseLeave={() => setCursorVariant('default')}
>
<Icon size={24} />
</a>
))}
</div>
</div>
</header>
{/* Navigation */}
<nav className="bg-gray-800 sticky top-0 z-40 border-b border-gray-700">
<div className="max-w-4xl mx-auto px-4">
<ul className="flex justify-center space-x-8">
{['about', 'skills', 'projects', 'education', 'contact'].map(item => (
<li key={item}>
<button
onClick={() => setActiveSection(item)}
className={`py-4 px-2 capitalize transition-colors duration-300 ${
activeSection === item
? 'text-blue-400 border-b-2 border-blue-400'
: 'text-gray-400 hover:text-blue-400'
}`}
onMouseEnter={() => setCursorVariant('hover')}
onMouseLeave={() => setCursorVariant('default')}
>
{item}
</button>
</li>
))}
</ul>
</div>
</nav>
{/* Main content sections */}
<main className="max-w-4xl mx-auto px-4 py-12">
{/* About Section */}
<section className={`transition-all duration-500 ${
activeSection === 'about' ? 'opacity-100' : 'opacity-0 hidden'
}`}>
<div className="bg-gray-800 rounded-lg shadow-xl p-8 border border-gray-700">
<div className="flex items-center mb-6">
<Terminal className="text-blue-400 mr-3" />
<h2 className="text-2xl font-bold">About Me</h2>
</div>
<div className="font-mono text-gray-300 leading-relaxed space-y-4">
<p className="text-blue-400">const aboutMe = {'{'}</p>
<p className="ml-4">
role: "AI Researcher & ML Engineer",
</p>
<p className="ml-4">
location: "Bhopal, India",
</p>
<p className="ml-4">
interests: ["AI", "Machine Learning", "Innovation"],
</p>
<p className="ml-4">
goals: "Creating intelligent systems that matter"
</p>
<p>{'}'}</p>
</div>
</div>
</section>
{/* Skills Section */}
<section className={`transition-all duration-500 ${
activeSection === 'skills' ? 'opacity-100' : 'opacity-0 hidden'
}`}>
<div className="grid md:grid-cols-2 gap-8">
{Object.entries(skills).map(([category, items]) => (
<div key={category} className="bg-gray-800 rounded-lg shadow-xl p-6 border border-gray-700">
<h3 className="text-xl font-bold mb-6 flex items-center">
<Code className="text-blue-400 mr-3" />
<span className="capitalize">{category}</span>
</h3>
<div className="space-y-4">
{items.map(skill => (
<div key={skill.name} className="space-y-2">
<div className="flex justify-between text-sm">
<span>{skill.name}</span>
<span>{skill.level}%</span>
</div>
<div className="h-2 bg-gray-700 rounded-full overflow-hidden">
<div
className="h-full bg-blue-400 rounded-full transition-all duration-1000"
style={{ width: `${skill.level}%` }}
/>
</div>
</div>
))}
</div>
</div>
))}
</div>
</section>
{/* Projects Section */}
<section className={`transition-all duration-500 ${
activeSection === 'projects' ? 'opacity-100' : 'opacity-0 hidden'
}`}>
<div className="grid md:grid-cols-2 gap-8">
{projects.map(project => (
<div
key={project.title}
className="bg-gray-800 rounded-lg shadow-xl p-6 border border-gray-700 transform hover:scale-105 transition-transform duration-300"
>
<div className="flex items-center mb-4">
{project.icon}
<h3 className="text-xl font-bold ml-3">{project.title}</h3>
</div>
<p className="text-gray-300 mb-4">{project.description}</p>
<div className="flex flex-wrap gap-2 mb-4">
{project.tech.map(tech => (
<span
key={tech}
className="bg-blue-900 text-blue-300 px-3 py-1 rounded-full text-sm"
>
{tech}
</span>
))}
</div>
<a
href={project.github}
className="inline-flex items-center text-blue-400 hover:text-blue-300"
>
<Github className="mr-2" size={16} />
View on GitHub
</a>
</div>
))}
</div>
</section>
{/* Contact Section */}
<section className={`transition-all duration-500 ${
activeSection === 'contact' ? 'opacity-100' : 'opacity-0 hidden'
}`}>
<div className="bg-gray-800 rounded-lg shadow-xl p-8 border border-gray-700">
<div className="flex items-center mb-6">
<Mail className="text-blue-400 mr-3" />
<h2 className="text-2xl font-bold">Get in Touch</h2>
</div>
<div className="space-y-6">
<div className="flex items-center space-x-3 text-gray-300">
<Mail size={20} className="text-blue-400" />
<a href="mailto:umesh.code1@gmail.com" className="hover:text-blue-400">
umesh.code1@gmail.com
</a>
</div>
<div className="flex items-center space-x-3 text-gray-300">
<Github size={20} className="text-blue-400" />
<a href="https://github.com/UmeshCode1" className="hover:text-blue-400">
GitHub Profile
</a>
</div>
<div className="flex items-center space-x-3 text-gray-300">
<Linkedin size={20} className="text-blue-400" />
<a href="https://linkedin.com/in/umesh-patel-5647b42a4" className="hover:text-blue-400">
LinkedIn Profile
</a>
</div>
</div>
</div>
</section>
</main>
{/* Footer */}
<footer className="bg-gray-800 text-gray-400 py-8 mt-12">
<div className="max-w-4xl mx-auto px-4 text-center">
<p>© {new Date().getFullYear()} Umesh Patel. All rights reserved.</p>
</div>
</footer>
</div>
);
};
export default Portfolio;