Skip to content

Commit d697ac3

Browse files
committed
refactor: modify Projects section
1 parent 428cf26 commit d697ac3

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

components/project-card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export function ProjectCard({ title, desc, image, category, url, linkText }: Pro
4444
</CardHeader>
4545
<CardContent>
4646
<div className="flex justify-between text-sm text-muted-foreground">
47-
<div className="flex items-center py-1 px-2 rounded border text-uppercase">
48-
{/* <CircleIcon className="mr-1 h-3 w-3 fill-sky-400 text-sky-400" /> */}
47+
<div className="flex items-center">
4948
{ categories.filter((c) => c.title === category).map((cat, i) => {
5049
const Icon = Icons[cat.icon as keyof typeof Icons];
5150
return (
@@ -56,7 +55,6 @@ export function ProjectCard({ title, desc, image, category, url, linkText }: Pro
5655
}
5756
) }
5857
</div>
59-
{/* <StarIcon className="mr-1 h-3 w-3" /> */}
6058
<Link href={url} className="flex items-center hover:underline" target="_blank">
6159
{ linkText }
6260
<Icons.externalLink className="ml-1 h-3 w-3" />

data/projects.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
1-
export const categories = [
1+
import { Project, ProjectCategoryObj } from "@/types";
2+
3+
export const categories: ProjectCategoryObj[] = [
24
{
3-
title: "itbey",
5+
title: "itbey Co.",
46
icon: "briefcase",
5-
desc: ""
7+
desc: "In-production projects crafted for businesses at itbey Co."
68
},
79
{
810
title: "hack",
911
icon: "lightbulb",
10-
desc: ""
12+
desc: "Some 'dumb' ideas I have played or currently playing with."
1113
},
1214
{
1315
title: "tool",
1416
icon: "tool",
15-
desc: ""
17+
desc: "Tools that I've created to remove repitition from my workflow."
1618
},
1719
]
1820

19-
export const projects = [
21+
export const projects: Project[] = [
2022
{
2123
title: "RobustHR",
2224
url: "https://robusthr.com",
2325
linkText: "View Website",
2426
image: "/robusthr.png",
2527
desc: "A product website for an all-in-one HR management software.",
26-
category: "itbey"
28+
category: "itbey Co."
2729
},
2830
{
2931
title: "Multifreight Nig. Ltd.",
3032
url: "https://multifreightnig.com",
3133
linkText: "View Website",
3234
image: "/mfn.png",
3335
desc: "A website developed for logistic and supply chain company in Nigeria.",
34-
category: "itbey"
36+
category: "itbey Co."
3537
},
3638
{
3739
title: "Cybernetics Oil (CISL)",
3840
url: "https://cyberneticsoil.com/",
3941
linkText: "Visit Website",
4042
image: "/cisl.png",
4143
desc: "A website developed for a petroleum products trading company in Nigeria.",
42-
category: "itbey"
44+
category: "itbey Co."
4345
},
4446
];

types/index.d.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,21 @@ export type NavConfig = {
2626
items: MainNavItem[]
2727
}
2828

29-
export type Quote = string
29+
export type Quote = string
30+
31+
export type Project = {
32+
title: string
33+
url: string
34+
linkText: string
35+
image: string
36+
desc: string
37+
category: ProjectCategory
38+
}
39+
40+
export type ProjectCategoryObj = {
41+
title: ProjectCategory
42+
icon: string
43+
desc: string
44+
}
45+
46+
export type ProjectCategory = "itbey Co." | "hack" | "tool"

0 commit comments

Comments
 (0)