import React, { useState, useEffect } from 'react';
import { Moon, Sun, Github, Mail, Linkedin, ExternalLink, Menu, X, Code, Sparkles, Rocket, Award, Send } from 'lucide-react';
export default function Portfolio() {
const [darkMode, setDarkMode] = useState(true);
const [activeSection, setActiveSection] = useState('home');
const [menuOpen, setMenuOpen] = useState(false);
const [formData, setFormData] = useState({ name: '', email: '', message: '' });
const [formSubmitted, setFormSubmitted] = useState(false);
useEffect(() => {
const handleScroll = () => {
const sections = ['home', 'about', 'projects', 'achievements', 'contact'];
const scrollPosition = window.scrollY + 100;
for (const section of sections) {
const element = document.getElementById(section);
if (element) {
const { offsetTop, offsetHeight } = element;
if (scrollPosition >= offsetTop && scrollPosition < offsetTop + offsetHeight) {
setActiveSection(section);
break;
}
}
}
};
window.addEventListener('scroll', handleScroll);
return () => window.removeEventListener('scroll', handleScroll);
}, []);
const scrollToSection = (sectionId) => {
const element = document.getElementById(sectionId);
if (element) {
element.scrollIntoView({ behavior: 'smooth' });
setMenuOpen(false);
}
};
const handleSubmit = (e) => {
e.preventDefault();
setFormSubmitted(true);
setTimeout(() => setFormSubmitted(false), 3000);
setFormData({ name: '', email: '', message: '' });
};
const projects = [
{
title: 'Task Manager',
description: 'Full-featured task management system with admin controls and user task completion tracking.',
tech: ['React', 'Node.js', 'MongoDB'],
github: 'https://github.com/developeranveshraman',
color: 'from-blue-500 to-cyan-500'
},
{
title: 'YouTube Analytics Dashboard',
description: 'Comprehensive analytics tool designed for content creators to track performance metrics.',
tech: ['React', 'YouTube API', 'Chart.js'],
github: 'https://github.com/developeranveshraman',
color: 'from-red-500 to-pink-500'
},
{
title: 'Air Mouse Controller',
description: 'Innovative webcam-based hand-tracking system for touchless computer control.',
tech: ['Python', 'OpenCV', 'MediaPipe'],
github: 'https://github.com/developeranveshraman',
color: 'from-purple-500 to-indigo-500'
},
{
title: 'NameForge',
description: 'GitHub-powered subdomain registry system for seamless project hosting and management.',
tech: ['Node.js', 'GitHub API', 'DNS'],
github: 'https://github.com/developeranveshraman',
color: 'from-green-500 to-emerald-500'
},
{
title: 'AnveshAI',
description: 'Advanced AI platform featuring chat capabilities and intelligent image generation.',
tech: ['React', 'OpenAI API', 'Python'],
github: 'https://github.com/developeranveshraman',
color: 'from-orange-500 to-yellow-500'
},
{
title: 'Adult Content Detector',
description: 'Ethical NSFW detection system using machine learning for content moderation.',
tech: ['Python', 'TensorFlow', 'Flask'],
github: 'https://github.com/developeranveshraman',
color: 'from-pink-500 to-rose-500'
}
];
const achievements = [
{ icon: , title: '15+ Projects', desc: 'Completed across various domains' },
{ icon:
Hey there! I'm Anvesh Raman, a passionate developer from India with a deep love for creating interactive experiences and innovative solutions. My journey in tech spans across game development, full-stack web development, and cutting-edge AI projects.
I thrive on building projects that push boundaries—whether it's developing immersive games, crafting intuitive web applications, or experimenting with blockchain technology. Each project is an opportunity to learn, grow, and create something meaningful.
When I'm not coding, you'll find me exploring new AI models, contributing to open-source projects, or brainstorming the next big idea. My goal is to leverage technology to solve real-world problems and create experiences that truly matter.
{achievement.desc}
Message sent successfully! ✓
)}