# ankitraj03711/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/ankitraj03711/portfolio
- Repository: https://github.com/ankitraj03711/portfolio

## Overview

This is a static personal portfolio: visitors browse the page, explore skills and achievements, then contact the owner or download a resume. The HTML supplies page content, CSS supplies presentation and responsive themes, and JavaScript implements navigation, interactive polish, and form submission. The README also describes the resume and optional analytics integrations; analytics are only documented as commented-out snippets. Source excerpts cover JavaScript behavior, so links to page elements and external services are grounded where shown, while HTML/CSS responsibilities follow the README.

Main entry points: [`index.html`](https://github.com/ankitraj03711/portfolio/blob/main/index.html) (Portfolio Content), [`script.js`](https://github.com/ankitraj03711/portfolio/blob/main/script.js) (Theme Toggle), [`style.css`](https://github.com/ankitraj03711/portfolio/blob/main/style.css) (Responsive Styling), [`assets/Ankit_Raj_Resume.pdf`](https://github.com/ankitraj03711/portfolio/blob/main/assets/Ankit_Raj_Resume.pdf) (Resume PDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Portfolio Page"]
  node_content["Portfolio Content<br/>[index.html]"]
  node_styling["Responsive Styling<br/>[style.css]"]
end

subgraph group_interaction["Page Interactions"]
  node_navigation["Scroll Navigation<br/>[script.js]"]
  node_skills["Skills Animation<br/>[script.js]"]
  node_theme["Theme Toggle<br/>[script.js]"]
  node_mobile["Mobile Menu<br/>[script.js]"]
  node_scroll["Scroll Controls<br/>[script.js]"]
  node_browser_storage[("Browser Storage")]
end

subgraph group_contact["Contact and Resume"]
  node_contact_form["Contact Form<br/>[index.html]"]
  node_form_handler["Form Submission<br/>[script.js]"]
  node_formspree["Formspree"]
  node_resume["Resume PDF"]
end

node_visitor(("Visitor"))

node_visitor -->|"views"| node_content
node_content -->|"styled by"| node_styling
node_content -->|"provides nav elements"| node_navigation
node_content -->|"provides skills elements"| node_skills
node_content -->|"provides toggle"| node_theme
node_content -->|"provides menu elements"| node_mobile
node_content -->|"provides controls"| node_scroll
node_visitor -->|"toggles"| node_theme
node_theme -->|"stores preference"| node_browser_storage
node_visitor -->|"submits message"| node_contact_form
node_contact_form -->|"handled by"| node_form_handler
node_form_handler -->|"posts form data"| node_formspree
node_visitor -->|"downloads"| node_resume

click node_content "https://github.com/ankitraj03711/portfolio/blob/main/index.html"
click node_styling "https://github.com/ankitraj03711/portfolio/blob/main/style.css"
click node_navigation "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_skills "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_theme "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_mobile "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_scroll "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_contact_form "https://github.com/ankitraj03711/portfolio/blob/main/index.html"
click node_form_handler "https://github.com/ankitraj03711/portfolio/blob/main/script.js"
click node_resume "https://github.com/ankitraj03711/portfolio/blob/main/assets/Ankit_Raj_Resume.pdf"

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_content,node_styling toneBlue
class node_navigation,node_skills,node_theme,node_mobile,node_scroll,node_browser_storage toneAmber
class node_contact_form,node_form_handler,node_formspree,node_resume toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio Page

- [Portfolio Content](https://github.com/ankitraj03711/portfolio/blob/main/index.html): `index.html`
- [Responsive Styling](https://github.com/ankitraj03711/portfolio/blob/main/style.css): `style.css`

### Page Interactions

- [Scroll Navigation](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- [Skills Animation](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- [Theme Toggle](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- [Mobile Menu](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- [Scroll Controls](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- **Browser Storage**

### Contact and Resume

- [Contact Form](https://github.com/ankitraj03711/portfolio/blob/main/index.html): `index.html`
- [Form Submission](https://github.com/ankitraj03711/portfolio/blob/main/script.js): `script.js`
- **Formspree**
- [Resume PDF](https://github.com/ankitraj03711/portfolio/blob/main/assets/Ankit_Raj_Resume.pdf): `assets/Ankit_Raj_Resume.pdf`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio Content: views (evidence: `README.md`)
- Portfolio Content → Responsive Styling: styled by (evidence: `README.md`)
- Portfolio Content → Scroll Navigation: provides nav elements (evidence: `script.js`)
- Portfolio Content → Skills Animation: provides skills elements (evidence: `script.js`)
- Portfolio Content → Theme Toggle: provides toggle (evidence: `script.js`)
- Portfolio Content → Mobile Menu: provides menu elements (evidence: `script.js`)
- Portfolio Content → Scroll Controls: provides controls (evidence: `script.js`)
- Visitor → Theme Toggle: toggles (evidence: `script.js`)
- Theme Toggle → Browser Storage: stores preference (evidence: `script.js`)
- Visitor → Contact Form: submits message (evidence: `README.md`)
- Contact Form → Form Submission: handled by (evidence: `script.js`)
- Form Submission → Formspree: posts form data (evidence: `script.js`)
- Visitor → Resume PDF: downloads (evidence: `README.md`)
