# smritisingh110/portfolio_smriti architecture

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

- Interactive diagram: https://gitdiagram.com/smritisingh110/portfolio_smriti
- Repository: https://github.com/smritisingh110/portfolio_smriti

## Overview

This is a static personal portfolio. A visitor opens the page to review the portfolio; its JavaScript supports mobile navigation, theme switching with a saved preference, reveal-on-scroll effects, and the current year. The excerpt shows JavaScript querying and updating page elements and reading/writing browser storage, but does not show how the HTML loads the script or stylesheet, so those connections are omitted.

Main entry points: [`script.js`](https://github.com/smritisingh110/portfolio_smriti/blob/main/script.js) (Page interactions), [`index.html`](https://github.com/smritisingh110/portfolio_smriti/blob/main/index.html) (Portfolio page)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_portfolio["Portfolio page<br/>[index.html]"]
node_interactions["Page interactions<br/>[script.js]"]
node_styles["Page styles<br/>[style.css]"]
node_storage[("Browser storage")]

node_visitor -->|"opens"| node_portfolio
node_interactions -->|"updates DOM"| node_portfolio
node_interactions -->|"reads/writes"| node_storage

click node_portfolio "https://github.com/smritisingh110/portfolio_smriti/blob/main/index.html"
click node_interactions "https://github.com/smritisingh110/portfolio_smriti/blob/main/script.js"
click node_styles "https://github.com/smritisingh110/portfolio_smriti/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_visitor toneIndigo
class node_portfolio,node_interactions,node_styles toneTeal
class node_storage toneAmber
```

## Components

### Other components

- **Visitor**
- [Portfolio page](https://github.com/smritisingh110/portfolio_smriti/blob/main/index.html): `index.html`
- [Page interactions](https://github.com/smritisingh110/portfolio_smriti/blob/main/script.js): `script.js`
- [Page styles](https://github.com/smritisingh110/portfolio_smriti/blob/main/style.css): `style.css`
- **Browser storage**

## Connections

- Visitor → Portfolio page: opens (evidence: `README.md`)
- Page interactions → Portfolio page: updates DOM (evidence: `script.js`)
- Page interactions → Browser storage: reads/writes (evidence: `script.js`)
