Skip to content

Commit 85f377a

Browse files
committed
chore: style fix
1 parent 4d7ec3e commit 85f377a

File tree

1 file changed

+52
-45
lines changed

1 file changed

+52
-45
lines changed

src/app/components/home/Projects.tsx

Lines changed: 52 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,55 @@
11
import React from "react";
22
import { ExternalLink, Github } from "lucide-react";
33
import Image from "next/image";
4+
import SectionHeader from "../ui/SectionHeader";
45

56
type Project = {
67
title: string;
78
description: string;
89
image: string;
910
tags: string[];
10-
github: string;
11-
demo: string;
11+
github: string | null;
12+
demo: string | null;
1213
};
1314

1415
const projects: Project[] = [
1516
{
16-
title: "E-Commerce Platform",
17+
title: "Mcodo :Learn Coding with AI",
1718
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.",
1920
image:
2021
"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",
2425
},
2526
{
26-
title: "Social Media Dashboard",
27+
title: "HRMS System",
2728
description:
2829
"Analytics dashboard for social media management with data visualization and automated reporting.",
2930
image:
3031
"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,
3443
},
3544
{
36-
title: "AI Content Generator",
45+
title: "M.C.P : Marks & Percentage Calculator",
3746
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.",
3948
image:
4049
"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/",
4453
},
4554
{
4655
title: "Task Management App",
@@ -78,17 +87,11 @@ const Projects = () => {
7887
return (
7988
<section className="w-full mt-25 px-6">
8089
<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+
/>
9295

9396
<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">
9497
{projects.map((project) => (
@@ -142,24 +145,28 @@ const ProjectCard = ({ project }: { project: Project }) => {
142145

143146
{/* Push the buttons to the bottom */}
144147
<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+
)}
163170
</div>
164171
</div>
165172
</article>

0 commit comments

Comments
 (0)