What it is
This is the website of Agnel Polytechnic, a diploma college in Vashi, Navi Mumbai. It covers the institution's about pages, department pages, admissions, gallery, syllabus downloads and a contact form. Prospective students and current students are the main readers. It is live at apv.ac.in.
The problem
Institutional sites for small colleges tend to load slowly, look dated and work poorly on phones. For a technical institution, that sends the wrong signal. The college needed a modern site that shows key information clearly on any device and does not need a server to run.
How it works
The site is a SvelteKit app that prerenders every page to static HTML. The root layout sets export const prerender = true in src/routes/+layout.server.ts, so no page renders per request.
| Area | Where it lives | What it does |
|---|---|---|
| Home page | src/routes/+page.svelte | Composes Hero, AboutAgnel, AllCourses, Events and PlacementStats sections. |
| About pages | src/routes/about_us/* | One route per committee or topic, such as staff details, anti-ragging and vision and mission. |
| Department pages | src/routes/courses/[course] | One dynamic route that reads department data from src/routes/courses/data.ts. |
| Gallery | src/routes/gallery/[section] | Lists images by reading folders under static/gallery at build time. |
| Contact form | src/routes/contact_us/+page.svelte | Sends form data to EmailJS from the browser. |
| News ticker data | src/components/news.ts | A plain array of titles and links. |
Content is data in the repository. Department details, such as intake, vision and faculty lists, sit in a typed DeptData record. Fee charts, admission vacancy lists and notices are PDFs in static/. Syllabus archives are ZIP files in static/downloads/syllabus.
Design decisions
Fully static output instead of a CMS or server rendering. The content changes a few times a year, so a database adds cost without adding value. Prerendering also means the site needs no server process. The trade-off is that every content change is a Git commit and a redeploy. The commit history shows this workflow: most commits update a page, a PDF or a staff name.
Folder-driven galleries and department assets. The +page.server.ts and +layout.server.ts files call fs.readdirSync on folders in static/. Adding a photo means dropping a file into a folder, with no code edit. The trade-off is that this works only at build time, which suits a prerendered site.
Client-side contact form through EmailJS. The form needs no backend of its own. EmailJS delivers the message from the browser. The trade-off is a dependency on a third-party service for the one interactive feature.
WebP for images. Two Node scripts, convertToWebP.cjs and deleteNonWebP.cjs, convert JPEG, PNG, BMP and TIFF files to WebP with sharp and remove the originals. This reduces image weight, which dominates page size on a photo-heavy college site.
Custom DaisyUI theme. tailwind.config.cjs defines one theme with navy and orange-red as accent and secondary. This gives the site a consistent palette from one config file.
Run it locally
- Clone the repository:
git clone https://github.com/WhyAsh5114/Agnel-Polytechnic-Vashi.git - Install dependencies:
npm install - Start the dev server:
npm run dev - Build the static site:
npm run build - Preview the build:
npm run preview
Reference
| Tool | Version in package.json | Use |
|---|---|---|
| SvelteKit | ^1.30.4 | Routing and prerendering. |
| Svelte | ^4.0.0 | Components. |
| TypeScript | ^5.0.0 | Types for data and load functions. |
| TailwindCSS | ^3.2.7 | Utility styling. |
| DaisyUI | ^3.0.0 | Component classes and the custom theme. |
@emailjs/browser | ^3.11.0 | Contact form delivery. |
@vercel/analytics | ^1.0.1 | Page analytics, injected in the root layout. |
adapter-auto | ^2.0.0 | Picks a deployment adapter for the host. |
Notes from the author
Working for a real institution means working inside constraints beyond the technical ones. The color palette, logo use and content structure came with requirements. I had to build within the college's brand identity while still improving the technical side.
Outcome
- The site is live at apv.ac.in.
- The repository was created on 25 March 2023 and still receives updates. The latest commit is dated 28 August 2026.
- The repository has about 348 commits from three contributors: me,
sundaram123krishnanandpranavkumar1991.