# kaushalyaherathcs/smart_campus_student_lifehub_webapp architecture

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

- Interactive diagram: https://gitdiagram.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp
- Repository: https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp

## Overview

UnityCampus is a browser-based student-life hub, with no backend documented: students use its pages for academic planning, study utilities, wellness tracking, community discussions, and shared resources. Features run in page-specific JavaScript; Vue powers the planner, notes, and FAQ interactions, while browser localStorage persists selected state. The sampled scripts show the feature logic and persistence, but not the HTML wiring or resource-sharing implementation, so those links are limited to capabilities documented in the README.

Main entry points: [`index.html`](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/index.html) (Campus Home), [`pages/app.js`](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/app.js) (Notices), [`pages/studytools.js`](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js) (Quick Notes), [`pages/wellness.js`](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js) (Mood Tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_campus["Campus Hub"]
  node_home["Campus Home<br/>[index.html]"]
  node_announcements["Notices<br/>[app.js]"]
  node_about["About &amp; Contact<br/>[about us.html]"]
end

subgraph group_study["Study Tools"]
  node_study_page["Study Tools Page<br/>[study tools.html]"]
  node_grades["Grade Calculator<br/>[studytools.js]"]
  node_notes["Quick Notes<br/>[studytools.js]"]
  node_budget["Budget Tracker<br/>[studytools.js]"]
end

subgraph group_wellness["Wellness"]
  node_wellness_page["Wellness Page<br/>[wellness.html]"]
  node_mood["Mood Tracker<br/>[wellness.js]"]
  node_sleep["Sleep Tracker<br/>[wellness.js]"]
  node_focus["Focus Timer<br/>[wellness.js]"]
  node_wellness_tips["Wellness Tips<br/>[wellness.html]"]
end

subgraph group_planning["Planning &amp; Community"]
  node_planner_page["Planner Page<br/>[planner.html]"]
  node_tasks["Task Planner<br/>[planner.js]"]
  node_community["Community Feed<br/>[community.js]"]
  node_resources["Study Resources<br/>[resources.html]"]
  node_faq["Resource FAQ<br/>[resources.js]"]
end

subgraph group_shared["Shared UI &amp; State"]
  node_theme["Theme &amp; Navigation<br/>[app.js]"]
  node_storage[("Browser Storage")]
end

node_student(("Student"))

node_student -->|"opens"| node_home
node_student -->|"uses"| node_study_page
node_student -->|"uses"| node_wellness_page
node_student -->|"uses"| node_planner_page
node_student -->|"participates"| node_community
node_student -->|"browses"| node_resources
node_student -->|"views"| node_about
node_home -->|"manages"| node_announcements
node_home -->|"sets theme"| node_theme
node_student -->|"calculates GPA"| node_grades
node_student -->|"creates notes"| node_notes
node_student -->|"tracks spending"| node_budget
node_student -->|"logs mood"| node_mood
node_student -->|"records sleep"| node_sleep
node_student -->|"runs sessions"| node_focus
node_student -->|"reads tips"| node_wellness_tips
node_student -->|"tracks tasks"| node_tasks
node_student -->|"reads answers"| node_faq
node_student -->|"posts &amp; comments"| node_community
node_student -->|"posts notices"| node_announcements
node_student -->|"switches theme"| node_theme
node_announcements -->|"reads/writes notices"| node_storage
node_theme -->|"reads/writes theme"| node_storage
node_notes -->|"reads/writes notes"| node_storage
node_budget -->|"reads/writes entries"| node_storage
node_tasks -->|"reads/writes tasks"| node_storage
node_mood -->|"reads/writes history"| node_storage
node_sleep -->|"reads/writes history"| node_storage
node_focus -->|"reads/writes sessions"| node_storage

click node_home "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/index.html"
click node_announcements "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/app.js"
click node_about "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/about%20us.html"
click node_study_page "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/study%20tools.html"
click node_grades "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js"
click node_notes "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js"
click node_budget "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js"
click node_wellness_page "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.html"
click node_mood "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js"
click node_sleep "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js"
click node_focus "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js"
click node_wellness_tips "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.html"
click node_planner_page "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/planner.html"
click node_tasks "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/planner.js"
click node_community "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/community.js"
click node_resources "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/resources.html"
click node_faq "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/resources.js"
click node_theme "https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/app.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_home,node_announcements,node_about toneBlue
class node_study_page,node_grades,node_notes,node_budget toneAmber
class node_wellness_page,node_mood,node_sleep,node_focus,node_wellness_tips toneMint
class node_planner_page,node_tasks,node_community,node_resources,node_faq toneRose
class node_theme,node_storage,node_student toneIndigo
```

## Components

### Campus Hub

- [Campus Home](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/index.html): `index.html`
- [Notices](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/app.js): `pages/app.js`
- [About & Contact](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/about%20us.html): `pages/about us.html`

### Study Tools

- [Study Tools Page](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/study%20tools.html): `pages/study tools.html`
- [Grade Calculator](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js): `pages/studytools.js`
- [Quick Notes](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js): `pages/studytools.js`
- [Budget Tracker](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/studytools.js): `pages/studytools.js`

### Wellness

- [Wellness Page](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.html): `pages/wellness.html`
- [Mood Tracker](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js): `pages/wellness.js`
- [Sleep Tracker](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js): `pages/wellness.js`
- [Focus Timer](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.js): `pages/wellness.js`
- [Wellness Tips](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/wellness.html): `pages/wellness.html`

### Planning & Community

- [Planner Page](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/planner.html): `pages/planner.html`
- [Task Planner](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/planner.js): `pages/planner.js`
- [Community Feed](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/community.js): `pages/community.js`
- [Study Resources](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/resources.html): `pages/resources.html`
- [Resource FAQ](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/resources.js): `pages/resources.js`

### Shared UI & State

- [Theme & Navigation](https://github.com/kaushalyaherathcs/smart_campus_student_lifehub_webapp/blob/main/pages/app.js): `pages/app.js`
- **Browser Storage**

### Other components

- **Student**

## Connections

- Student → Campus Home: opens (evidence: `README.md`)
- Student → Study Tools Page: uses (evidence: `README.md`)
- Student → Wellness Page: uses (evidence: `README.md`)
- Student → Planner Page: uses (evidence: `README.md`)
- Student → Community Feed: participates (evidence: `README.md`)
- Student → Study Resources: browses (evidence: `README.md`)
- Student → About & Contact: views (evidence: `README.md`)
- Campus Home → Notices: manages (evidence: `pages/app.js`)
- Campus Home → Theme & Navigation: sets theme (evidence: `pages/app.js`)
- Student → Grade Calculator: calculates GPA (evidence: `pages/studytools.js`)
- Student → Quick Notes: creates notes (evidence: `pages/studytools.js`)
- Student → Budget Tracker: tracks spending (evidence: `pages/studytools.js`)
- Student → Mood Tracker: logs mood (evidence: `pages/wellness.js`)
- Student → Sleep Tracker: records sleep (evidence: `pages/wellness.js`)
- Student → Focus Timer: runs sessions (evidence: `pages/wellness.js`)
- Student → Wellness Tips: reads tips (evidence: `README.md`)
- Student → Task Planner: tracks tasks (evidence: `pages/planner.js`)
- Student → Resource FAQ: reads answers (evidence: `pages/resources.js`)
- Student → Community Feed: posts & comments (evidence: `pages/community.js`)
- Student → Notices: posts notices (evidence: `pages/app.js`)
- Student → Theme & Navigation: switches theme (evidence: `pages/app.js`)
- Notices → Browser Storage: reads/writes notices (evidence: `pages/app.js`)
- Theme & Navigation → Browser Storage: reads/writes theme (evidence: `pages/app.js`)
- Quick Notes → Browser Storage: reads/writes notes (evidence: `pages/studytools.js`)
- Budget Tracker → Browser Storage: reads/writes entries (evidence: `pages/studytools.js`)
- Task Planner → Browser Storage: reads/writes tasks (evidence: `pages/planner.js`)
- Mood Tracker → Browser Storage: reads/writes history (evidence: `pages/wellness.js`)
- Sleep Tracker → Browser Storage: reads/writes history (evidence: `pages/wellness.js`)
- Focus Timer → Browser Storage: reads/writes sessions (evidence: `pages/wellness.js`)
