24 lines
892 B
TypeScript
24 lines
892 B
TypeScript
import Head from 'next/head';
|
|
import Link from 'next/link';
|
|
import { ReactNode } from 'react';
|
|
|
|
export default function Layout({ title, children }: { title?: string; children: ReactNode }) {
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>{title ? `${title} · AI-tlas` : 'AI-tlas · AI Taxonomy, Literature Analysis & Survey'}</title>
|
|
<meta name="description" content="Explore AI papers through topic taxonomies, literature analysis and structured surveys." />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
</Head>
|
|
<nav className="nav">
|
|
<Link href="/" className="brand">AI-tlas</Link>
|
|
<Link href="/#studies">Research</Link>
|
|
<Link href="/contents">Studies</Link>
|
|
<Link href="/editor" className="nav-editor">Editorial desk ↗</Link>
|
|
</nav>
|
|
<main className="wrap">{children}</main>
|
|
</>
|
|
);
|
|
}
|