# hkcoder18/portfolio architecture

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

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

## Overview

This is a static personal portfolio: visitors browse the page’s profile, skills, project work, career history, and contact links. The HTML provides the section structure, while script.js initializes navigation and scroll behavior and renders the skills, project, and experience content from in-file data. The README documents the page sections and responsive, reduced-motion design; styles.css supplies presentation. Source evidence here is limited to the README and script.js excerpt, so structural links to HTML and CSS are documented rather than source-verified.

Main entry points: [`script.js`](https://github.com/hkcoder18/portfolio/blob/main/script.js) (Portfolio Runtime), [`index.html`](https://github.com/hkcoder18/portfolio/blob/main/index.html) (Page Structure), [`styles.css`](https://github.com/hkcoder18/portfolio/blob/main/styles.css) (Visual Design), [`assets/resume.pdf`](https://github.com/hkcoder18/portfolio/blob/main/assets/resume.pdf) (Resume PDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Portfolio Page"]
  node_html["Page Structure<br/>[index.html]"]
  node_css["Visual Design<br/>[styles.css]"]
end

subgraph group_behavior["Page Behavior"]
  node_js["Portfolio Runtime<br/>[script.js]"]
  node_navigation["Navigation<br/>[script.js]"]
  node_scroll["Scroll Effects<br/>[script.js]"]
end

subgraph group_content["Portfolio Content"]
  node_skills["Skills<br/>[script.js]"]
  node_projects["Projects<br/>[script.js]"]
  node_experience["Experience<br/>[script.js]"]
  node_about["About Section<br/>[index.html]"]
  node_contact["Contact Links<br/>[index.html]"]
  node_resume["Resume PDF<br/>[resume.pdf]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_html
node_html -.->|"loads"| node_js
node_html -.->|"styles with"| node_css
node_js -->|"initializes"| node_navigation
node_js -->|"renders"| node_skills
node_js -->|"renders"| node_projects
node_js -->|"renders"| node_experience
node_js -->|"initializes"| node_scroll
node_visitor -.->|"uses"| node_navigation
node_visitor -.->|"reads"| node_about
node_visitor -.->|"follows"| node_contact
node_contact -.->|"links to"| node_resume

click node_html "https://github.com/hkcoder18/portfolio/blob/main/index.html"
click node_css "https://github.com/hkcoder18/portfolio/blob/main/styles.css"
click node_js "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_navigation "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_scroll "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_skills "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_projects "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_experience "https://github.com/hkcoder18/portfolio/blob/main/script.js"
click node_about "https://github.com/hkcoder18/portfolio/blob/main/index.html"
click node_contact "https://github.com/hkcoder18/portfolio/blob/main/index.html"
click node_resume "https://github.com/hkcoder18/portfolio/blob/main/assets/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_html,node_css toneBlue
class node_js,node_navigation,node_scroll toneAmber
class node_skills,node_projects,node_experience,node_about,node_contact,node_resume toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio Page

- [Page Structure](https://github.com/hkcoder18/portfolio/blob/main/index.html): `index.html`
- [Visual Design](https://github.com/hkcoder18/portfolio/blob/main/styles.css): `styles.css`

### Page Behavior

- [Portfolio Runtime](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`
- [Navigation](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`
- [Scroll Effects](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`

### Portfolio Content

- [Skills](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`
- [Projects](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`
- [Experience](https://github.com/hkcoder18/portfolio/blob/main/script.js): `script.js`
- [About Section](https://github.com/hkcoder18/portfolio/blob/main/index.html): `index.html`
- [Contact Links](https://github.com/hkcoder18/portfolio/blob/main/index.html): `index.html`
- [Resume PDF](https://github.com/hkcoder18/portfolio/blob/main/assets/resume.pdf): `assets/resume.pdf`

### Other components

- **Visitor**

## Connections

- Visitor → Page Structure: opens (evidence: `README.md`)
- Page Structure → Portfolio Runtime: loads (evidence: `README.md`)
- Page Structure → Visual Design: styles with (evidence: `README.md`)
- Portfolio Runtime → Navigation: initializes (evidence: `script.js`)
- Portfolio Runtime → Skills: renders (evidence: `script.js`)
- Portfolio Runtime → Projects: renders (evidence: `script.js`)
- Portfolio Runtime → Experience: renders (evidence: `script.js`)
- Portfolio Runtime → Scroll Effects: initializes (evidence: `script.js`)
- Visitor → Navigation: uses
- Visitor → About Section: reads
- Visitor → Contact Links: follows
- Contact Links → Resume PDF: links to
