Files
portfolio/app/projects/[slug]/page.tsx
T
donnyandClaude Opus 5.5 abd5fd4a58 feat: refresh uses, testimonials, and theme
Uses page:
- Merge "For work"/"For fun" into one Hardware list; drop the MS-01.
- Gaming rig becomes the Arch "Daily driver" (9950X, Looking Glass VM);
  custom workstation is now the Proxmox box (5900X, 128GB, RTX 3090).
- Swap MetaMCP -> ContextForge and Open WebUI -> Paseo; add Codex,
  OpenCode, and OpenRouter.

Testimonials:
- Add Douglas Wilhelm; trim all quotes to ~55-60 words of verbatim
  sentences so cards stay the same size.
- Move above projects and restyle as a card with gold-bordered initials,
  inline gold quote marks, and a countdown line under the divider.
- Fix carousel bugs: hooks after an early return, timer not resetting on
  manual navigation, layout shift between quotes of different lengths.
  The countdown animation now drives rotation, and hover/keyboard focus
  pause it.

Theme:
- Centralize colors and fonts as CSS variables in globals.css; the
  neutral-* scale reads from them, and the header's hardcoded bg is gone.
- New defaults: Manrope (body), EB Garamond (display), zinc greys, gold.
- Add a dev-only theme switcher for A/B-ing fonts and palettes; it is
  compiled out of production builds.
- Remove dead runtime-built hover classes on the about page that never
  generated CSS.

Copy: replace em dashes with plain hyphens site-wide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:16:13 -07:00

122 lines
3.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import { IconArrowNarrowLeft, IconExternalLink } from "@tabler/icons-react";
import Hero from "@/components/content/Hero";
import SectionLabel from "@/components/layout/SectionLabel";
import { colors, projects } from "@/constants";
import ProjectCarousel from "@/components/content/ProjectCarousel";
export function generateStaticParams() {
return projects.map((project) => ({ slug: project.slug }));
}
export async function generateMetadata({
params,
}: {
params: Promise<{ slug: string }>;
}): Promise<Metadata> {
const { slug } = await params;
const project = projects.find((p) => p.slug === slug);
if (!project) return { title: "Project - Angel Mankel" };
return {
title: `${project.title} - Angel Mankel`,
description: project.description,
};
}
export default async function ProjectPage({
params,
}: {
params: Promise<{ slug: string }>;
}) {
const { slug } = await params;
const project = projects.find((p) => p.slug === slug);
if (!project) notFound();
return (
<div className="space-y-14">
<Link
href="/projects"
className="inline-flex items-center gap-1 text-sm text-neutral-400 transition-colors hover:text-neutral-200"
>
<IconArrowNarrowLeft size={18} />
All projects
</Link>
<Hero label={project.title} subtitle={project.description}>
<div className="space-y-3">
<p className="text-md text-neutral-400">
{project.year} - {project.stack.join(" · ")}
</p>
<a
href={project.liveUrl}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-lg border border-neutral-700 px-4 py-2 text-[15px] font-medium transition-colors hover:border-neutral-500"
style={{ color: colors.accent }}
>
Open live app
<IconExternalLink size={18} />
</a>
</div>
</Hero>
{/* Screenshots */}
{project.screenshots.length > 0 && (
<ProjectCarousel screenshots={project.screenshots} />
)}
{/* Overview */}
<section className="space-y-4">
<SectionLabel label="Overview" />
<div className="text-[17px] leading-[1.65] text-neutral-200">
{project.overview[0]}
</div>
</section>
{/* Problem Solved */}
<section className="space-y-4">
<SectionLabel label="Problem Solved" />
<div className="text-[17px] leading-[1.65] text-neutral-200">
{project.overview[1]}
</div>
</section>
{/* What I learned */}
<section className="space-y-4">
<SectionLabel label="What I learned" />
<ul className="space-y-2 text-[15px] leading-[1.65] text-neutral-200">
{project.learned.map((item) => (
<li
key={item}
className="before:mr-2 before:text-neutral-600 before:content-['–']"
>
{item}
</li>
))}
</ul>
</section>
{/* What I'd do differently */}
<section className="space-y-4">
<SectionLabel label="What I'd do differently" />
<ul className="space-y-2 text-[15px] leading-[1.65] text-neutral-200">
{project.improvements.map((item) => (
<li
key={item}
className="before:mr-2 before:text-neutral-600 before:content-['–']"
>
{item}
</li>
))}
</ul>
</section>
</div>
);
}