Files
ai-taxonomy-literature-anal…/components/Layout.tsx
T
zzyang d6fc7c1dfa Add types-of-work classification, benchmarks and score pages
- Work type = area x role (fixed vs varied), vocabulary in scripts/worktypes.json
- LLM-read labels for 2,678 agent-related papers (data/labels), rule labels for the rest
- Per-type synthesis notes (why-same, sub-variants, benchmarks, workflow)
- Pages: /work-types matrix and detail (timeline, benchmarks, workflow, score charts), /benchmarks
- build_worktypes.py adds work-type tables to data/papers.db

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bhs9LU8eMixk6g1kb1d3j7
2026-10-21 11:55:46 +00:00

34 lines
1.1 KiB
TypeScript

import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { ReactNode } from 'react';
const LINKS = [
{ href: '/', label: 'Overview' },
{ href: '/papers', label: 'Papers' },
{ href: '/work-types', label: 'Types of work' },
{ href: '/benchmarks', label: 'Benchmarks' },
{ href: '/taxonomy', label: 'Taxonomy' },
];
export default function Layout({ title, children }: { title?: string; children: ReactNode }) {
const { pathname } = useRouter();
return (
<>
<Head>
<title>{title ? `${title} · LLM Survey 2026` : 'LLM Research Survey 2026'}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<nav className="nav">
<Link href="/" className="brand">LLM Survey 2026</Link>
{LINKS.map((l) => (
<Link key={l.href} href={l.href} className={(l.href === '/' ? pathname === '/' : pathname.startsWith(l.href)) ? 'active' : ''}>
{l.label}
</Link>
))}
</nav>
<main className="wrap">{children}</main>
</>
);
}