How shreyas-s47/collegewebsiteredesignv3 works
Purpose and Delivery Model
SEA Group of Institutions’ public marketing and information site for Bengaluru. It is a Next.js static-export application: builds produce deployable HTML/assets in out/, requiring no application server or database. Primary user entry is the homepage at src/app/page.tsx; shared document shell and global visual system are in src/app/layout.tsx and src/app/globals.css.
Route Architecture
App Router pages organize the site into institutional domains: about, academics, campus life, admissions, placements, gallery, contact, and institution exploration. The main dynamic boundary is institution detail routing at src/app/explore/[slug]/page.tsx, fed by shared institution/programme data rather than a runtime CMS. Discovery metadata is generated through src/app/sitemap.ts and src/app/robots.ts.
Shared Site Shell and Interaction Layer
All pages inherit navigation, footer, page transitions, and visual identity through reusable components. src/components/site-header.tsx and src/components/mobile-menu.tsx provide responsive navigation; src/components/footer.tsx provides site-wide closing content. Motion and interactive presentation are centralized in src/components/motion.tsx, src/components/page-transition.tsx, and specialized components such as src/components/search-modal.tsx; these run in the browser and must preserve reduced-motion and keyboard behavior.
Institutional Content and Data
The current site is content-driven but largely code-rendered from local shared datasets. src/lib/programmes.ts defines academic/institutional catalogue data used by programme and exploration views, while src/lib/streams.ts supplies stream grouping and src/lib/search-index.ts supports client-side search. Source/reference material is retained separately in content/academics/, content/institutions/, and content/about/; it is not described as a live CMS pipeline.
Media and Gallery Boundary
Production media is locally served from public/images/, avoiding external image dependencies. Gallery presentation uses src/components/lightbox-gallery.tsx for accessible client-side viewing. Asset/source inventories under assets/images.json and original extracted material in raw-html/ are reference inputs, not runtime dependencies.
Admissions and Contact
Admissions content is delivered by static routes, including international admissions at src/app/admissions/international/page.tsx. The enquiry UI resides in src/components/contact-form.tsx, but the repository exposes no backend route, persistence layer, or third-party form service; its submission integration is therefore an important deployment boundary to verify before relying on it operationally.
Build, Validation, and Infrastructure
The material runtime is Next.js 15 App Router with React 19, TypeScript, Framer Motion, and handwritten CSS. next.config.ts configures static export and trailing-slash behavior. The build pipeline runs an exported-HTML content safety guard in scripts/check-output.mjs; content acquisition/reference scripts (scrape-content.js, extract-content.js) are offline maintenance utilities. Deployment target is any static host serving the generated out/ directory.
Main entry points: layout.tsx Root document shell · app/page.tsx Homepage · [slug]/page.tsx Institution detail · motion.tsx Motion & interaction layer
Components 21
Content & Media
- Institutional source material · Reference material, not a live CMS pipeline.
- Programme catalogue
src/lib/programmes.ts - Stream groupings
src/lib/streams.ts - Search index
src/lib/search-index.ts - Production media · Locally served images with no external dependency.
Next.js Application
- Root document shell · Applies global shell and visual system to pages.
src/app/layout.tsx - Global styles
src/app/globals.css - Responsive navigation
src/components/site-header.tsx - Mobile menu
src/components/mobile-menu.tsx - Site footer
src/components/footer.tsx - Motion & interaction layer · Preserves reduced-motion and keyboard behavior.
src/components/motion.tsx - Homepage · Primary public entry point.
src/app/page.tsx - Institution detail · Slug route rendered from local catalogue data.
src/app/explore/[slug]/page.tsx - Site search
src/components/search-modal.tsx - Accessible gallery viewer
src/components/lightbox-gallery.tsx - Enquiry form · No submission backend or third-party integration is present.
src/components/contact-form.tsx - Institutional static routes · About, academics, campus, admissions, placements, gallery, and contact content.
src/app/admissions/international/page.tsx - Search discovery metadata
src/app/sitemap.ts
Build & Deployment
- Static export configuration · Configures static export and trailing-slash output.
next.config.ts - Export output safety guard
scripts/check-output.mjs - Static host · Serves generated HTML and assets from out/.
Connections 19
- Institutional source material → Programme catalogue: informs
- Programme catalogue → Institution detail: renders data for
- Stream groupings → Institution detail: groups
- Search index → Site search: powers
- Production media → Homepage: serves imagery to
- Production media → Accessible gallery viewer: supplies
- Global styles → Root document shell: styles
- Root document shell → Responsive navigation: includes
- Root document shell → Site footer: includes
- Responsive navigation → Mobile menu: adapts to
- Root document shell → Homepage: wraps
- Root document shell → Institution detail: wraps
- Root document shell → Institutional static routes: wraps
- Motion & interaction layer → Homepage: enhances
- Motion & interaction layer → Accessible gallery viewer: supports
- Institutional static routes → Enquiry form: presents
- Static export configuration → Export output safety guard: build output checked by
- Export output safety guard → Static host: publishes verified out/ to
- Search discovery metadata → Static host: exported with site