|
1 | 1 | import React from "react"; |
2 | 2 | import { ExternalLink, Github } from "lucide-react"; |
3 | 3 | import Image from "next/image"; |
| 4 | +import SectionHeader from "../ui/SectionHeader"; |
4 | 5 |
|
5 | 6 | type Project = { |
6 | 7 | title: string; |
7 | 8 | description: string; |
8 | 9 | image: string; |
9 | 10 | tags: string[]; |
10 | | - github: string; |
11 | | - demo: string; |
| 11 | + github: string | null; |
| 12 | + demo: string | null; |
12 | 13 | }; |
13 | 14 |
|
14 | 15 | const projects: Project[] = [ |
15 | 16 | { |
16 | | - title: "E-Commerce Platform", |
| 17 | + title: "Mcodo :Learn Coding with AI", |
17 | 18 | description: |
18 | | - "A full-stack e-commerce solution with payment integration, admin dashboard, and real-time inventory management.", |
| 19 | + "Mcodo is an AI-powered learning platform that makes coding interactive, personalized, and fun for everyone—from beginners to pros.", |
19 | 20 | image: |
20 | 21 | "https://images.unsplash.com/photo-1557821552-17105176677c?w=800&q=80", |
21 | | - tags: ["React", "Node.js", "PostgreSQL", "Stripe"], |
22 | | - github: "#", |
23 | | - demo: "#", |
| 22 | + tags: ["Kotlin", "NodeJS", "Room-DB", "Ktor Client", "SSE"], |
| 23 | + github: null, |
| 24 | + demo: "https://play.google.com/store/apps/details?id=com.sohezsoft.mcodo&hl=en_IN", |
24 | 25 | }, |
25 | 26 | { |
26 | | - title: "Social Media Dashboard", |
| 27 | + title: "HRMS System", |
27 | 28 | description: |
28 | 29 | "Analytics dashboard for social media management with data visualization and automated reporting.", |
29 | 30 | image: |
30 | 31 | "https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=80", |
31 | | - tags: ["Next.js", "TypeScript", "Tailwind", "Chart.js"], |
32 | | - github: "#", |
33 | | - demo: "#", |
| 32 | + tags: [ |
| 33 | + "Next.js", |
| 34 | + "TypeScript", |
| 35 | + "Tailwind", |
| 36 | + "Express", |
| 37 | + "PostgreSQL", |
| 38 | + "Jetpack Compose", |
| 39 | + "Drizzel-ORM", |
| 40 | + ], |
| 41 | + github: null, |
| 42 | + demo: null, |
34 | 43 | }, |
35 | 44 | { |
36 | | - title: "AI Content Generator", |
| 45 | + title: "M.C.P : Marks & Percentage Calculator", |
37 | 46 | description: |
38 | | - "AI-powered content creation tool with natural language processing and multi-language support.", |
| 47 | + "powerful and easy-to-use solution for calculating academic performance. Built with HTML, CSS, JavaScript, html2canvas, and jsPDF.", |
39 | 48 | image: |
40 | 49 | "https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&q=80", |
41 | | - tags: ["React", "OpenAI", "Express", "MongoDB"], |
42 | | - github: "#", |
43 | | - demo: "#", |
| 50 | + tags: ["React", "Express", "MongoDB"], |
| 51 | + github: null, |
| 52 | + demo: "https://sohez.github.io/Marks-Percentage-Calculator/", |
44 | 53 | }, |
45 | 54 | { |
46 | 55 | title: "Task Management App", |
@@ -78,17 +87,11 @@ const Projects = () => { |
78 | 87 | return ( |
79 | 88 | <section className="w-full mt-25 px-6"> |
80 | 89 | <div className="max-w-7xl mx-auto flex flex-col gap-2 justify-center items-center"> |
81 | | - <div className="text-center flex flex-col justify-center items-center"> |
82 | | - <span className="underline decoration-1 decoration-red-500"> |
83 | | - Featured |
84 | | - </span> |
85 | | - <h2 className="font-display tracking-wide text-4xl font-bold text-gray-50"> |
86 | | - Projects |
87 | | - </h2> |
88 | | - <p className="text-gray-500"> |
89 | | - Technologies I use to craft digital experiences |
90 | | - </p> |
91 | | - </div> |
| 90 | + <SectionHeader |
| 91 | + title="Projects" |
| 92 | + subtitle="Featured" |
| 93 | + description="Technologies I use to craft digital experiences" |
| 94 | + /> |
92 | 95 |
|
93 | 96 | <div className="mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-6 lg:gap-7 auto-rows-fr items-stretch"> |
94 | 97 | {projects.map((project) => ( |
@@ -142,24 +145,28 @@ const ProjectCard = ({ project }: { project: Project }) => { |
142 | 145 |
|
143 | 146 | {/* Push the buttons to the bottom */} |
144 | 147 | <div className="mt-auto flex gap-3 pt-4 border-t border-gray-800"> |
145 | | - <a |
146 | | - href={project.github} |
147 | | - target="_blank" |
148 | | - rel="noopener noreferrer" |
149 | | - className="flex-1 flex justify-center items-center py-2.5 rounded-lg border border-gray-700 hover:border-red-500 hover:text-red-500 transition-all" |
150 | | - > |
151 | | - <Github className="h-4 w-4 mr-2" /> |
152 | | - Code |
153 | | - </a> |
154 | | - <a |
155 | | - href={project.demo} |
156 | | - target="_blank" |
157 | | - rel="noopener noreferrer" |
158 | | - className="flex-1 flex justify-center items-center py-2.5 rounded-lg border border-gray-700 hover:border-red-500 hover:text-red-500 transition-all" |
159 | | - > |
160 | | - <ExternalLink className="h-4 w-4 mr-2" /> |
161 | | - Demo |
162 | | - </a> |
| 148 | + {project.github && ( |
| 149 | + <a |
| 150 | + href={project.github} |
| 151 | + target="_blank" |
| 152 | + rel="noopener noreferrer" |
| 153 | + className="flex-1 flex justify-center items-center py-2.5 rounded-lg border border-gray-700 hover:border-red-500 hover:text-red-500 transition-all" |
| 154 | + > |
| 155 | + <Github className="h-4 w-4 mr-2" /> |
| 156 | + Code |
| 157 | + </a> |
| 158 | + )} |
| 159 | + {project.demo && ( |
| 160 | + <a |
| 161 | + href={project.demo} |
| 162 | + target="_blank" |
| 163 | + rel="noopener noreferrer" |
| 164 | + className="flex-1 flex justify-center items-center py-2.5 rounded-lg border border-gray-700 hover:border-red-500 hover:text-red-500 transition-all" |
| 165 | + > |
| 166 | + <ExternalLink className="h-4 w-4 mr-2" /> |
| 167 | + Demo |
| 168 | + </a> |
| 169 | + )} |
163 | 170 | </div> |
164 | 171 | </div> |
165 | 172 | </article> |
|
0 commit comments