57 lines
2.1 KiB
React
57 lines
2.1 KiB
React
import Head from "next/head";
|
|
import Link from "next/link";
|
|
import ReaderNav from "../../components/reader/ReaderNav";
|
|
import ReaderFooter from "../../components/reader/ReaderFooter";
|
|
import { LIBRARY, RECIPES } from "../../data/sample-chapter";
|
|
|
|
export default function ReadLibrary() {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Library · AiBook.fun reading demo</title>
|
|
<meta
|
|
name="description"
|
|
content="Library for the 2026 AiBook.fun field guide. Six verticals. One preview chapter open."
|
|
/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
</Head>
|
|
|
|
<ReaderNav />
|
|
<main>
|
|
<section className="section contents reader-library">
|
|
<div className="wrap reader-wide">
|
|
<span className="spec demo-chip">Reading demo · not the live book</span>
|
|
<h1 className="library-title">Library</h1>
|
|
<p className="library-lede">
|
|
Six verticals for the 2026 edition.
|
|
</p>
|
|
<div className="toc">
|
|
{LIBRARY.map((item) =>
|
|
item.status === "ready" ? (
|
|
<Link href={item.href} key={item.num}>
|
|
<span className="num">{item.num}</span>
|
|
<span className="name">{item.name}</span>
|
|
<span className="desc">{item.desc}</span>
|
|
<span className="toc-count">{RECIPES.length} workflows</span>
|
|
<span className="arrow" aria-hidden="true">
|
|
→
|
|
</span>
|
|
</Link>
|
|
) : (
|
|
<div className="toc-soon" key={item.num} aria-disabled="true">
|
|
<span className="num">{item.num}</span>
|
|
<span className="name">{item.name}</span>
|
|
<span className="desc">{item.desc}</span>
|
|
<span className="soon">Coming</span>
|
|
</div>
|
|
)
|
|
)}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<ReaderFooter />
|
|
</>
|
|
);
|
|
}
|