import Link from "next/link"; import { Spotlight } from "../ui/Spotlight"; import { formatDate } from "@/lib/format"; import type { DevblogPost } from "@/lib/devblog"; type Props = { post: DevblogPost; /** Small label above the date. */ eyebrow?: string; /** Heading level, so the panel fits the page outline. */ as?: "h2" | "h3"; }; /** * A single post given real weight, as opposed to a row in `PostList`. * * Used by the home page and at the top of the devblog index: a list of one is * indistinguishable from an empty section, and even with twenty posts the most * recent one deserves more than the same 8rem row as the rest. */ export function PostFeature({ post, eyebrow = "Latest", as: Tag = "h3" }: Props) { return (
{eyebrow}
{post.title.toUpperCase()} {post.excerpt && (

{post.excerpt}

)} READ THE POST ); }