Skip to content

Commit 730cb38

Browse files
committed
[ UPDATE ] Modify projects
- Add preview options for deploy apps
1 parent c7a3362 commit 730cb38

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

src/components/ProjectCard.jsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Card } from "@/components/ui/card";
22
import techColors from "../constants/techColors";
3+
import { Button } from "@/components/ui/button";
4+
import { ExternalLink } from "lucide-react";
35

46
const ProjectCard = ({ project }) => {
57
const getTechColor = (tech) => techColors[tech] || "bg-white/20 text-white";
@@ -43,7 +45,20 @@ const ProjectCard = ({ project }) => {
4345
))}
4446
</div>
4547

46-
{/* GitHub Link */}
48+
{project.preview && (
49+
<a
50+
href={project.preview}
51+
target="_blank"
52+
rel="noopener noreferrer"
53+
className="inline-flex items-center mb-2"
54+
>
55+
<Button variant="default" size="sm">
56+
<ExternalLink className="mr-2 h-4 w-4" />
57+
Preview
58+
</Button>
59+
</a>
60+
)}
61+
4762
<a
4863
href={project.link}
4964
target="_blank"

src/components/Projects.jsx

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,26 @@ const Projects = () => {
3535
link: "https://github.com/JjayFabor/swift-bidder"
3636
},
3737
{
38-
id: 4,
39-
title: "BridgeAI",
40-
description: "An educational platform for personalized learning.",
41-
image: "projects/bridgeAI.png",
42-
techStack: ["Python", "GeminiAPI", "Flutter", "Dart", "Flask"],
43-
status: "ongoing",
44-
category: "Mobile Application",
45-
link: "https://github.com/JjayFabor/bridgeAI"
46-
},
38+
id: 4,
39+
title: "DevTrack API",
40+
description: "A personal productivity API for developers to manage tasks, log learning sessions, track progress on side projects.",
41+
image: "projects/default.png",
42+
techStack: ["Laravel", "PHP", "Laravel Scribe", "Postman", "RESTful API"],
43+
status: "ongoing",
44+
category: "Backend API",
45+
preview: "https://devtrack-api-production.up.railway.app/docs",
46+
link: "https://github.com/JjayFabor/devtrack-api"
47+
},
48+
{
49+
id: 5,
50+
title: "BridgeAI",
51+
description: "An educational platform for personalized learning.",
52+
image: "projects/bridgeAI.png",
53+
techStack: ["Python", "GeminiAPI", "Flutter", "Dart", "Flask"],
54+
status: "ongoing",
55+
category: "Mobile Application",
56+
link: "https://github.com/JjayFabor/bridgeAI"
57+
},
4758
];
4859

4960
const [selectedCategory, setSelectedCategory] = useState("All");

src/constants/techColors.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const techColors = {
1515
Laravel: "bg-red-500/30 text-red-100",
1616
Python: "bg-blue-600/30 text-blue-100",
1717
Flask: "bg-gray-400/30 text-gray-100",
18+
Postman: "bg-orange-600/20 text-orange-400",
19+
"RESTful API": "bg-purple-600/20 text-purple-400",
1820
Node: "bg-green-500/30 text-green-100",
1921
Express: "bg-gray-500/30 text-gray-100",
2022
Dart: "bg-blue-700/30 text-blue-100",

0 commit comments

Comments
 (0)