# johanros21/colegioguadalupepagina architecture

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

- Interactive diagram: https://gitdiagram.com/johanros21/colegioguadalupepagina
- Repository: https://github.com/johanros21/colegioguadalupepagina

## Overview

1. This repository is an ASP.NET Core MVC website for the school landing page, despite the README mentioning Next.js/Django. The actual codebase is a server-rendered .NET web app centered on Razor views.

2. The application entry point is `Program.cs`, which wires up the MVC pipeline, static file serving, and routing. The solution is a single web project: `ColegioGuadalupePagina`.

3. The main server-side boundary is the controller layer:
   - `HomeController` for the public home and privacy pages
   - `CuerpoController` for institutional content pages
   - `LoginController` for the login/intranet entry page

4. The view layer is organized by controller name under `Views/`, with a shared layout in `Views/Shared/_Layout.cshtml`. That layout likely provides the common header, navigation, and footer used across all pages.

5. The site pages are mostly informational and static: `Index`, `Privacy`, `Nosotros`, `Informacion`, `Contactanos`, `Recuerdos`, and `Inicio` under login. This suggests a brochure-style institutional site with an access point for intranet users rather than a data-heavy application.

6. There is no visible service layer, repository layer, or database model layer. The only model present is `ErrorViewModel`, which is used for standard ASP.NET error handling. Architecturally, the app is thin on backend business logic.

7. All client assets live in `wwwroot/`, split into:
   - `css/` for page-specific styling (`main.css`, `login.css`, `contact.css`, `galeria.css`, `site.css`)
   - `js/` for UI behavior (`menu.js`, `scroll.js`, `desplazador.js`, `site.js`)
   - `images/` for media
   - `lib/` for third-party frontend packages

8. The frontend depends on Bootstrap, jQuery, and jQuery Validation / Unobtrusive Validation. That indicates conventional MVC form handling and responsive layout, with minimal custom JavaScript layered on top.

9. The data flow is straightforward: browser request → MVC route → controller action → Razor view → shared layout + CSS/JS assets → rendered HTML back to the browser. Most pages appear to be rendered from static templates rather than populated from APIs or a database.

10. Configuration is environment-based through `appsettings.json` and `appsettings.Development.json`, with `launchSettings.json` for local startup. There are no visible integrations with external services, APIs, or persistence systems in the repository structure.

11. For an architecture diagram, the important boxes are: browser/client, ASP.NET Core MVC app, controller/view layer, shared layout, and static asset bundle. The main boundary to note is that all content delivery is internal to the web app; there is no separate backend API in this repo.

