mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 18:17:42 +08:00
Block 7: /learning route skeleton (page.tsx + [bookId]/page.tsx), Next.js build verified
This commit is contained in:
14
web/app/(workspace)/learning/[bookId]/page.tsx
Normal file
14
web/app/(workspace)/learning/[bookId]/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
18
web/app/(workspace)/learning/page.tsx
Normal file
18
web/app/(workspace)/learning/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user