import React, { useState } from 'react'; import { Code2, Sparkles, Terminal, Linkedin, Mail, Phone, MapPin, ExternalLink, Github, ChevronRight, Cpu, Layers, BookOpen, Send, CheckCircle2, Zap, Award, Copy, Download, Check, User, Monitor, Layout, Database } from 'lucide-react'; export default function App() { const [activeTab, setActiveTab] = useState('all'); const [copiedEmail, setCopiedEmail] = useState(false); const [copiedPhone, setCopiedPhone] = useState(false); const [terminalOutput, setTerminalOutput] = useState([ { type: 'system', text: 'P. Somnath Das Portfolio OS v2.5 initialized.' }, { type: 'system', text: 'Type "help" or click buttons below to run interactive commands.' } ]); const [terminalInput, setTerminalInput] = useState(''); const [formSubmitted, setFormSubmitted] = useState(false); const [formData, setFormData] = useState({ name: '', email: '', message: '' }); // AI Prompt Generator Interactive Feature const [aiRole, setAiRole] = useState('Front-End Developer'); const [aiTask, setAiTask] = useState('Build a responsive Glassmorphic Card component'); const [generatedPrompt, setGeneratedPrompt] = useState(''); const [promptCopied, setPromptCopied] = useState(false); const handleCopyEmail = () => { navigator.clipboard.writeText('psomnathdas@email.com'); setCopiedEmail(true); setTimeout(() => setCopiedEmail(false), 2000); }; const handleCopyPhone = () => { navigator.clipboard.writeText('+919790095490'); setCopiedPhone(true); setTimeout(() => setCopiedPhone(false), 2000); }; const handleTerminalSubmit = (e) => { e.preventDefault(); if (!terminalInput.trim()) return; const cmd = terminalInput.trim().toLowerCase(); let newLogs = [...terminalOutput, { type: 'user', text: `$ ${terminalInput}` }]; switch (cmd) { case 'help': newLogs.push({ type: 'response', text: 'Available commands: about, skills, education, projects, contact, clear' }); break; case 'about': newLogs.push({ type: 'response', text: 'P. Somnath Das - B.Sc CS 3rd Year student at Vel Tech Ranga Sanku College. Specializing in Web Dev & GenAI.' }); break; case 'skills': newLogs.push({ type: 'response', text: 'Core: HTML5, CSS3, JS (ES6+), Core Java | Emerging: GenAI, Machine Learning, Computer Vision' }); break; case 'education': newLogs.push({ type: 'response', text: 'B.Sc. Computer Science (2024-2027) | Vel Tech Ranga Sanku College | Sem V' }); break; case 'projects': newLogs.push({ type: 'response', text: '1. Personal Portfolio Engine\n2. AI PromptCraft Studio\n3. NeuralVision JS Visualizer' }); break; case 'contact': newLogs.push({ type: 'response', text: 'Email: psomnathdas@email.com | Phone: +91 9790095490 | Location: Chennai, India' }); break; case 'clear': setTerminalOutput([]); setTerminalInput(''); return; default: newLogs.push({ type: 'error', text: `Command not recognized: "${cmd}". Type "help" for a list of commands.` }); } setTerminalOutput(newLogs); setTerminalInput(''); }; const generatePrompt = () => { const prompt = `Act as an expert ${aiRole}. Cleanly execute the following task with high precision and modern best practices: "${aiTask}". Ensure mobile responsiveness, semantic structure, modular reusable code, and optimized UI performance.`; setGeneratedPrompt(prompt); }; const handleCopyPrompt = () => { if (!generatedPrompt) return; navigator.clipboard.writeText(generatedPrompt); setPromptCopied(true); setTimeout(() => setPromptCopied(false), 2000); }; const handleContactSubmit = (e) => { e.preventDefault(); if (formData.name && formData.email && formData.message) { setFormSubmitted(true); setTimeout(() => { setFormSubmitted(false); setFormData({ name: '', email: '', message: '' }); }, 4000); } }; const projects = [ { id: 1, category: 'web', title: 'Interactive Web Suite & Portfolio Engine', subtitle: 'Self-Directed Core Front-End Development', description: 'A responsive multi-page web architecture featuring modular dynamic DOM updates, custom client-side JS state logic, and mobile-first CSS3 Flexbox/Grid patterns.', tags: ['HTML5', 'CSS3', 'JavaScript ES6+', 'DOM Manipulation', 'Responsive UX'], highlights: [ 'Semantic HTML5 design with custom CSS animations', 'Dynamic client-side interactivity without heavy external dependencies', 'Optimized viewport handling and cross-browser consistency' ], type: 'Featured Project' }, { id: 2, category: 'ai', title: 'PromptCraft AI Studio', subtitle: 'Generative AI & Web Engineering Concept', description: 'An interactive web utility designed to compose, refine, and optimize prompts for Large Language Models with real-time feedback and dynamic parameter tweaking.', tags: ['JavaScript', 'Generative AI', 'Tailwind CSS', 'UI Engineering'], highlights: [ 'Structured prompt templates for developer productivity', 'Instant copy-to-clipboard and customizable parameter sliders', 'Clean dark glassmorphism user interface' ], type: 'GenAI Web App' }, { id: 3, category: 'core', title: 'Java Data Structure Visualizer', subtitle: 'Core Software Engineering & Logic', description: 'Interactive visual representations of foundational Data Structures and Algorithms implemented with Core Java logic ported to browser DOM visualization.', tags: ['Core Java', 'DSA', 'Logic Design', 'Web Mechanics'], highlights: [ 'Visual step-by-step trace for array operations and sorting', 'Bridging classic computer science fundamentals with visual web UX' ], type: 'CS Core Project' } ]; const filteredProjects = activeTab === 'all' ? projects : projects.filter(p => p.category === activeTab); return (
{/* Background Radial Glow Effects */}
{/* Navigation Bar */}
{/* Main Content */}
{/* HERO SECTION */}
B.Sc. Computer Science • 3rd Year (Sem V)

Front-End Web Developer &
Generative AI Enthusiast

Detail-oriented Computer Science student building fast, responsive, user-centric web applications with HTML5, CSS3, JavaScript (ES6+), and Core Java. Passionate about integrating AI models into modern web interfaces.

{/* Action Buttons */}
Explore Work
{/* Quick Info Badges */}
Chennai, Tamil Nadu
Vel Tech Ranga Sanku College
2024–2027 Batch
{/* Profile Highlight Card */}
SD
Active Student

P. Somnath Das

Computer Science Undergraduate

Specialization Front-End & GenAI
Primary Code JS (ES6+) / Java
Current Semester Semester V
LinkedIn
{/* SKILLS ARCHITECTURE */}
Technical Capabilities

Skills & Domain Expertise

Structured combination of modern web technologies, core computer science principles, and emerging AI concepts.

{/* Front-End & Web Tech */}

Web Development

Responsive & Modern Interfaces

  • HTML5 (Semantic Layouts)
  • CSS3 (Flexbox, Grid, Animations)
  • JavaScript (ES6+, DOM Logic)
  • Responsive Web Design
{/* Programming Languages & Core CS */}

Core Engineering

Software Logic & Data Structures

  • Core Java Programming
  • Data Structures & Algorithms (DSA)
  • Database Management (DBMS)
  • Python & C++ Foundations
{/* AI & Developer Tools */}

AI & Tooling

Emerging Tech & Workflow

  • Generative AI Fundamentals
  • Machine Learning Trends
  • Computer Vision Concepts
  • Git Version Control & VS Code
{/* PROJECTS SECTION */}
Featured Work

Development & Portfolio Projects

{/* Project Filter Tabs */}
{filteredProjects.map((project) => (
{project.type}

{project.title}

{project.subtitle}

{project.description}

{project.highlights.map((h, i) => (
{h}
))}
{project.tags.map((tag, i) => ( {tag} ))}
))}
{/* AI PROMPT STUDIO INTERACTIVE SANDBOX */}
Interactive AI Playground

Generative AI Prompt Generator

Test Somnath's prompt engineering generator logic built directly into this portfolio.

setAiTask(e.target.value)} className="w-full p-3 rounded-xl bg-slate-950 border border-slate-800 text-slate-200 focus:border-purple-500 outline-none" placeholder="e.g. Create a responsive CSS Flexbox layout" />
{/* Generated Output Box */}
Structured Output {generatedPrompt && ( )}
{generatedPrompt || 'Click "Generate Structured Prompt" to preview the AI prompt compiler output.'}
⚡ Designed to demonstrate prompt structure & client-side string processing capabilities.
{/* INTERACTIVE TERMINAL SECTION */}
Developer Command Line
Interactive Shell
{/* Terminal Header Bar */}
somnath-das@portfolio-os:~
bash / zsh
{/* Terminal Body */}
{terminalOutput.map((log, idx) => (
{log.type === 'system' && {log.text}} {log.type === 'user' && {log.text}} {log.type === 'response' && {log.text}} {log.type === 'error' && {log.text}}
))}
{/* Terminal Input Form */}
$ setTerminalInput(e.target.value)} placeholder="Type 'help', 'about', 'skills', 'projects', 'education'..." className="flex-1 bg-transparent text-slate-200 outline-none placeholder:text-slate-600" />
{/* EDUCATION & BACKGROUND */}
Academic Timeline

