import React from 'react'; import { ExternalLink, Github, Globe, Zap, TrendingUp, Users } from 'lucide-react'; import { ProjectSchema } from './schemas/ProjectSchema'; interface ProjectShowcaseProps { project: { id: string; title: string; description: string; technicalChallenge: string; businessImpact: { roi?: string; performanceGain?: string; usersImpacted?: string; }; technologies: string[]; category: string; dateCreated: string; liveUrl?: string; githubUrl?: string; screenshotUrl?: string; features: string[]; codeExample?: string; }; } export function ProjectShowcase({ project }: ProjectShowcaseProps) { return (
{/* Hero Section with Screenshot */} {project.screenshotUrl && (
{`Screenshot
)}
{/* Title and Description */}

{project.title}

{project.description}

{/* For Recruiters: Technical Challenge */}

Technical Challenge

{project.technicalChallenge}

{/* For Clients: Business Impact */}

Business Impact

{project.businessImpact.roi && (

ROI

{project.businessImpact.roi}

)} {project.businessImpact.performanceGain && (

Performance

{project.businessImpact.performanceGain}

)} {project.businessImpact.usersImpacted && (

Users Impacted

{project.businessImpact.usersImpacted}

)}
{/* Technology Stack with Keywords */}

Technologies Used

{project.technologies.map(tech => ( {tech} ))}
{/* Key Features */} {project.features && project.features.length > 0 && (

Key Features

    {project.features.map((feature, index) => (
  • {feature}
  • ))}
)} {/* Code Quality Showcase */} {project.codeExample && (

Code Example

              
                {project.codeExample}
              
            
)} {/* Links */}
{project.liveUrl && ( View Live Project )} {project.githubUrl && ( View on GitHub )}
); }