Main entry points: [`ColegioGuadalupePagina/Views/Shared/_Layout.cshtml`](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Shared/_Layout.cshtml) (Shared layout), [`ColegioGuadalupePagina/Program.cs`](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Program.cs) (Program), [`ColegioGuadalupePagina/ColegioGuadalupePagina.csproj`](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/ColegioGuadalupePagina.csproj) (App project), [`ColegioGuadalupePagina/Controllers/HomeController.cs`](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/HomeController.cs) (Home controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g1["ASP.NET Core app"]
  node_n2["Program<br/>entrypoint<br/>[Program.cs]"]
  node_n3["App project<br/>web app"]
end

subgraph group_g2["Server-side MVC"]
  node_n4["Home controller<br/>[HomeController.cs]"]
  node_n5["Cuerpo controller"]
  node_n6["Login controller<br/>[LoginController.cs]"]
  node_n7["Home views<br/>razor views<br/>[Index.cshtml]"]
  node_n8["Cuerpo views<br/>razor views<br/>[Nosotros.cshtml]"]
  node_n9["Login view<br/>razor view<br/>[Inicio.cshtml]"]
  node_n10["Shared layout<br/>razor layout<br/>[_Layout.cshtml]"]
  node_n11["Error view<br/>razor view<br/>[Error.cshtml]"]
  node_n12["Error model<br/>view model<br/>[ErrorViewModel.cs]"]
end

subgraph group_g3["Frontend assets"]
  node_n13[("Static files<br/>webroot")]
  node_n14["Site styles<br/>css<br/>[site.css]"]
  node_n15["Page styles<br/>css bundle<br/>[main.css]"]
  node_n16["UI scripts<br/>javascript<br/>[site.js]"]
  node_n17["Bootstrap<br/>frontend lib<br/>[bootstrap.js]"]
  node_n18["jQuery stack<br/>frontend libs<br/>[jquery.js]"]
end

node_n1(("Browser<br/>client"))

node_n1 -->|"HTTP request"| node_n2
node_n2 -->|"routes to"| node_n4
node_n2 -->|"routes to"| node_n5
node_n2 -->|"routes to"| node_n6
node_n4 -->|"renders"| node_n7
node_n5 -->|"renders"| node_n8
node_n6 -->|"renders"| node_n9
node_n7 -->|"uses layout"| node_n10
node_n8 -->|"uses layout"| node_n10
node_n9 -->|"uses layout"| node_n10
node_n10 -->|"includes"| node_n14
node_n10 -->|"includes"| node_n15
node_n10 -->|"includes"| node_n16
node_n10 -->|"depends on"| node_n17
node_n10 -->|"depends on"| node_n18
node_n2 -->|"serves"| node_n13
node_n11 -->|"binds"| node_n12
node_n2 -->|"fallback view"| node_n11
node_n3 -->|"contains"| node_n2
node_n3 -->|"contains"| node_n4
node_n3 -->|"contains"| node_n5
node_n3 -->|"contains"| node_n6
node_n3 -->|"contains"| node_n10
node_n3 -->|"contains"| node_n13

click node_n2 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Program.cs"
click node_n3 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/ColegioGuadalupePagina.csproj"
click node_n4 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/HomeController.cs"
click node_n5 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/CuerpoController.cs"
click node_n6 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/LoginController.cs"
click node_n7 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Home/Index.cshtml"
click node_n8 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Cuerpo/Nosotros.cshtml"
click node_n9 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Login/Inicio.cshtml"
click node_n10 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Shared/_Layout.cshtml"
click node_n11 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Shared/Error.cshtml"
click node_n12 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Models/ErrorViewModel.cs"
click node_n13 "https://github.com/johanros21/colegioguadalupepagina/tree/master/ColegioGuadalupePagina/wwwroot"
click node_n14 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/css/site.css"
click node_n15 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/css/main.css"
click node_n16 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/js/site.js"
click node_n17 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/lib/bootstrap/dist/js/bootstrap.js"
click node_n18 "https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/lib/jquery/dist/jquery.js"

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_n2,node_n3 toneBlue
class node_n4,node_n5,node_n6,node_n7,node_n8,node_n9,node_n10,node_n11,node_n12 toneAmber
class node_n13,node_n14,node_n15,node_n16,node_n17,node_n18 toneMint
class node_n1 toneNeutral
```

## Components

### ASP.NET Core app

Single server-rendered MVC website

- [Program](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Program.cs): entrypoint · Configures MVC, static files, and routing · `ColegioGuadalupePagina/Program.cs`
- [App project](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/ColegioGuadalupePagina.csproj): web app · Single ASP.NET Core MVC site project · `ColegioGuadalupePagina/ColegioGuadalupePagina.csproj`

### Server-side MVC

Entry point, controllers, and Razor views

- [Home controller](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/HomeController.cs): controller · Public landing and privacy pages · `ColegioGuadalupePagina/Controllers/HomeController.cs`
- [Cuerpo controller](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/CuerpoController.cs): controller · Institutional content pages · `ColegioGuadalupePagina/Controllers/CuerpoController.cs`
- [Login controller](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Controllers/LoginController.cs): controller · Login or intranet entry page · `ColegioGuadalupePagina/Controllers/LoginController.cs`
- [Home views](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Home/Index.cshtml): razor views · Index and privacy pages · `ColegioGuadalupePagina/Views/Home/Index.cshtml`
- [Cuerpo views](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Cuerpo/Nosotros.cshtml): razor views · Nosotros, Informacion, Contactanos, and Recuerdos pages · `ColegioGuadalupePagina/Views/Cuerpo/Nosotros.cshtml`
- [Login view](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Login/Inicio.cshtml): razor view · Login and intranet entry page · `ColegioGuadalupePagina/Views/Login/Inicio.cshtml`
- [Shared layout](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Shared/_Layout.cshtml): razor layout · Common header, navigation, and footer · `ColegioGuadalupePagina/Views/Shared/_Layout.cshtml`
- [Error view](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Views/Shared/Error.cshtml): razor view · Standard ASP.NET error page · `ColegioGuadalupePagina/Views/Shared/Error.cshtml`
- [Error model](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/Models/ErrorViewModel.cs): view model · Data used by the error page · `ColegioGuadalupePagina/Models/ErrorViewModel.cs`

### Frontend assets

Static CSS, JS, and third-party libraries

- [Static files](https://github.com/johanros21/colegioguadalupepagina/tree/master/ColegioGuadalupePagina/wwwroot): webroot · Served CSS, JavaScript, images, and libraries · `ColegioGuadalupePagina/wwwroot`
- [Site styles](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/css/site.css): css · Shared site styling · `ColegioGuadalupePagina/wwwroot/css/site.css`
- [Page styles](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/css/main.css): css bundle · Main, login, contact, and gallery styles · `ColegioGuadalupePagina/wwwroot/css/main.css`
- [UI scripts](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/js/site.js): javascript · Menu, scrolling, and page behavior · `ColegioGuadalupePagina/wwwroot/js/site.js`
- [Bootstrap](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/lib/bootstrap/dist/js/bootstrap.js): frontend lib · Responsive layout and components · `ColegioGuadalupePagina/wwwroot/lib/bootstrap/dist/js/bootstrap.js`
- [jQuery stack](https://github.com/johanros21/colegioguadalupepagina/blob/master/ColegioGuadalupePagina/wwwroot/lib/jquery/dist/jquery.js): frontend libs · jQuery and validation helpers · `ColegioGuadalupePagina/wwwroot/lib/jquery/dist/jquery.js`

### Other components

- **Browser**: client · Users request pages and receive rendered HTML

## Connections

- Browser → Program: HTTP request · Browser requests hit the ASP.NET Core host
- Program → Home controller: routes to · Maps home URLs to the home controller
- Program → Cuerpo controller: routes to · Maps institutional content URLs to Cuerpo actions
- Program → Login controller: routes to · Maps login entry URLs to the login controller
- Home controller → Home views: renders · Returns home Razor views
- Cuerpo controller → Cuerpo views: renders · Returns informational content views
- Login controller → Login view: renders · Returns the login/intranet entry view
- Home views → Shared layout: uses layout · Home pages share the common site shell
- Cuerpo views → Shared layout: uses layout · Content pages share the common site shell
- Login view → Shared layout: uses layout · Login page also uses the shared shell
- Shared layout → Site styles: includes · Shared layout pulls in global styling
- Shared layout → Page styles: includes · Layout references page-specific styles
- Shared layout → UI scripts: includes · Layout loads site behavior scripts
- Shared layout → Bootstrap: depends on · Layout uses Bootstrap for responsive UI
- Shared layout → jQuery stack: depends on · Layout uses jQuery and validation helpers
- Program → Static files: serves · Enables static file delivery from wwwroot
- Error view → Error model: binds · Error view is backed by the error model
- Program → Error view: fallback view · ASP.NET Core can render the shared error page
- App project → Program: contains · Project contains the application entry point
- App project → Home controller: contains · Project contains the home controller
- App project → Cuerpo controller: contains · Project contains the Cuerpo controller
- App project → Login controller: contains · Project contains the login controller
- App project → Shared layout: contains · Project contains the shared Razor layout
- App project → Static files: contains · Project contains all static assets
