Dev Helpers
← Back

Long read landing page

Place this file at app/editorial/page.tsx in an App Router project.

Open this example in the interactive library

Source code

// app/editorial/page.tsx

export default function LongReadLandingPage() {
  const posts = [
    { title: "Paper mills", day: "2028-04-01", desk: "News", words: 840 },
    { title: "At the kiln", day: "2028-04-03", desk: "Art", words: 1500 },
    { title: "City briefs", day: "2028-04-03", desk: "News", words: 540 },
  ];
  return (
    <ol>
      {posts
        .filter((p) => p.words >= 1000)
        .map((p) => (
          <li key={p.title}>
            {p.title} · {Math.ceil(p.words / 200)} min
          </li>
        ))}
    </ol>
  );
}