# trishapal2003/swarnaly_protfolio architecture

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

- Interactive diagram: https://gitdiagram.com/trishapal2003/swarnaly_protfolio
- Repository: https://github.com/trishapal2003/swarnaly_protfolio

## Overview

This is a small personal-portfolio website. Its visible runtime behavior is client-side navigation and page interaction: the script manages the mobile menu, highlights the section matching the scroll position, provides a back-to-top control, and updates the footer year. The README does not document further capabilities, and the HTML and CSS contents were not provided, so their detailed roles and wiring are uncertain.

Main entry points: [`index.html`](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/index.html) (Portfolio page), [`script.js`](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js) (Mobile navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio UI"]
  node_page["Portfolio page<br/>[index.html]"]
  node_menu["Mobile navigation<br/>[script.js]"]
  node_active["Active section nav<br/>[script.js]"]
  node_top["Back to top<br/>[script.js]"]
  node_year["Footer year<br/>[script.js]"]
  node_styles["Page styling<br/>[style.css]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"views"| node_page
node_menu -->|"toggles menu"| node_page
node_active -->|"updates on scroll"| node_page
node_top -->|"scrolls to top"| node_page
node_year -->|"sets year"| node_page

click node_page "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/index.html"
click node_menu "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js"
click node_active "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js"
click node_top "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js"
click node_year "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js"
click node_styles "https://github.com/trishapal2003/swarnaly_protfolio/blob/main/style.css"

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_page,node_menu,node_active,node_top,node_year,node_styles toneBlue
class node_visitor toneIndigo
```

## Components

### Portfolio UI

- [Portfolio page](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/index.html): `index.html`
- [Mobile navigation](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js): `script.js`
- [Active section nav](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js): `script.js`
- [Back to top](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js): `script.js`
- [Footer year](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/script.js): `script.js`
- [Page styling](https://github.com/trishapal2003/swarnaly_protfolio/blob/main/style.css): `style.css`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: views
- Mobile navigation → Portfolio page: toggles menu (evidence: `script.js`)
- Active section nav → Portfolio page: updates on scroll (evidence: `script.js`)
- Back to top → Portfolio page: scrolls to top (evidence: `script.js`)
- Footer year → Portfolio page: sets year (evidence: `script.js`)
