Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/blogs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const BlogsPage = async () => {
patterns, and lessons I pick up along the way. Each piece is a snapshot
of how I was thinking about the problem at the time.
</Summary>
<hr className="border-tertiary mt-10" />
<section className="mt-10 flex flex-col gap-7">
{blogs.map((blog) => (
<Blog
Expand Down
40 changes: 30 additions & 10 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,30 @@
--bg-astro: #c2410c26;
--cloudinary: #a5b4fc;
--bg-cloudinary: #4338ca26;
--cli: #c4b5fd;
--bg-cli: #6d28d926;
--css: #67e8f9;
--bg-css: #0e749026;
--ejs: #bef264;
--bg-ejs: #4d7c0f26;
--cli: #cbd5e1;
--bg-cli: #33415526;
--clap: #cbd5e1;
--bg-clap: #33415526;
--code-gen: #cbd5e1;
--bg-code-gen: #33415526;
--collections: #cbd5e1;
--bg-collections: #33415526;
--developer-tools: #cbd5e1;
--bg-developer-tools: #33415526;
--express: #cbd5e1;
--bg-express: #33415526;
--go: #67e8f9;
--bg-go: #0e749026;
--interpreter: #f9a8d4;
--bg-interpreter: #be185d26;
--interpreter: #cbd5e1;
--bg-interpreter: #33415526;
--javascript: #fde047;
--bg-javascript: #a1620726;
--library: #fca5a5;
--bg-library: #b91c1c26;
--jwt: #f9a8d4;
--bg-jwt: #be185d26;
--language-design: #cbd5e1;
--bg-language-design: #33415526;
--library: #cbd5e1;
--bg-library: #33415526;
--mdx: #fcd34d;
--bg-mdx: #fcd34d26;
--mongodb: #86efac;
Expand All @@ -51,10 +59,20 @@
--bg-netlify: #0f766e26;
--nextjs: #d4d4d4;
--bg-nextjs: #a3a3a326;
--notes: #cbd5e1;
--bg-notes: #33415526;
--package: #cbd5e1;
--bg-package: #33415526;
--parsing: #cbd5e1;
--bg-parsing: #33415526;
--passport: #6ee7b7;
--bg-passport: #6ee7b726;
--postgresql: #93c5fd;
--bg-postgresql: #1d4ed826;
--prisma: #cbd5e1;
--bg-prisma: #33415526;
--productivity: #cbd5e1;
--bg-productivity: #33415526;
--node: #86efac;
--bg-node: #15803d26;
--preact: #d8b4fe;
Expand All @@ -69,6 +87,8 @@
--bg-tailwind: #0e749026;
--typescript: #93c5fd;
--bg-typescript: #1d4ed826;
--utility: #cbd5e1;
--bg-utility: #33415526;
--vercel: #d1d5db;
--bg-vercel: #37415126;

Expand Down
133 changes: 88 additions & 45 deletions app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,96 @@ import { type ProjectProps, projects } from "@/lib/projects";
import Icon from "@/components/ui/Icon";
import JumpToTop from "@/components/JumpToTop";

export default function ProjectPage() {
const { tools, apps } = projects.reduce<{
tools: ProjectProps[];
apps: ProjectProps[];
}>(
(groups, project) => {
const group = project.src ? groups.apps : groups.tools;
group.push(project);
return groups;
},
{ tools: [], apps: [] },
);

const TOOLS_TITLE = "Tools, libraries, and experiments";
const APPS_TITLE = "Applications and websites";

return (
<>
<Heading title="Projects" emoji="🔨" />
<Summary>
I enjoy building things and bringing ideas to life through software.
Here you&apos;ll find a collection of projects I&apos;ve worked on,
technologies I&apos;ve explored, and lessons I&apos;ve picked up along
the way. This page groups projects into two sections:{" "}
<a href="#tools" className="text-accent hover:text-[#0c885f]">
{TOOLS_TITLE}
</a>{" "}
and{" "}
<a href="#apps" className="text-accent hover:text-[#0c885f]">
{APPS_TITLE}
</a>
.
</Summary>
<ProjectSection
id="tools"
title={TOOLS_TITLE}
description="Technical projects, utilities, and experiments ranging from libraries to command-line tools."
projects={tools}
/>
<ProjectSection
id="apps"
title={APPS_TITLE}
description="Full-stack projects that bring together various aspects of development."
projects={apps}
/>
<JumpToTop slug={"/projects"} />
</>
);
}

const ProjectSection = ({
id,
title,
description,
projects,
}: {
id: string;
title: string;
description: string;
projects: ProjectProps[];
}) => {
return (
<section className="mt-10 flex flex-col gap-6">
<div className="flex flex-col gap-2">
<h2 className="text-primary" id={id}>
{title}
</h2>
<p className="text-tertiary leading-relaxed">{description}</p>
</div>
<ul className="flex flex-col gap-4">
{projects.map((props: ProjectProps) => {
return (
<Project
key={props.title}
src={props.src}
repo={props.repo}
title={props.title}
createdAt={props.createdAt}
technologies={props.technologies}
description={props.description}
/>
);
})}
</ul>
</section>
);
};

const Project = ({
src,
site,
repo,
title,
description,
Expand Down Expand Up @@ -42,18 +129,6 @@ const Project = ({
hover="hover:stroke-secondary"
/>
</a>
{site && (
<a href={site}>
<Icon
name="external-link"
width="18"
height="18"
stroke="stroke-primary"
strokeWidth={1.25}
hover="hover:stroke-secondary"
/>
</a>
)}
</div>
</div>
<ul className="text-tertiary flex flex-wrap gap-2 text-xs">
Expand All @@ -77,35 +152,3 @@ const Project = ({
</li>
);
};

export default function ProjectPage() {
return (
<>
<Heading title="Projects" emoji="🔨" />
<Summary>
I enjoy building things and bringing ideas to life through software.
Here you&apos;ll find a collection of projects I&apos;ve worked on,
technologies I&apos;ve explored, and lessons I&apos;ve picked up along
the way.
</Summary>
<hr className="border-tertiary mt-10" />
<ul className="mt-10 flex flex-col gap-12">
{projects.map((props: ProjectProps) => {
return (
<Project
key={props.title}
src={props.src}
site={props.site}
repo={props.repo}
title={props.title}
createdAt={props.createdAt}
technologies={props.technologies}
description={props.description}
/>
);
})}
</ul>
<JumpToTop slug={"/projects"} />
</>
);
}
62 changes: 43 additions & 19 deletions components/ui/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { cn } from "@/lib/utils";
import { type Technologies } from "@/lib/projects";
import React from "@/icons/react.svg";
import JavaScript from "@/icons/javascript.svg";
import CSS from "@/icons/css.svg";
import Go from "@/icons/go.svg";
import Rust from "@/icons/rust.svg";
import Cloudinary from "@/icons/cloudinary.svg";
import EJS from "@/icons/ejs.svg";
import Node from "@/icons/node.svg";
import Express from "@/icons/express.svg";
import MongoDB from "@/icons/mongodb.svg";
Expand All @@ -19,6 +19,9 @@ import Vercel from "@/icons/vercel.svg";
import Railway from "@/icons/railway.svg";
import Astro from "@/icons/astro.svg";
import Preact from "@/icons/preact.svg";
import PostgreSQL from "@/icons/postgresql.svg";
import Prisma from "@/icons/prisma.svg";
import JWT from "@/icons/jwt.svg";
import Github from "@/icons/github.svg";
import ExternalLink from "@/icons/external-link.svg";
import UpArrow from "@/icons/uparrow.svg";
Expand Down Expand Up @@ -67,6 +70,18 @@ export const icons: Record<
{...props}
/>
),
go: (props) => (
<Go
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
rust: (props) => (
<Rust
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
cloudinary: (props) => (
<Cloudinary
className={cn(props.hover, props.stroke, props.fill, props.className)}
Expand Down Expand Up @@ -106,18 +121,6 @@ export const icons: Record<
{...props}
/>
),
css: (props) => (
<CSS
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
ejs: (props) => (
<EJS
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
tailwind: (props) => (
<Tailwind className={cn(props.hover, props.className)} {...props} />
),
Expand Down Expand Up @@ -163,6 +166,24 @@ export const icons: Record<
{...props}
/>
),
postgresql: (props) => (
<PostgreSQL
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
prisma: (props) => (
<Prisma
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
jwt: (props) => (
<JWT
className={cn(props.hover, props.stroke, props.fill, props.className)}
{...props}
/>
),
github: (props) => (
<Github
className={cn(props.hover, props.stroke, props.fill, props.className)}
Expand All @@ -185,15 +206,18 @@ export const icons: Record<
twitter: (props) => <></>,
blogs: (props) => <></>,
projects: (props) => <></>,
go: (props) => <></>,
rust: (props) => <></>,
cli: (props) => <></>,
clap: (props) => <></>,
package: (props) => <></>,
library: (props) => <></>,
utility: (props) => <></>,
productivity: (props) => <></>,
notes: (props) => <></>,
collections: (props) => <></>,
"language-design": (props) => <></>,
parsing: (props) => <></>,
"code-gen": (props) => <></>,
interpreter: (props) => <></>,
jwt: (props) => <></>,
postgresql: (props) => <></>,
prisma: (props) => <></>,
};

export default Icon;
4 changes: 0 additions & 4 deletions icons/css.svg

This file was deleted.

1 change: 0 additions & 1 deletion icons/ejs.svg

This file was deleted.

1 change: 1 addition & 0 deletions icons/go.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/jwt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/postgresql.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/prisma.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading