From ce595da37afcb5f0e09c13961881597bbd72b895 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 8 Apr 2025 13:59:42 +0530 Subject: [PATCH] chore: unlink wip things --- src/pages/main/Work.tsx | 27 +++++++++++---------------- src/pages/main/data/project.ts | 12 ++++++++++-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/pages/main/Work.tsx b/src/pages/main/Work.tsx index f7bb9dd..799028f 100644 --- a/src/pages/main/Work.tsx +++ b/src/pages/main/Work.tsx @@ -48,16 +48,11 @@ const styles = { `, }; -const ProjectUnit: React.FC = ({ - title, - url, - description, - cat, - wip, - tags, -}) => { +const ProjectUnit: React.FC = unit => { return ( -
+
= ({ height: 100%; text-decoration: none; font-weight: 500; - cursor: ${wip ? "default" : "pointer"}; + cursor: ${unit.wip ? "default" : "pointer"}; `} - href={url} + href={unit.wip ? undefined : unit.url} target="_blank" rel="noreferrer">
-

{title}

+

{unit.title}

- {"{"} {cat} {"}"} + {"{"} {unit.cat} {"}"}

= ({ margin-bottom: 0.8rem; font-size: 0.9rem; `}> - {description} + {unit.description}

= ({ font-size: 0.8rem; margin-top: auto; `}> - {tags.map(tag => ( + {unit.tags.map(tag => ( {tag} @@ -184,7 +179,7 @@ const Exp: React.FC = () => { cursor: default; `, )} - href={unit.url} + href={unit.wip ? undefined : unit.url} target="_blank" rel="noreferrer" title={unit.title + (unit.wip ? " (WIP)" : "")}> diff --git a/src/pages/main/data/project.ts b/src/pages/main/data/project.ts index f786532..480c62d 100644 --- a/src/pages/main/data/project.ts +++ b/src/pages/main/data/project.ts @@ -10,7 +10,8 @@ export type Project = { export const projects: Project[] = [ { title: window.location.hostname.split(".").slice(0, 2).join("."), - description: "This website.", + description: + "This website. You've probably missed some things. Look around.", url: "https://github.com/MKRhere/pw2", cat: "web", tags: ["react", "vite"], @@ -77,7 +78,7 @@ export const otherProjects: Project[] = [ title: "storymap", description: "Reverse-engineered thirdparty map renderer for Vintage Story in Zig ⚡️", - // url: "https://github.com/MadrasMC/storymap", + url: "https://github.com/MadrasMC/storymap", cat: "cli", tags: ["vintage-story", "zig"], wip: true, @@ -96,4 +97,11 @@ export const otherProjects: Project[] = [ cat: "lib", tags: ["postgresql", "json", "data-extraction"], }, + { + title: window.location.hostname.split(".").slice(0, 2).join("."), + description: "Did you find all the easter eggs? Keep looking.", + url: "https://github.com/MKRhere/pw2", + cat: "web", + tags: ["react", "vite"], + }, ];