Browse Source

chore: unlink wip things

master
Muthu Kumar 1 month ago
parent
commit
ce595da37a
Failed to extract signature
  1. 27
      src/pages/main/Work.tsx
  2. 12
      src/pages/main/data/project.ts

27
src/pages/main/Work.tsx

@ -48,16 +48,11 @@ const styles = {
`,
};
const ProjectUnit: React.FC<Project> = ({
title,
url,
description,
cat,
wip,
tags,
}) => {
const ProjectUnit: React.FC<Project> = unit => {
return (
<div className={styles.project} title={title + (wip ? " (WIP)" : "")}>
<div
className={styles.project}
title={unit.title + (unit.wip ? " (WIP)" : "")}>
<a
className={css`
display: flex;
@ -65,20 +60,20 @@ const ProjectUnit: React.FC<Project> = ({
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">
<header>
<h4>{title}</h4>
<h4>{unit.title}</h4>
<span
className={css`
color: var(--text-subdued);
font-size: 0.8rem;
font-family: monospace;
`}>
{"{"} {cat} {"}"}
{"{"} {unit.cat} {"}"}
</span>
</header>
<p
@ -87,7 +82,7 @@ const ProjectUnit: React.FC<Project> = ({
margin-bottom: 0.8rem;
font-size: 0.9rem;
`}>
{description}
{unit.description}
</p>
<p
className={css`
@ -96,7 +91,7 @@ const ProjectUnit: React.FC<Project> = ({
font-size: 0.8rem;
margin-top: auto;
`}>
{tags.map(tag => (
{unit.tags.map(tag => (
<span key={tag} className={styles.tag}>
{tag}
</span>
@ -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)" : "")}>

12
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"],
},
];

Loading…
Cancel
Save