Now I'll add detail pages and submission forms for both courses and universities. First, upgrading the router to support dynamic paths, plus a small persistent store so user-submitted entries become real, browsable pages.
Now the detail content layer — per-course and per-university depth, with a generator so community-submitted entries also get complete pages.
Now appending a detail-page hero and sticky in-page tab bar to the shared shell, then building both detail pages.
Now the two submission forms — three-step wizards with live preview, validation, and a real detail page on submit.
Now wiring the list pages and explorer to the new detail pages and forms.
Now adding the "Add" links to the footer and building to verify everything compiles.
Build is clean. Here's what I added.
Routing upgrade — src/router.tsx now parses dynamic paths (/programs/:id, /universities/:id, plus /new sub-routes) while still treating plain anchors like #cta as in-page jumps. App.tsx keys detail pages by id so navigating between two courses remounts cleanly, and nav highlighting uses the top-level section.
Course detail pages (/programs/csit, etc.) — a full profile per course: dark hero with field badge, fee/duration/entrance/demand stats and two CTAs; a sticky scroll-spy tab bar (Overview → Fees → Curriculum → Colleges → Careers → How to apply → FAQ); eligibility panel; a proportional fee-split visualisation; a year-by-year curriculum grid; real colleges teaching it pulled from the directory; salary and demand data for the field; a four-step admission path; an accordion FAQ; and related courses. MBBS, BE, CSIT and BBA have hand-written depth (real MEC fee-ceiling notes, IOE-vs-private cost logic, syllabus stages); every other course — including user-submitted ones — is filled by a generator so no page is ever thin.
University detail pages (/universities/tu, etc.) — history and context for all nine universities, an "at a glance" panel with website/phone, faculties, a programs-and-fees table where each row deep-links to its course page, affiliated colleges from the directory, campus facilities, a four-step admissions path, a contribute-data callout, and cross-links to other universities.
Add-a-course form (/programs/new) — a three-step wizard with a progress bar, per-step validation (including duplicate detection against existing courses), a chip input for colleges, and a live preview card that updates as you type.
Add-a-university form (/universities/new) — same wizard pattern with a short-code validator, year and focus-area pickers, and a dynamic repeatable program table (add/remove rows for name, fee, entrance).
Submissions are real — a useSyncExternalStore store persists to localStorage, so a submitted entry immediately appears in the course grid and the university explorer marked "Community draft", and gets its own working detail page. The success screen links straight to it.
Entry points everywhere — CTAs in both page heroes, a dashed "Add a course" tile at the end of the course grid, an "Add a university" chip in the explorer, profile links on every card, and a new Contribute column in the footer.
Files built: src/router.tsx, src/store.ts, src/components/Form.tsx, src/detaildata.tsx, src/pages/PageShell.tsx, src/pages/ProgramDetail.tsx, src/pages/UniversityDetail.tsx, src/pages/AddCourse.tsx, src/pages/AddUniversity.tsx, src/App.tsx, src/components/Explorer.tsx, src/pages/Programs.tsx, src/pages/Universities.tsx, src/components/Chrome.tsx