Skip to content
ShadowAmitenduPublic

About

My College Timetable digitalized version available on web for my classmates and professors for ease of access

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

BCA 7th Semester Timetable

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/

Features

  • 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 (g100 dark theme) and Carbon White (white light 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 (LIVE indicator refreshed every 30 seconds). Includes a dev-only simulation toggle in npm 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 print with clean blank empty cells
  • Persistent Preferences: Saves selected section, elective, and theme in localStorage.

Tech Stack

  • 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

Getting Started

# 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

Available Scripts

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

Customizing for Your Own Timetable

You can reuse this repository as-is for any university, school, or batch by updating the data files under src/data/:

  1. Campus, Semester & Footer Metadata — Edit src/data/config.ts:
    • Set college, shortCollege, institutionGroup, course, semester, room, routineDate, copyrightOwner, and copyrightYear.
    • Update ELECTIVES metadata if your curriculum uses different elective groups.
  2. Period Timings — Edit src/data/timeSlots.ts:
    • Adjust TIME_SLOTS (start, end, displayStart, displayEnd, and isBreak) and DAYS.
  3. Faculty Directory — Edit src/data/faculty.ts:
    • Add or replace faculty short codes and display names in FACULTY.
  4. 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".
  5. Subject Colors & Tokens — Edit src/styles/carbon-timetable.css (--subj-*) and map subject tokens in src/utils/timetableEngine.ts (getSubjectToken).
  6. SEO & Favicon — Update meta tags / canonical URL in index.html and replace public/favicon.svg & public/robots.txt.

Deployment (GitHub Pages)

The repository includes a ready-to-use GitHub Actions workflow at .github/workflows/deploy.yml:

  1. Push your fork to GitHub.
  2. In your repository Settings → Pages, set Source to GitHub Actions.
  3. Every push to main automatically runs npm ci, npm run typecheck, npm test, npm run build, and deploys dist/ to GitHub Pages (configured with base: './' in vite.config.ts so it works on any subpath).

Project Structure

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

License & Attribution

  • 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.

About

My College Timetable digitalized version available on web for my classmates and professors for ease of access

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages