# meganathanyuvaraj037-png/demo_static_project architecture

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

- Interactive diagram: https://gitdiagram.com/meganathanyuvaraj037-png/demo_static_project
- Repository: https://github.com/meganathanyuvaraj037-png/demo_static_project

## Overview

This is a small static portfolio/demo site with separate pages for projects, skills, experience, contact, and a five-year roadmap. Its sampled runtime behavior is a theme switcher that initializes from saved preference or the system color scheme, updates the document and button label, and persists changes. Page contents and navigation are not shown in the available excerpts, so their relationships are left unspecified.

Main entry points: [`theme.js`](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/theme.js) (Theme switcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio pages"]
  node_home["Home page<br/>[index.html]"]
  node_projects["Projects page<br/>[projects.html]"]
  node_skills["Skills page<br/>[skills.html]"]
  node_experience["Experience page<br/>[experience.html]"]
  node_contact["Contact page<br/>[contact.html]"]
end

subgraph group_roadmap["Roadmap pages"]
  node_roadmap["Five-year roadmap"]
end

subgraph group_presentation["Presentation and theme"]
  node_site_styles["Site styles<br/>[style.css]"]
  node_contact_styles["Contact styles<br/>[contact.css]"]
  node_roadmap_styles["Roadmap styles<br/>[style.css]"]
  node_theme_switcher["Theme switcher<br/>[theme.js]"]
end

node_visitor(("Visitor"))
node_browser_document["Browser document"]
node_local_storage[("Local storage")]
node_system_preference["Color preference"]

node_visitor -->|"clicks control"| node_theme_switcher
node_theme_switcher -->|"updates theme"| node_browser_document
node_theme_switcher -->|"reads and writes"| node_local_storage
node_theme_switcher -->|"reads preference"| node_system_preference

click node_home "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/index.html"
click node_projects "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/projects/projects.html"
click node_skills "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/skills.html"
click node_experience "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/experience.html"
click node_contact "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/contact.html"
click node_roadmap "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/five-year-roadmap/five-year-roadmap.html"
click node_site_styles "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/style.css"
click node_contact_styles "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/contact.css"
click node_roadmap_styles "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/five-year-roadmap/style.css"
click node_theme_switcher "https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/theme.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_projects,node_skills,node_experience,node_contact,node_browser_document toneBlue
class node_roadmap,node_local_storage toneAmber
class node_site_styles,node_contact_styles,node_roadmap_styles,node_theme_switcher toneMint
class node_visitor,node_system_preference toneIndigo
```

## Components

### Portfolio pages

- [Home page](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/index.html): `index.html`
- [Projects page](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/projects/projects.html): `projects/projects.html`
- [Skills page](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/skills.html): `skills.html`
- [Experience page](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/experience.html): `experience.html`
- [Contact page](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/contact.html): `contact.html`

### Roadmap pages

- [Five-year roadmap](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/five-year-roadmap/five-year-roadmap.html): `five-year-roadmap/five-year-roadmap.html`

### Presentation and theme

- [Site styles](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/style.css): `style.css`
- [Contact styles](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/contact.css): `contact.css`
- [Roadmap styles](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/five-year-roadmap/style.css): `five-year-roadmap/style.css`
- [Theme switcher](https://github.com/meganathanyuvaraj037-png/demo_static_project/blob/main/theme.js): `theme.js`

### Other components

- **Visitor**
- **Browser document**
- **Local storage**
- **Color preference**

## Connections

- Visitor → Theme switcher: clicks control (evidence: `theme.js`)
- Theme switcher → Browser document: updates theme (evidence: `theme.js`)
- Theme switcher → Local storage: reads and writes (evidence: `theme.js`)
- Theme switcher → Color preference: reads preference (evidence: `theme.js`)
