"use client" import React, { useState, useEffect } from 'react'; import { Github, Linkedin, Mail, ChevronDown, Code, Database, BarChart3, Globe, Award, GraduationCap, Image, ExternalLink as LinkIcon } from 'lucide-react'; const Portfolio = () => { const [activeSection, setActiveSection] = useState('home'); const [scrolled, setScrolled] = useState(false); const [showProjectGallery, setShowProjectGallery] = useState(null); // Nord Color Palette const nordColors = { bg: '#2E3440', bgLight: '#3B4252', bgLighter: '#434C5E', bgLightest: '#4C566A', text: '#D8DEE9', textMuted: 'rgba(216, 222, 233, 0.6)', accent: '#88C0D0', blue: '#81A1C1', darkBlue: '#5E81AC', cyan: '#8FBCBB', green: '#A3BE8C', yellow: '#EBCB8B', orange: '#D08770', red: '#BF616A', purple: '#B48EAD' }; useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const skills = { 'Data & Analytics': ['Python', 'R', 'SQL', 'Statistical Analysis', 'Data Visualization', 'Business Intelligence'], 'Web Development': ['JavaScript', 'TypeScript', 'React', 'Next.js', 'HTML5', 'CSS3', 'Tailwind CSS'], 'Backend & Tools': ['Flask', 'Express', 'MongoDB', 'SQLite', 'Git', 'Linux'], 'Other': ['Java', 'LaTeX', 'Project Planning', 'Financial Analysis'] }; const projects = [ { title: 'Valgo - Algorithm Visualizer', period: 'Jun 2024 - Present', description: 'Interactive web application designed to help users understand and visualize various sorting algorithms. Built with Next.js and React to make learning algorithms more engaging and intuitive.', tech: ['Next.js', 'React', 'JavaScript', 'Algorithm Visualization'], icon: , status: 'Live', images: [ 'valgo.png', ], features: ['Real-time algorithm visualization', 'Multiple sorting algorithms', 'Step-by-step breakdown', 'Performance comparison'], github: 'https://github.com/Quinta0/valgo', demo: 'https://quinta0.github.io/valgo/' }, { title: 'Boston Housing Price Prediction', period: 'May 2024 - Present', description: 'Machine learning model to predict housing prices in the Boston area based on various features such as crime rate, average number of rooms per dwelling, and accessibility to radial highways.', tech: ['Python', 'Machine Learning', 'Data Analysis', 'Statistical Modeling'], icon: , status: 'Academic Project', images:[ 'Housing.jpeg', ], features: ['Predictive modeling', 'Feature engineering', 'Data visualization', 'Statistical analysis'], github: 'https://github.com/Quinta0/BostonHousing' }, { title: 'Forest Fire Simulation', period: 'Mar 2024 - Present', description: 'Probability & Statistics course project modeling the spread of forest fires over a grid. Accounts for vegetation types, terrain elevation, wind patterns, humidity levels, and spontaneous ignition.', tech: ['Python', 'Statistical Modeling', 'Simulation', 'Data Science'], icon: , status: 'Academic Project', images: [ 'forestfire.jpg', ], features: ['Monte Carlo simulation', 'Environmental factors modeling', 'Statistical analysis', 'Visualization tools'], github: 'https://github.com/Quinta0/ForestFire' } ]; const education = [ { institution: 'USI Università della Svizzera italiana', degree: "Bachelor's degree Economics", period: 'Sep 2024 - Jun 2027', status: 'Current' }, { institution: 'USI Università della Svizzera italiana', degree: 'Bachelor of Science - BS Informatics', period: 'Jan 2022 - Jan 2024', status: 'Completed' }, { institution: 'Scuola cantonale di commercio', degree: 'Maturità Cantonale e AFC Economics', period: 'Sep 2017 - Jun 2021', status: 'GPA: 4.5/5' } ]; const certificates = [ 'Google Data Analytics Professional Certificate', 'Google IT Support Professional Certificate', 'IT Security: Defense against the digital dark arts', 'Python for Data Science, AI & Development' ]; const scrollToSection = (sectionId: string) => { document.getElementById(sectionId)?.scrollIntoView({ behavior: 'smooth' }); setActiveSection(sectionId); }; type Project = typeof projects[number]; interface ProjectGalleryProps { project: Project; onClose: () => void; } const ProjectGallery: React.FC = ({ project, onClose }) => (
e.stopPropagation()} >

{project.title}

{project.period} {project.status}
{/* Project Images */}
{project.images.map((image, idx) => (
{`${project.title}
))}
{/* Description */}

About This Project

{project.description}

{/* Features */}

Key Features

{project.features.map((feature, idx) => (
{feature}
))}
{/* Tech Stack */}

Technology Stack

{project.tech.map((tech) => ( {tech} ))}
{/* Links */}
{project.github && ( View Code )} {project.demo && ( Live Demo )}
); return (
{/* Navigation */} {/* Hero Section */}

Pietro Quintavalle

Economics Student • Data Analytics • Web Development

Passionate about the intersection of economics and technology, exploring how data and code can solve real-world problems.

{/* About Section */}

About Me

I'm an Economics student at USI with extensive experience in data analytics and web development. My journey combines analytical thinking with technical skills to create meaningful solutions.

Google-certified in Data Analytics and IT Support, I bring proven expertise in Python, R, SQL, and modern web technologies like Next.js and React.

Italian (Native) English (C2) Switzerland 🇨🇭
{Object.entries(skills).map(([category, skillList]) => (

{category}

{skillList.map((skill) => ( {skill} ))}
))}
{/* Projects Section */}

Featured Projects

{projects.map((project, index) => (
setShowProjectGallery(project)} >
{project.icon}

{project.title}

{project.period}

{project.description}

{project.tech.map((tech) => ( {tech} ))}
View Gallery {project.status}
))}
{/* Education & Certificates Section */}

Education & Certifications

{/* Education */}

Education

{education.map((edu, index) => (

{edu.degree}

{edu.institution}

{edu.period} {edu.status}
))}
{/* Certificates */}

Certifications

{certificates.map((cert, index) => (
{cert}
))}

Interests

{['Computer Hardware', 'Web Development', 'Finance', 'Economics', 'Literature'].map((interest) => ( {interest} ))}
{/* Contact Section */}

Let's Connect

I'm always interested in discussing new opportunities, collaborations, or just having a chat about technology and economics.

{/* Footer */}

Built with ❄️ using React & Nord theme • Pietro Quintavalle © 2025

{/* Project Gallery Modal */} {showProjectGallery && ( setShowProjectGallery(null)} /> )}
); }; export default Portfolio;