# shreyas-s47/collegewebsiteredesignv3 architecture

> Architecture diagram of the GitHub repository shreyas-s47/collegewebsiteredesignv3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shreyas-s47/collegewebsiteredesignv3
- Repository: https://github.com/shreyas-s47/collegewebsiteredesignv3

## Overview

#### 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: [`src/app/layout.tsx`](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/layout.tsx) (Root document shell), [`src/app/page.tsx`](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/page.tsx) (Homepage), [`src/app/explore/[slug]/page.tsx`](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/explore/%5Bslug%5D/page.tsx) (Institution detail), [`src/components/motion.tsx`](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/motion.tsx) (Motion & interaction layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_source["Content &amp; Media"]
  node_local_content["Institutional source material<br/>reference content"]
  node_catalogue["Programme catalogue<br/>local dataset<br/>[programmes.ts]"]
  node_streams["Stream groupings<br/>local dataset<br/>[streams.ts]"]
  node_search_index["Search index<br/>client search data<br/>[search-index.ts]"]
  node_media["Production media<br/>static assets"]
end

subgraph group_app["Next.js Application"]
  node_root_layout["Root document shell<br/>App Router layout<br/>[layout.tsx]"]
  node_global_css["Global styles<br/>CSS<br/>[globals.css]"]
  node_site_navigation["Responsive navigation<br/>shared components<br/>[site-header.tsx]"]
  node_mobile_menu["Mobile menu<br/>client component<br/>[mobile-menu.tsx]"]
  node_footer["Site footer<br/>shared component<br/>[footer.tsx]"]
  node_interaction_layer["Motion &amp; interaction layer<br/>client components<br/>[motion.tsx]"]
  node_homepage["Homepage<br/>App Router page<br/>[page.tsx]"]
  node_institution_detail["Institution detail<br/>dynamic App Router page<br/>[page.tsx]"]
  node_search_modal["Site search<br/>client component<br/>[search-modal.tsx]"]
  node_gallery["Accessible gallery viewer<br/>client component"]
  node_enquiry_form["Enquiry form<br/>client component<br/>[contact-form.tsx]"]
  node_static_routes["Institutional static routes<br/>App Router pages<br/>[page.tsx]"]
  node_discovery_metadata["Search discovery metadata<br/>sitemap and robots<br/>[sitemap.ts]"]
end

subgraph group_delivery["Build &amp; Deployment"]
  node_static_export_config["Static export configuration<br/>Next.js config<br/>[next.config.ts]"]
  node_output_guard["Export output safety guard<br/>build validation<br/>[check-output.mjs]"]
  node_static_host{{"Static host<br/>deployment target"}}
end

node_local_content -.->|"informs"| node_catalogue
node_catalogue -->|"renders data for"| node_institution_detail
node_streams -->|"groups"| node_institution_detail
node_search_index -->|"powers"| node_search_modal
node_media -->|"serves imagery to"| node_homepage
node_media -->|"supplies"| node_gallery
node_global_css -->|"styles"| node_root_layout
node_root_layout -->|"includes"| node_site_navigation
node_root_layout -->|"includes"| node_footer
node_site_navigation -->|"adapts to"| node_mobile_menu
node_root_layout -->|"wraps"| node_homepage
node_root_layout -->|"wraps"| node_institution_detail
node_root_layout -->|"wraps"| node_static_routes
node_interaction_layer -->|"enhances"| node_homepage
node_interaction_layer -->|"supports"| node_gallery
node_static_routes -->|"presents"| node_enquiry_form
node_static_export_config -->|"build output checked by"| node_output_guard
node_output_guard -->|"publishes verified out/ to"| node_static_host
node_discovery_metadata -->|"exported with site"| node_static_host

click node_catalogue "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/programmes.ts"
click node_streams "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/streams.ts"
click node_search_index "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/search-index.ts"
click node_root_layout "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/layout.tsx"
click node_global_css "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/globals.css"
click node_site_navigation "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/site-header.tsx"
click node_mobile_menu "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/mobile-menu.tsx"
click node_footer "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/footer.tsx"
click node_interaction_layer "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/motion.tsx"
click node_homepage "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/page.tsx"
click node_institution_detail "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/explore/%5Bslug%5D/page.tsx"
click node_search_modal "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/search-modal.tsx"
click node_gallery "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/lightbox-gallery.tsx"
click node_enquiry_form "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/contact-form.tsx"
click node_static_routes "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/admissions/international/page.tsx"
click node_discovery_metadata "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/sitemap.ts"
click node_static_export_config "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/next.config.ts"
click node_output_guard "https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/scripts/check-output.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_local_content,node_catalogue,node_streams,node_search_index,node_media toneBlue
class node_root_layout,node_global_css,node_site_navigation,node_mobile_menu,node_footer,node_interaction_layer,node_homepage,node_institution_detail,node_search_modal,node_gallery,node_enquiry_form,node_static_routes,node_discovery_metadata toneAmber
class node_static_export_config,node_output_guard,node_static_host toneMint
```

## Components

### Content & Media

- **Institutional source material**: reference content · Reference material, not a live CMS pipeline.
- [Programme catalogue](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/programmes.ts): local dataset · `src/lib/programmes.ts`
- [Stream groupings](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/streams.ts): local dataset · `src/lib/streams.ts`
- [Search index](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/lib/search-index.ts): client search data · `src/lib/search-index.ts`
- **Production media**: static assets · Locally served images with no external dependency.

### Next.js Application

- [Root document shell](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/layout.tsx): App Router layout · Applies global shell and visual system to pages. · `src/app/layout.tsx`
- [Global styles](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/globals.css): CSS · `src/app/globals.css`
- [Responsive navigation](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/site-header.tsx): shared components · `src/components/site-header.tsx`
- [Mobile menu](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/mobile-menu.tsx): client component · `src/components/mobile-menu.tsx`
- [Site footer](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/footer.tsx): shared component · `src/components/footer.tsx`
- [Motion & interaction layer](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/motion.tsx): client components · Preserves reduced-motion and keyboard behavior. · `src/components/motion.tsx`
- [Homepage](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/page.tsx): App Router page · Primary public entry point. · `src/app/page.tsx`
- [Institution detail](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/explore/%5Bslug%5D/page.tsx): dynamic App Router page · Slug route rendered from local catalogue data. · `src/app/explore/[slug]/page.tsx`
- [Site search](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/search-modal.tsx): client component · `src/components/search-modal.tsx`
- [Accessible gallery viewer](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/lightbox-gallery.tsx): client component · `src/components/lightbox-gallery.tsx`
- [Enquiry form](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/components/contact-form.tsx): client component · No submission backend or third-party integration is present. · `src/components/contact-form.tsx`
- [Institutional static routes](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/admissions/international/page.tsx): App Router pages · About, academics, campus, admissions, placements, gallery, and contact content. · `src/app/admissions/international/page.tsx`
- [Search discovery metadata](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/src/app/sitemap.ts): sitemap and robots · `src/app/sitemap.ts`

### Build & Deployment

- [Static export configuration](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/next.config.ts): Next.js config · Configures static export and trailing-slash output. · `next.config.ts`
- [Export output safety guard](https://github.com/shreyas-s47/collegewebsiteredesignv3/blob/main/scripts/check-output.mjs): build validation · `scripts/check-output.mjs`
- **Static host**: deployment target · Serves generated HTML and assets from out/.

## Connections

- 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
