# vishesh-panghal/campus-connect-se-lab architecture

> Architecture diagram of the GitHub repository vishesh-panghal/campus-connect-se-lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishesh-panghal/campus-connect-se-lab
- Repository: https://github.com/vishesh-panghal/campus-connect-se-lab

## Overview

CampusConnect is a set of browser-based UI templates for a college event and resource-management case study, not a connected production service. Its main user journey spans login or registration, a dashboard feed, and profile viewing or editing. The sampled JavaScript supports these page behaviors and persists state through browser localStorage. The README documents the pages and their purpose; unsampled HTML and styling details limit claims about how templates are wired together.

Main entry points: [`campus_connect_templates/script.js`](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js) (State loading and saving), [`campus_connect_templates/index.html`](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/index.html) (Login / Register), [`campus_connect_templates/dashboard.html`](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/dashboard.html) (Dashboard Feed), [`campus_connect_templates/profile.html`](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/profile.html) (Profile Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["UI Templates"]
  node_auth_page["Login / Register<br/>[index.html]"]
  node_dashboard_page["Dashboard Feed<br/>[dashboard.html]"]
  node_profile_page["Profile Page<br/>[profile.html]"]
  node_styles["Global styling<br/>[style.css]"]
end

subgraph group_behavior["Frontend Behavior"]
  node_auth_behavior["Auth handling<br/>[script.js]"]
  node_feed_behavior["Feed handling<br/>[script.js]"]
  node_profile_behavior["Profile editing<br/>[script.js]"]
  node_page_init["Page initialization<br/>[script.js]"]
end

subgraph group_state["Browser State"]
  node_state_logic["State loading and saving<br/>[script.js]"]
end

node_user(("Campus user"))
node_local_storage[("Browser localStorage")]

node_user -->|"opens"| node_auth_page
node_user -->|"opens"| node_dashboard_page
node_user -->|"opens"| node_profile_page
node_page_init -->|"initializes"| node_auth_behavior
node_page_init -->|"initializes"| node_feed_behavior
node_page_init -->|"initializes"| node_profile_behavior
node_auth_behavior -->|"loads state"| node_state_logic
node_feed_behavior -->|"loads state"| node_state_logic
node_profile_behavior -->|"loads and saves"| node_state_logic
node_state_logic -->|"reads and writes"| node_local_storage

click node_auth_page "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/index.html"
click node_dashboard_page "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/dashboard.html"
click node_profile_page "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/profile.html"
click node_styles "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/style.css"
click node_auth_behavior "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js"
click node_feed_behavior "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js"
click node_profile_behavior "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js"
click node_page_init "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js"
click node_state_logic "https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.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_auth_page,node_dashboard_page,node_profile_page,node_styles,node_user toneBlue
class node_auth_behavior,node_feed_behavior,node_profile_behavior,node_page_init,node_local_storage toneAmber
class node_state_logic toneMint
```

## Components

### UI Templates

- [Login / Register](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/index.html): `campus_connect_templates/index.html`
- [Dashboard Feed](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/dashboard.html): `campus_connect_templates/dashboard.html`
- [Profile Page](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/profile.html): `campus_connect_templates/profile.html`
- [Global styling](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/style.css): `campus_connect_templates/style.css`

### Frontend Behavior

- [Auth handling](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js): `campus_connect_templates/script.js`
- [Feed handling](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js): `campus_connect_templates/script.js`
- [Profile editing](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js): `campus_connect_templates/script.js`
- [Page initialization](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js): `campus_connect_templates/script.js`

### Browser State

- [State loading and saving](https://github.com/vishesh-panghal/campus-connect-se-lab/blob/main/campus_connect_templates/script.js): `campus_connect_templates/script.js`

### Other components

- **Campus user**
- **Browser localStorage**

## Connections

- Campus user → Login / Register: opens (evidence: `README.md`)
- Campus user → Dashboard Feed: opens (evidence: `README.md`)
- Campus user → Profile Page: opens (evidence: `README.md`)
- Page initialization → Auth handling: initializes (evidence: `campus_connect_templates/script.js`)
- Page initialization → Feed handling: initializes (evidence: `campus_connect_templates/script.js`)
- Page initialization → Profile editing: initializes (evidence: `campus_connect_templates/script.js`)
- Auth handling → State loading and saving: loads state (evidence: `campus_connect_templates/script.js`)
- Feed handling → State loading and saving: loads state (evidence: `campus_connect_templates/script.js`)
- Profile editing → State loading and saving: loads and saves (evidence: `campus_connect_templates/script.js`)
- State loading and saving → Browser localStorage: reads and writes (evidence: `campus_connect_templates/script.js`)
