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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { ExternalLink, Github, Star } from 'lucide-react';
|
| 2 |
+
|
| 3 |
+
export default function Projects() {
|
| 4 |
+
const projects = [
|
| 5 |
+
{
|
| 6 |
+
title: 'E-Commerce Platform',
|
| 7 |
+
description: 'A full-featured online shopping platform with real-time inventory, payment processing, and admin dashboard.',
|
| 8 |
+
image: 'bg-gradient-to-br from-orange-400 to-pink-500',
|
| 9 |
+
tags: ['Next.js', 'TypeScript', 'Stripe', 'PostgreSQL'],
|
| 10 |
+
github: 'https://github.com',
|
| 11 |
+
demo: 'https://demo.com',
|
| 12 |
+
featured: true
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
title: 'Task Management App',
|
| 16 |
+
description: 'Collaborative project management tool with real-time updates, team workspaces, and analytics dashboard.',
|
| 17 |
+
image: 'bg-gradient-to-br from-blue-400 to-indigo-500',
|
| 18 |
+
tags: ['React', 'Node.js', 'Socket.io', 'MongoDB'],
|
| 19 |
+
github: 'https://github.com',
|
| 20 |
+
demo: 'https://demo.com',
|
| 21 |
+
featured: true
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
title: 'AI Content Generator',
|
| 25 |
+
description: 'AI-powered writing assistant that helps create blog posts, social media content, and marketing copy.',
|
| 26 |
+
image: 'bg-gradient-to-br from-purple-400 to-violet-500',
|
| 27 |
+
tags: ['Next.js', 'OpenAI', 'Prisma', 'Tailwind'],
|
| 28 |
+
github: 'https://github.com',
|
| 29 |
+
demo: 'https://demo.com',
|
| 30 |
+
featured: false
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
title: 'Fitness Tracking App',
|
| 34 |
+
description: 'Mobile-first application for tracking workouts, nutrition, and health metrics with progress visualization.',
|
| 35 |
+
image: 'bg-gradient-to-br from-green-400 to-emerald-500',
|
| 36 |
+
tags: ['React Native', 'Firebase', 'Chart.js', 'Redux'],
|
| 37 |
+
github: 'https://github.com',
|
| 38 |
+
demo: 'https://demo.com',
|
| 39 |
+
featured: false
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
title: 'Real Estate Marketplace',
|
| 43 |
+
description: 'Property listing platform with advanced search, virtual tours, and mortgage calculator features.',
|
| 44 |
+
image: 'bg-gradient-to-br from-cyan-400 to-blue-500',
|
| 45 |
+
tags: ['Vue.js', 'Django', 'PostgreSQL', 'AWS'],
|
| 46 |
+
github: 'https://github.com',
|
| 47 |
+
demo: 'https://demo.com',
|
| 48 |
+
featured: false
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
title: 'Social Media Dashboard',
|
| 52 |
+
description: 'Analytics dashboard for managing multiple social media accounts with scheduling and reporting.',
|
| 53 |
+
image: 'bg-gradient-to-br from-rose-400 to-red-500',
|
| 54 |
+
tags: ['React', 'GraphQL', 'Apollo', 'Material-UI'],
|
| 55 |
+
github: 'https://github.com',
|
| 56 |
+
demo: 'https://demo.com',
|
| 57 |
+
featured: false
|
| 58 |
+
}
|
| 59 |
+
];
|
| 60 |
+
|
| 61 |
+
return (
|
| 62 |
+
<section id="projects" className="bg-white">
|
| 63 |
+
<div className="section-container">
|
| 64 |
+
<div className="text-center mb-12">
|
| 65 |
+
<h2 className="text-3xl sm:text-4xl font-bold text-gray-900 mb-4">Featured Projects</h2>
|
| 66 |
+
<p className="text-lg text-gray-600 max-w-2xl mx-auto">
|
| 67 |
+
Some of my recent work that I'm proud of
|
| 68 |
+
</p>
|
| 69 |
+
<div className="w-20 h-1 bg-primary-500 mx-auto rounded-full mt-4"></div>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
{/* Featured Projects */}
|
| 73 |
+
<div className="grid md:grid-cols-2 gap-8 mb-12">
|
| 74 |
+
{projects.filter(p => p.featured).map((project) => (
|
| 75 |
+
<div
|
| 76 |
+
key={project.title}
|
| 77 |
+
className="group relative bg-gray-50 rounded-2xl overflow-hidden hover:shadow-xl transition-all duration-300"
|
| 78 |
+
>
|
| 79 |
+
<div className={`h-48 ${project.image}`}></div>
|
| 80 |
+
<div className="p-6">
|
| 81 |
+
<div className="flex items-center gap-2 mb-3">
|
| 82 |
+
<Star className="w-4 h-4 text-yellow-500 fill-current" />
|
| 83 |
+
<span className="text-xs font-medium text-yellow-600 uppercase tracking-wide">Featured</span>
|
| 84 |
+
</div>
|
| 85 |
+
<h3 className="text-xl font-bold text-gray-900 mb-2">{project.title}</h3>
|
| 86 |
+
<p className="text-gray-600 mb-4">{project.description}</p>
|
| 87 |
+
<div className="flex flex-wrap gap-2 mb-4">
|
| 88 |
+
{project.tags.map((tag) => (
|
| 89 |
+
<span key={tag} className="px-3 py-1 bg-white text-xs font-medium text-gray-600 rounded-full border border-gray-200">
|
| 90 |
+
{tag}
|
| 91 |
+
</span>
|
| 92 |
+
))}
|
| 93 |
+
</div>
|
| 94 |
+
<div className="flex gap-4">
|
| 95 |
+
<a
|
| 96 |
+
href={project.github}
|
| 97 |
+
target="_blank"
|
| 98 |
+
rel="noopener noreferrer"
|
| 99 |
+
className="flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors"
|
| 100 |
+
>
|
| 101 |
+
<Github className="w-4 h-4" />
|
| 102 |
+
Code
|
| 103 |
+
</a>
|
| 104 |
+
<a
|
| 105 |
+
href={project.demo}
|
| 106 |
+
target="_blank"
|
| 107 |
+
rel="noopener noreferrer"
|
| 108 |
+
className="flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors"
|
| 109 |
+
>
|
| 110 |
+
<ExternalLink className="w-4 h-4" />
|
| 111 |
+
Live Demo
|
| 112 |
+
</a>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
))}
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
{/* Other Projects */}
|
| 120 |
+
<div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 121 |
+
{projects.filter(p => !p.featured).map((project) => (
|
| 122 |
+
<div
|
| 123 |
+
key={project.title}
|
| 124 |
+
className="group bg-gray-50 rounded-xl overflow-hidden hover:shadow-lg transition-all duration-300"
|
| 125 |
+
>
|
| 126 |
+
<div className={`h-32 ${project.image}`}></div>
|
| 127 |
+
<div className="p-5">
|
| 128 |
+
<h3 className="text-lg font-bold text-gray-900 mb-2">{project.title}</h3>
|
| 129 |
+
<p className="text-sm text-gray-600 mb-3 line-clamp-2">{project.description}</p>
|
| 130 |
+
<div className="flex flex-wrap gap-1.5 mb-4">
|
| 131 |
+
{project.tags.slice(0, 3).map((tag) => (
|
| 132 |
+
<span key={tag} className="px-2 py-0.5 bg-white text-xs text-gray-600 rounded border border-gray-200">
|
| 133 |
+
{tag}
|
| 134 |
+
</span>
|
| 135 |
+
))}
|
| 136 |
+
</div>
|
| 137 |
+
<div className="flex gap-3">
|
| 138 |
+
<a
|
| 139 |
+
href={project.github}
|
| 140 |
+
target="_blank"
|
| 141 |
+
rel="noopener noreferrer"
|
| 142 |
+
className="text-gray-400 hover:text-primary-600 transition-colors"
|
| 143 |
+
aria-label="View code"
|
| 144 |
+
>
|
| 145 |
+
<Github className="w-5 h-5" />
|
| 146 |
+
</a>
|
| 147 |
+
<a
|
| 148 |
+
href={project.demo}
|
| 149 |
+
target="_blank"
|
| 150 |
+
rel="noopener noreferrer"
|
| 151 |
+
className="text-gray-400 hover:text-primary-600 transition-colors"
|
| 152 |
+
aria-label="View demo"
|
| 153 |
+
>
|
| 154 |
+
<ExternalLink className="w-5 h-5" />
|
| 155 |
+
</a>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
))}
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
{/* View All Link */}
|
| 163 |
+
<div className="text-center mt-12">
|
| 164 |
+
<a
|
| 165 |
+
href="https://github.com"
|
| 166 |
+
target="_blank"
|
| 167 |
+
rel="noopener noreferrer"
|
| 168 |
+
className="inline-flex items-center gap-2 text-primary-600 font-medium hover:text-primary-700 transition-colors"
|
| 169 |
+
>
|
| 170 |
+
<Github className="w-5 h-5" />
|
| 171 |
+
View more on GitHub
|
| 172 |
+
</a>
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
</section>
|
| 176 |
+
);
|
| 177 |
+
}
|