Repository Public MIT
1import { notFound } from "next/navigation";2import { Explorable } from "@/components/explorables";3import { ExplorableFrame } from "@/components/explorables/Frame";4import { PageHeader } from "@/components/ui/Bits";5import { getCourse } from "@/lib/content";6import { EXPLORABLES } from "@/modules/explorables/registry";78export const metadata = { title: "Explorables — banc d’essai", robots: { index: false, follow: false } };910/**11 * Preview-only bench of every explorable, outside any lesson: for review and for the automated checks12 * (keyboard, text version, 375 px, both themes). In a production build this route is a real 404: on the13 * public site an explorable only ever appears inside a published interactive lesson.14 */15export default async function ExplorablesBench() {16 if ((await getCourse()).mode !== "preview") notFound();17 return (18 <>19 <PageHeader eyebrow="Mode aperçu" title="Explorables — banc d’essai" lede="Chaque démonstration d’une séance, réécrite pour le navigateur. Sur le site public, elles ne paraissent que dans une leçon interactive publiée." />20 <div className="shell grid grid-cols-1 gap-10 py-10 md:py-14">21 {EXPLORABLES.map((e) => (22 <ExplorableFrame key={e.id} id={e.id} heading="h2" title={e.title} summary={e.summary} simplification={e.simplification} context={<>{e.session} · après la diapositive {e.slide}</>}>23 <Explorable id={e.id} />24 </ExplorableFrame>25 ))}26 </div>27 </>28 );29}30