Each department page renders from its JSON file in
public/data/departments/<CODE>.json. Edit that JSON to change the content
(faculty, overview, curriculum, etc.), commit, and push — the deploy rebuilds
and the live site updates.
The matching src/data/department/<CODE>.ts file holds typed default values and
the page's data shape; the JSON is layered over it (missing JSON fields fall
back to the defaults). You normally only edit the JSON. Only touch the .ts
file to add a brand-new field to the page's data shape.
Each department has its own full page file:
src/Pages/departments/CE.tsxsrc/Pages/departments/CPE.tsxsrc/Pages/departments/ECE.tsxsrc/Pages/departments/EE.tsxsrc/Pages/departments/IE.tsxsrc/Pages/departments/MFE.tsxsrc/Pages/departments/ME.tsxsrc/Pages/departments/MEE.tsx
Edit your own department file directly and add a new <section> block.
Example (CE.tsx):
export default function CEPage() {
// ... existing code
return (
<div className="bg-white">
{/* existing sections */}
<section id="ce-custom" className="max-w-6xl mx-auto px-6 pt-16">
<h2 className="text-2xl font-bold">CE Custom Section</h2>
<p className="mt-2 text-sm text-gray-600">Your section content here.</p>
</section>
{/* existing sections continue */}
</div>
);
}- Edit only your own department TSX file.
- Edit only your own JSON file in
public/data/departments/<CODE>.json. - Do not modify other departments' TSX/JSON files.