# kurtpantaleon/bp-website architecture

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

- Interactive diagram: https://gitdiagram.com/kurtpantaleon/bp-website
- Repository: https://github.com/kurtpantaleon/bp-website

## Overview

This is a static NBA merchandise storefront, with team pages and image assets for jerseys and basketball shoes. The clearest implemented flow is product data rendered into catalog sections, add-to-cart actions updating a cart display, and a separate product-detail script that stores selected items in browser local storage. The excerpts show only part of the site, so links from the HTML pages to these scripts are unverified; the checkout function in the cart script is a placeholder.

Main entry points: [`fuunc.js`](https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js) (Catalog cart), [`function.js`](https://github.com/kurtpantaleon/bp-website/blob/master/function.js) (Detail controls), [`1-dallas.html`](https://github.com/kurtpantaleon/bp-website/blob/master/1-dallas.html) (Team pages), [`2-warriors.html`](https://github.com/kurtpantaleon/bp-website/blob/master/2-warriors.html) (Product detail pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Product browsing"]
  node_team_pages["Team pages<br/>[1-dallas.html]"]
  node_catalog_render["Catalog rendering<br/>[fuunc.js]"]
  node_store_images["Product images"]
  node_site_navigation["Dropdown navigation<br/>[checkoutPage.js]"]
end

subgraph group_cart["Cart and checkout"]
  node_catalog_cart["Catalog cart<br/>[fuunc.js]"]
  node_checkout_stub["Checkout placeholder<br/>[fuunc.js]"]
end

subgraph group_detail["Product details"]
  node_detail_page["Product detail pages<br/>[2-warriors.html]"]
  node_detail_controls["Detail controls<br/>[function.js]"]
  node_browser_storage[("Browser local storage")]
end

node_shopper(("Shopper"))

node_shopper -.->|"browses"| node_team_pages
node_team_pages -.->|"loads"| node_catalog_render
node_catalog_render -.->|"references"| node_store_images
node_shopper -->|"adds products"| node_catalog_cart
node_catalog_cart -->|"updates display"| node_catalog_cart
node_catalog_cart -->|"invokes"| node_checkout_stub
node_shopper -.->|"views products"| node_detail_page
node_detail_page -.->|"loads"| node_detail_controls
node_detail_controls -->|"reads and writes"| node_browser_storage
node_detail_controls -->|"updates count"| node_detail_controls
node_shopper -->|"hovers links"| node_site_navigation

click node_team_pages "https://github.com/kurtpantaleon/bp-website/blob/master/1-dallas.html"
click node_catalog_render "https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js"
click node_store_images "https://github.com/kurtpantaleon/bp-website/tree/master/Images"
click node_catalog_cart "https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js"
click node_checkout_stub "https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js"
click node_detail_page "https://github.com/kurtpantaleon/bp-website/blob/master/2-warriors.html"
click node_detail_controls "https://github.com/kurtpantaleon/bp-website/blob/master/function.js"
click node_site_navigation "https://github.com/kurtpantaleon/bp-website/blob/master/checkoutPage.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_team_pages,node_catalog_render,node_store_images,node_site_navigation toneBlue
class node_catalog_cart,node_checkout_stub toneAmber
class node_detail_page,node_detail_controls,node_browser_storage toneMint
class node_shopper toneIndigo
```

## Components

### Product browsing

- [Team pages](https://github.com/kurtpantaleon/bp-website/blob/master/1-dallas.html): `1-dallas.html`
- [Catalog rendering](https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js): `fuunc.js`
- [Product images](https://github.com/kurtpantaleon/bp-website/tree/master/Images): `Images`
- [Dropdown navigation](https://github.com/kurtpantaleon/bp-website/blob/master/checkoutPage.js): `checkoutPage.js`

### Cart and checkout

- [Catalog cart](https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js): `fuunc.js`
- [Checkout placeholder](https://github.com/kurtpantaleon/bp-website/blob/master/fuunc.js): `fuunc.js`

### Product details

- [Product detail pages](https://github.com/kurtpantaleon/bp-website/blob/master/2-warriors.html): `2-warriors.html`
- [Detail controls](https://github.com/kurtpantaleon/bp-website/blob/master/function.js): `function.js`
- **Browser local storage**

### Other components

- **Shopper**

## Connections

- Shopper → Team pages: browses
- Team pages → Catalog rendering: loads
- Catalog rendering → Product images: references
- Shopper → Catalog cart: adds products (evidence: `fuunc.js`)
- Catalog cart → Catalog cart: updates display (evidence: `fuunc.js`)
- Catalog cart → Checkout placeholder: invokes (evidence: `fuunc.js`)
- Shopper → Product detail pages: views products
- Product detail pages → Detail controls: loads
- Detail controls → Browser local storage: reads and writes (evidence: `function.js`)
- Detail controls → Detail controls: updates count (evidence: `function.js`)
- Shopper → Dropdown navigation: hovers links (evidence: `checkoutPage.js`)
