"use client"; import Link from "next/link"; import { useProfile } from "../context/ProfileContext"; import { ProjectCard } from "../components/ProjectCard"; // Homepage teaser: the first 3 projects (ordered by size then name, per the API) // plus a button through to the full /projects page. export function FeaturedProjects() { const { projects, loading } = useProfile(); const top = projects.slice(0, 3); return (

Featured Projects

A few things I've been building lately.

{loading ? (

Loading projects…

) : top.length === 0 ? (
No projects published yet.
) : (
{top.map((project) => ( ))}
)}
View all projects
); }