Block 7: /learning route skeleton (page.tsx + [bookId]/page.tsx), Next.js build verified

This commit is contained in:
whf
2026-05-14 02:30:56 +08:00
parent 43973c7bc0
commit 2772cf647c
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
"use client";
import { useParams } from "next/navigation";
export default function LearningBookPage() {
const params = useParams<{ bookId: string }>();
return (
<div className="p-8">
<h1 className="text-xl font-bold">Learning: {params.bookId}</h1>
<p className="text-[var(--muted-foreground)] mt-2">Coming soon...</p>
</div>
);
}

View File

@@ -0,0 +1,18 @@
"use client";
import { useTranslation } from "react-i18next";
import { Lightbulb } from "lucide-react";
export default function LearningPage() {
const { t } = useTranslation();
return (
<div className="flex flex-col items-center justify-center h-full p-8">
<Lightbulb className="w-16 h-16 text-[var(--primary)] mb-4" />
<h1 className="text-2xl font-bold mb-2">Guided Learning</h1>
<p className="text-[var(--muted-foreground)]">
Framework v1.8.2 — structured mastery-based learning
</p>
</div>
);
}