The All tab is now a click-through of category cards — Books, Lectures & Conversations, Other quizzes — each opening its books or years, then the quizzes themselves. Only categories with quizzes get a card. The position and tab live in the URL (?in=books&book=bg, ?tab=todo), so refresh, Back and shared links keep your place. Book quizzes list in chapter order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
import { Suspense } from "react";
|
|
import type { Metadata } from "next";
|
|
import { ogForQuizzes } from "@/lib/og";
|
|
import { QuizzesList } from "./quizzes-list";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Quizzes",
|
|
description:
|
|
"Test your understanding of Śrīla Prabhupāda's books, lectures and conversations.",
|
|
...ogForQuizzes(),
|
|
};
|
|
|
|
export default function QuizzesPage() {
|
|
// The list reads its tab and category from the URL (useSearchParams),
|
|
// which needs a Suspense boundary to render.
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<QuizzesList />
|
|
</Suspense>
|
|
);
|
|
}
|