Files
andwati-nextgen/src/app/portfolio/page.tsx
T
andwati 63007a1c09 Rebuild site in Tailwind to match adammaj.com layout with andwati content
- Port adammaj.com layout, sidebar and 3D bookshelf from Chakra to Tailwind v4,
  matched to measured pixel values
- Pages: About, Writing, Reading (bookshelf), Portfolio; content exported to
  markdown with YAML frontmatter, KaTeX math, callouts and YouTube embeds
- Shiki (github-light) code highlighting via rehype-pretty-code
- SEO: per-page metadata and canonicals, JSON-LD, generated OG images,
  sitemap, robots, RSS/JSON feeds, llms.txt
- Umami analytics via PUBLIC_UMAMI_SCRIPT_URL / PUBLIC_UMAMI_WEBSITE_ID
- Prettier + cspell for content, husky/lint-staged pre-commit hook
- Multi-stage Dockerfile (Node 24, pnpm, standalone output) for Dokploy
- Remove unused Chakra, emotion, framer-motion, posthog, next-seo and MDX deps
2026-09-30 12:38:09 +03:00

47 lines
1.4 KiB
TypeScript

import type { Metadata } from "next";
import { Mdx } from "@/components/Mdx";
import { getPortfolio } from "@/lib/content";
export const metadata: Metadata = {
title: "Portfolio",
description: "Projects and infrastructure-level software by Ian Andwati.",
alternates: { canonical: "/portfolio" },
};
export default function PortfolioPage() {
const items = getPortfolio();
return (
<div className="flex flex-col gap-4">
<h1 className="sr-only">Portfolio</h1>
<hr />
{items.map((item) => (
<div key={item.slug} className="flex flex-col gap-4">
<div className="flex flex-col gap-1">
<h2 className="font-bold">{item.data.title}</h2>
<p className="pb-4 text-sm text-gray-600">
{item.data.description}
</p>
<div className="prose text-sm text-gray-600">
<Mdx source={item.content} />
</div>
<div className="flex gap-6 pt-2">
{item.data.links?.map((l) => (
<a
key={l.url}
href={l.url}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-blue-600 hover:underline"
>
{l.label}
</a>
))}
</div>
</div>
<hr />
</div>
))}
</div>
);
}