# panhapork/sweet_bloom_bakery architecture

> Architecture diagram of the GitHub repository panhapork/sweet_bloom_bakery, 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/panhapork/sweet_bloom_bakery
- Repository: https://github.com/panhapork/sweet_bloom_bakery

## Overview

SweetBloom is a small, static bakery storefront. Visitors browse the product catalog, narrow it by category or search term, and can open a product detail page that displays its description, price, image, and relevant options. The sampled JavaScript shows the filtering and detail-rendering behavior; the HTML, shared styling, home page, and image assets are present in the tree but were not sampled, so their links and behavior are not inferred.

Main entry points: [`product.html`](https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.html) (Product catalog), [`detail.html`](https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.html) (Product detail page), [`product.js`](https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.js) (Catalog filtering), [`detail.js`](https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.js) (Detail rendering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Product browsing"]
  node_home["Home page<br/>[index.html]"]
  node_catalog["Product catalog<br/>[product.html]"]
  node_catalog_filter["Catalog filtering<br/>[product.js]"]
end

subgraph group_details["Product details"]
  node_detail_page["Product detail page<br/>[detail.html]"]
  node_detail_render["Detail rendering<br/>[detail.js]"]
end

subgraph group_presentation["Site presentation"]
  node_site_styles["Site styles<br/>[style.css]"]
  node_product_images["Product images"]
end

node_visitor(("Visitor"))

node_catalog_filter -->|"updates listing"| node_catalog
node_detail_render -->|"renders details"| node_detail_page
node_visitor -.->|"opens site"| node_home
node_visitor -.->|"browses products"| node_catalog
node_visitor -.->|"views product"| node_detail_page

click node_home "https://github.com/panhapork/sweet_bloom_bakery/blob/main/index.html"
click node_catalog "https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.html"
click node_catalog_filter "https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.js"
click node_detail_page "https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.html"
click node_detail_render "https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.js"
click node_site_styles "https://github.com/panhapork/sweet_bloom_bakery/blob/main/style.css"
click node_product_images "https://github.com/panhapork/sweet_bloom_bakery/tree/main/images"

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_home,node_catalog,node_catalog_filter toneBlue
class node_detail_page,node_detail_render toneAmber
class node_site_styles,node_product_images toneMint
class node_visitor toneIndigo
```

## Components

### Product browsing

- [Home page](https://github.com/panhapork/sweet_bloom_bakery/blob/main/index.html): `index.html`
- [Product catalog](https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.html): `product.html`
- [Catalog filtering](https://github.com/panhapork/sweet_bloom_bakery/blob/main/product.js): `product.js`

### Product details

- [Product detail page](https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.html): `detail.html`
- [Detail rendering](https://github.com/panhapork/sweet_bloom_bakery/blob/main/detail.js): `detail.js`

### Site presentation

- [Site styles](https://github.com/panhapork/sweet_bloom_bakery/blob/main/style.css): `style.css`
- [Product images](https://github.com/panhapork/sweet_bloom_bakery/tree/main/images): `images`

### Other components

- **Visitor**

## Connections

- Catalog filtering → Product catalog: updates listing (evidence: `product.js`)
- Detail rendering → Product detail page: renders details (evidence: `detail.js`)
- Visitor → Home page: opens site
- Visitor → Product catalog: browses products
- Visitor → Product detail page: views product
