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> = ({ const ProjectUnit: React.FC<Project> = unit => {
title,
url,
description,
cat,
wip,
tags,
}) => {
return ( return (
<div className={styles.project} title={title + (wip ? " (WIP)" : "")}> <div
className={styles.project}
title={unit.title + (unit.wip ? " (WIP)" : "")}>
<a <a
className={css` className={css`
display: flex; display: flex;
@ -65,20 +60,20 @@ const ProjectUnit: React.FC<Project> = ({
height: 100%; height: 100%;
text-decoration: none; text-decoration: none;
font-weight: 500; font-weight: 500;
cursor: ${wip ? "default" : "pointer"}; cursor: ${unit.wip ? "default" : "pointer"};
`} `}
href={url} href={unit.wip ? undefined : unit.url}
target="_blank" target="_blank"
rel="noreferrer"> rel="noreferrer">
<header> <header>
<h4>{title}</h4> <h4>{unit.title}</h4>
<span <span
className={css` className={css`
color: var(--text-subdued); color: var(--text-subdued);
font-size: 0.8rem; font-size: 0.8rem;
font-family: monospace; font-family: monospace;
`}> `}>
{"{"} {cat} {"}"} {"{"} {unit.cat} {"}"}
</span> </span>
</header> </header>
<p <p
@ -87,7 +82,7 @@ const ProjectUnit: React.FC<Project> = ({
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
font-size: 0.9rem; font-size: 0.9rem;
`}> `}>
{description} {unit.description}
</p> </p>
<p <p
className={css` className={css`
@ -96,7 +91,7 @@ const ProjectUnit: React.FC<Project> = ({
font-size: 0.8rem; font-size: 0.8rem;
margin-top: auto; margin-top: auto;
`}> `}>
{tags.map(tag => ( {unit.tags.map(tag => (
<span key={tag} className={styles.tag}> <span key={tag} className={styles.tag}>
{tag} {tag}
</span> </span>
@ -184,7 +179,7 @@ const Exp: React.FC = () => {
cursor: default; cursor: default;
`, `,
)} )}
href={unit.url} href={unit.wip ? undefined : unit.url}
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
title={unit.title + (unit.wip ? " (WIP)" : "")}> title={unit.title + (unit.wip ? " (WIP)" : "")}>

12
src/pages/main/data/project.ts

@ -10,7 +10,8 @@ export type Project = {
export const projects: Project[] = [ export const projects: Project[] = [
{ {
title: window.location.hostname.split(".").slice(0, 2).join("."), 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", url: "https://github.com/MKRhere/pw2",
cat: "web", cat: "web",
tags: ["react", "vite"], tags: ["react", "vite"],
@ -77,7 +78,7 @@ export const otherProjects: Project[] = [
title: "storymap", title: "storymap",
description: description:
"Reverse-engineered thirdparty map renderer for Vintage Story in Zig ⚡️", "Reverse-engineered thirdparty map renderer for Vintage Story in Zig ⚡️",
// url: "https://github.com/MadrasMC/storymap", url: "https://github.com/MadrasMC/storymap",
cat: "cli", cat: "cli",
tags: ["vintage-story", "zig"], tags: ["vintage-story", "zig"],
wip: true, wip: true,
@ -96,4 +97,11 @@ export const otherProjects: Project[] = [
cat: "lib", cat: "lib",
tags: ["postgresql", "json", "data-extraction"], 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