# kartikagrawal2200/environment-__ca--2 architecture

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

- Interactive diagram: https://gitdiagram.com/kartikagrawal2200/environment-__ca--2
- Repository: https://github.com/kartikagrawal2200/environment-__ca--2

## Overview

This is a static, multi-page sustainability research website: visitors explore paper’s environmental impacts and alternatives, then use organizational guidance and an interactive footprint calculator. The root site and `environment_website/` contain parallel copies. The README documents the major page capabilities; sampled JavaScript shows client-side navigation, visual interactions, chart rendering, and 3D scenes. The README also mentions `charts.js` and `calculator.js`, but those files are absent from the tree, so their implementation and wiring are not represented.

Main entry points: [`index.html`](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/index.html) (Home and overview), [`js/main.js`](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/main.js) (Root-site interactions and charts), [`environment_website/js/main.js`](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/main.js) (Mirror-site interactions and charts), [`paper-vs-digital.html`](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/paper-vs-digital.html) (Paper vs digital)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Research content"]
  node_home["Home and overview<br/>[index.html]"]
  node_lifecycle["Paper lifecycle<br/>[lifecycle.html]"]
  node_impact["Environmental impact<br/>[impact.html]"]
  node_comparison["Paper vs digital"]
  node_resources["Research resources<br/>[resources.html]"]
  node_about["Project and team<br/>[about.html]"]
end

subgraph group_guidance["Action and tools"]
  node_solutions["Sustainable solutions<br/>[solutions.html]"]
  node_actionplan["Organization action plan<br/>[action-plan.html]"]
  node_calculator["Footprint calculator and quiz<br/>[calculator.html]"]
  node_contact["Contact and pledge<br/>[contact.html]"]
  node_privacy["Privacy and integrity<br/>[privacy.html]"]
end

subgraph group_client["Client interactions"]
  node_rootmain["Root-site interactions and charts<br/>[main.js]"]
  node_roottheme["Root-site theme interactions<br/>[theme.js]"]
  node_mirrormain["Mirror-site interactions and charts<br/>[main.js]"]
  node_mirrortheme["Mirror-site theme interactions<br/>[theme.js]"]
end

subgraph group_visuals["3D visuals"]
  node_rootbg["Root-site 3D background<br/>[background3d.js]"]
  node_rootscene["Root-site hero scene<br/>[three-scene.js]"]
  node_mirrorbg["Mirror-site 3D background<br/>[background3d.js]"]
  node_mirrorscene["Mirror-site hero scene<br/>[three-scene.js]"]
end

node_visitor(("Website visitor"))

node_visitor -->|"opens site"| node_home
node_rootmain -->|"renders chart preview"| node_home
node_rootmain -->|"handles pledge form"| node_contact
node_rootmain -.->|"handles newsletter forms"| node_calculator
node_roottheme -->|"animates comparison bars"| node_comparison
node_rootbg -->|"creates 3D showcase"| node_home
node_rootscene -->|"renders hero scene"| node_home
node_mirrormain -->|"renders chart preview"| node_home
node_mirrormain -->|"handles pledge form"| node_contact
node_mirrortheme -->|"animates comparison bars"| node_comparison
node_mirrorbg -->|"creates 3D showcase"| node_home
node_mirrorscene -->|"renders hero scene"| node_home

click node_home "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/index.html"
click node_lifecycle "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/lifecycle.html"
click node_impact "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/impact.html"
click node_comparison "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/paper-vs-digital.html"
click node_solutions "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/solutions.html"
click node_actionplan "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/action-plan.html"
click node_calculator "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/calculator.html"
click node_resources "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/resources.html"
click node_about "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/about.html"
click node_contact "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/contact.html"
click node_privacy "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/privacy.html"
click node_rootmain "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/main.js"
click node_roottheme "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/theme.js"
click node_rootbg "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/background3d.js"
click node_rootscene "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/three-scene.js"
click node_mirrormain "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/main.js"
click node_mirrortheme "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/theme.js"
click node_mirrorbg "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/background3d.js"
click node_mirrorscene "https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/three-scene.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_lifecycle,node_impact,node_comparison,node_resources,node_about toneBlue
class node_solutions,node_actionplan,node_calculator,node_contact,node_privacy toneAmber
class node_rootmain,node_roottheme,node_mirrormain,node_mirrortheme toneMint
class node_rootbg,node_rootscene,node_mirrorbg,node_mirrorscene toneRose
class node_visitor toneIndigo
```

## Components

### Research content

- [Home and overview](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/index.html): `index.html`
- [Paper lifecycle](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/lifecycle.html): `lifecycle.html`
- [Environmental impact](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/impact.html): `impact.html`
- [Paper vs digital](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/paper-vs-digital.html): `paper-vs-digital.html`
- [Research resources](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/resources.html): `resources.html`
- [Project and team](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/about.html): `about.html`

### Action and tools

- [Sustainable solutions](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/solutions.html): `solutions.html`
- [Organization action plan](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/action-plan.html): `action-plan.html`
- [Footprint calculator and quiz](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/calculator.html): `calculator.html`
- [Contact and pledge](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/contact.html): `contact.html`
- [Privacy and integrity](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/privacy.html): `privacy.html`

### Client interactions

- [Root-site interactions and charts](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/main.js): `js/main.js`
- [Root-site theme interactions](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/theme.js): `js/theme.js`
- [Mirror-site interactions and charts](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/main.js): `environment_website/js/main.js`
- [Mirror-site theme interactions](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/theme.js): `environment_website/js/theme.js`

### 3D visuals

- [Root-site 3D background](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/background3d.js): `js/background3d.js`
- [Root-site hero scene](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/js/three-scene.js): `js/three-scene.js`
- [Mirror-site 3D background](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/background3d.js): `environment_website/js/background3d.js`
- [Mirror-site hero scene](https://github.com/kartikagrawal2200/environment-__ca--2/blob/main/environment_website/js/three-scene.js): `environment_website/js/three-scene.js`

### Other components

- **Website visitor**

## Connections

- Website visitor → Home and overview: opens site (evidence: `README.md`)
- Root-site interactions and charts → Home and overview: renders chart preview (evidence: `js/main.js`)
- Root-site interactions and charts → Contact and pledge: handles pledge form (evidence: `js/main.js`)
- Root-site interactions and charts → Footprint calculator and quiz: handles newsletter forms
- Root-site theme interactions → Paper vs digital: animates comparison bars (evidence: `js/theme.js`)
- Root-site 3D background → Home and overview: creates 3D showcase (evidence: `js/background3d.js`)
- Root-site hero scene → Home and overview: renders hero scene (evidence: `js/three-scene.js`)
- Mirror-site interactions and charts → Home and overview: renders chart preview (evidence: `environment_website/js/main.js`)
- Mirror-site interactions and charts → Contact and pledge: handles pledge form (evidence: `environment_website/js/main.js`)
- Mirror-site theme interactions → Paper vs digital: animates comparison bars (evidence: `environment_website/js/theme.js`)
- Mirror-site 3D background → Home and overview: creates 3D showcase (evidence: `environment_website/js/background3d.js`)
- Mirror-site hero scene → Home and overview: renders hero scene (evidence: `environment_website/js/three-scene.js`)