Education & Coursework

{/* Degree Card */}
2024 - 2027 (Expected) Semester V

B.Sc. in Computer Science

Vel Tech Ranga Sanku College of Arts and Science

Avadi, Chennai, Tamil Nadu

Core Coursework Covered:

{['Web Development (HTML/CSS/JS)', 'Data Structures & Algorithms', 'Database Management Systems (DBMS)', 'Core Java'].map((c, i) => ( {c} ))}
{/* Schooling Card */}
Completed 2024 Class XII

Higher Secondary Certificate

Dayspring Matriculation Higher Secondary School

Chennai, Tamil Nadu

Completed secondary education with focus on Mathematics, Science, and Foundational Computer Concepts.
{/* CONTACT SECTION */}
Get In Touch

Let's Connect & Build Together

I am actively seeking internship opportunities, front-end projects, and collaborative technical builds. Feel free to reach out directly.

Email Address

psomnathdas@email.com

Phone Number

+91 9790095490

LinkedIn Profile

p-somnath-das-a72056416

{/* Contact Form */}

Send a Direct Message

{formSubmitted ? (

Message Received!

Thank you for reaching out, Somnath will get back to you shortly.

) : (
setFormData({...formData, name: e.target.value})} placeholder="e.g. Rahul Sharma" className="w-full p-3 rounded-xl bg-slate-950 border border-slate-800 text-slate-200 focus:border-cyan-500 outline-none" />
setFormData({...formData, email: e.target.value})} placeholder="e.g. rahul@example.com" className="w-full p-3 rounded-xl bg-slate-950 border border-slate-800 text-slate-200 focus:border-cyan-500 outline-none" />