Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

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

whf2772cf647ce2
diff --git a/web/app/(workspace)/learning/[bookId]/page.tsx b/web/app/(workspace)/learning/[bookId]/page.tsx
new file mode 100644
index 000000000..e941e21c4
--- /dev/null
+++ b/web/app/(workspace)/learning/[bookId]/page.tsx
@@ -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>
+ );
+}
diff --git a/web/app/(workspace)/learning/page.tsx b/web/app/(workspace)/learning/page.tsx
new file mode 100644
index 000000000..44b808acc
--- /dev/null
+++ b/web/app/(workspace)/learning/page.tsx
@@ -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>
+ );
+}