Skip to content

Commit 9f72c92

Browse files
committed
feature create lesson page: scaffold route /admin/courses/[courseId]/lesson/create
1 parent be63d27 commit 9f72c92

File tree

1 file changed

+23
-0
lines changed
  • src/app/admin/courses/[courseId]/lesson/create

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from "react";
2+
3+
export default function CreateLessonPage({
4+
params,
5+
}: {
6+
params: { courseId: string };
7+
}) {
8+
return (
9+
<div className="mx-auto w-full max-w-3xl space-y-6">
10+
<header>
11+
<h1 className="text-2xl font-semibold">Create Lesson</h1>
12+
<p className="text-sm text-neutral-500">
13+
Course ID: <span className="font-mono">{params.courseId}</span>
14+
</p>
15+
</header>
16+
17+
{/* Step 2 will replace this with the real form */}
18+
<div className="rounded-lg border bg-white p-6 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300">
19+
Form coming next: title, description, unit dropdown, “Create Unit” modal.
20+
</div>
21+
</div>
22+
);
23+
}

0 commit comments

Comments
 (0)