Files
NextEdu/src/app/(dashboard)/teacher/exams/create/page.tsx
SpecialX d1e4ccbf98 refactor(exams): redesign exam creation page with 3-mode selector
- Replace cramped 3-column grid with vertical layout
- Add 3 large selectable cards at top: Manual / AI / Rich Text Editor
- Rich Text Editor mode redirects to /teacher/exams/new
- Basic info form is now always visible (not hidden in AI mode)
- Exam mode config always visible at bottom
- Add "rich" to mode enum with validation bypass
- Replace all hardcoded English/Chinese strings with i18n keys
- Add 20+ new i18n keys to zh-CN and en (mode labels, descriptions, actions)
- Clean up mixed-language UI text
2026-06-24 13:23:13 +08:00

19 lines
624 B
TypeScript

import type { JSX } from "react"
import { getTranslations } from "next-intl/server"
import { ExamForm } from "@/modules/exams/components/exam-form"
export const dynamic = "force-dynamic"
export default async function CreateExamPage(): Promise<JSX.Element> {
const t = await getTranslations("examHomework")
return (
<div className="mx-auto w-full max-w-[1200px] space-y-6 p-6">
<div>
<h1 className="text-2xl font-bold tracking-tight">{t("exam.form.createTitle")}</h1>
<p className="text-muted-foreground">{t("exam.form.createDescription")}</p>
</div>
<ExamForm />
</div>
)
}