An interactive, responsive class timetable web application built with React 19, TypeScript, Vite, and the IBM Carbon Design System — originally created for BCA 7th Semester (Techno India (Hooghly Campus), Room 302) and structured so anyone can fork and adapt it for their own campus, department, or semester.
Live Demo: https://shadowamitendu.github.io/TimeTable/
- IBM Carbon Design System UI: Built with
@carbon/react,@carbon/icons-react,@carbon/styles, Inter, and Geist Mono, with instant switching between Carbon Gray 100 (g100dark theme) and Carbon White (whitelight theme). - Section Switching: Switch between Both (α & β), Section α (Alpha), or Section β (Beta) with automatic horizontal (
colSpan) and vertical (rowSpan) cell merging plus dynamic per-section page titles. - Elective Filtering: Toggle between Elective A (
BCAC701A + BCAC791A) and Elective B (BCAC701B + BCAC791B) with combined elective slots resolved automatically. - Interactive Faculty Highlight & Filter: Hover or click faculty items in the header dropdown or bottom legend to highlight matching classes and dim non-matching cells.
- Live Class Tracking: Highlights the current weekday, active period column, and ongoing class (
LIVEindicator refreshed every 30 seconds). Includes a dev-only simulation toggle innpm run dev. - Responsive Mobile Layout: Automatically switches to day-by-day Agenda Cards on small screens, with a side-nav option to switch to the full Matrix Grid.
- Print Preview & A4 Landscape PDF Export: Press
Ctrl+P/Cmd+P(or click Print Preview) on desktop to inspect a Carbon White A4 Landscape sheet with options to:- Toggle Show faculty & legends in print
- Toggle Show section column in print
- Export directly to PDF (
jspdf+html2canvas) or print via@media printwith clean blank empty cells
- Persistent Preferences: Saves selected section, elective, and theme in
localStorage.
- Framework: React 19, TypeScript 5.9, Vite 8
- Design System & Typography: IBM Carbon (
@carbon/react,@carbon/styles,@carbon/icons-react),@fontsource/inter,@fontsource/geist-mono - PDF Export:
jspdf+html2canvas(lazy-loaded on demand) - Testing: Vitest +
jsdom
# Clone the repository
git clone https://github.com/ShadowAmitendu/TimeTable.git
cd TimeTable
# Install dependencies
npm install
# Start local dev server (http://localhost:5173)
npm run dev| Command | Description |
|---|---|
npm run dev |
Start Vite dev server on port 5173 (includes dev-only Live Simulation button) |
npm run typecheck |
Run TypeScript type checking (tsc --noEmit) |
npm test |
Run unit tests with Vitest |
npm run build |
Type-check and build production bundle into dist/ |
npm run preview |
Preview the production build locally |
You can reuse this repository as-is for any university, school, or batch by updating the data files under src/data/:
- Campus, Semester & Footer Metadata — Edit
src/data/config.ts:- Set
college,shortCollege,institutionGroup,course,semester,room,routineDate,copyrightOwner, andcopyrightYear. - Update
ELECTIVESmetadata if your curriculum uses different elective groups.
- Set
- Period Timings — Edit
src/data/timeSlots.ts:- Adjust
TIME_SLOTS(start,end,displayStart,displayEnd, andisBreak) andDAYS.
- Adjust
- Faculty Directory — Edit
src/data/faculty.ts:- Add or replace faculty short codes and display names in
FACULTY.
- Add or replace faculty short codes and display names in
- Weekly Routine Data — Edit
src/data/schedule.json:- Keys
"1"–"6"map to Monday–Saturday under"alpha"and"beta". - Each slot accepts
{ "subject": "...", "prof": "...", "lab": "..." },"BREAK","EMPTY","NO_CLASSES", or"HOLIDAY".
- Keys
- Subject Colors & Tokens — Edit
src/styles/carbon-timetable.css(--subj-*) and map subject tokens insrc/utils/timetableEngine.ts(getSubjectToken). - SEO & Favicon — Update meta tags / canonical URL in
index.htmland replacepublic/favicon.svg&public/robots.txt.
The repository includes a ready-to-use GitHub Actions workflow at .github/workflows/deploy.yml:
- Push your fork to GitHub.
- In your repository Settings → Pages, set Source to GitHub Actions.
- Every push to
mainautomatically runsnpm ci,npm run typecheck,npm test,npm run build, and deploysdist/to GitHub Pages (configured withbase: './'invite.config.tsso it works on any subpath).
TimeTable/
├── .github/workflows/deploy.yml # GitHub Actions CI & GitHub Pages deployment
├── public/
│ ├── favicon.svg # SVG site icon
│ └── robots.txt # Crawler rules
├── index.html # Entry HTML, SEO meta tags, Open Graph & JSON-LD
├── package.json
├── vite.config.ts # Vite configuration (base: './')
├── vitest.config.ts
└── src/
├── App.tsx # Root Carbon Theme shell & state orchestration
├── main.tsx # Font & Carbon CSS entry point
├── components/
│ ├── CarbonHeader.tsx # Carbon UI Shell Header, dropdowns & mobile SideNav
│ ├── TimetableGrid.tsx # Merged matrix grid, mobile agenda & print sheet
│ ├── PrintPreviewModal.tsx # A4 Landscape Print Preview modal & PDF export
│ ├── LegendFooter.tsx # Routine date, faculty filter chips & lab legend
│ └── SiteFooter.tsx # Site copyright & institutional attribution footer
├── data/
│ ├── config.ts # Campus, course, room, electives & footer config
│ ├── faculty.ts # Faculty ID-to-name directory
│ ├── schedule.json # Section Alpha & Beta weekly schedule
│ └── timeSlots.ts # Period slots & live time matcher
├── styles/
│ └── carbon-timetable.css # Carbon tokens, subject colors, responsive & @media print
├── types/
│ └── timetable.ts # Shared TypeScript interfaces
├── utils/
│ ├── exportPdf.ts # A4 Landscape PDF generator (jspdf + html2canvas)
│ ├── preferences.ts # localStorage persistence helpers
│ └── timetableEngine.ts # Elective resolution, colSpan/rowSpan merge & filters
└── __tests__/
└── timetableEngine.test.ts
- Source code is licensed under the MIT License — Copyright © 2026 Amitendu Bikash Dhusiya. All Rights Reserved.
- Created for Techno India (Hooghly Campus) (a unit of Techno India Group). All institutional names, marks, and routine rights belong to Techno India Group.