# allencodess/floralsite architecture

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

- Interactive diagram: https://gitdiagram.com/allencodess/floralsite
- Repository: https://github.com/allencodess/floralsite

## Overview

This repository is a floral storefront and portfolio site. Visitors enter through the routed React app, browse the homepage, gallery, and shop, and can open a product detail page or read about custom-event inquiries. The catalog is a local product-data module; no checkout or inquiry submission service is evidenced. The backend file is only identified as read in the source index, with no implementation details or demonstrated connection, so it is omitted. Edges reflect shown imports, routes, and component use.

Main entry points: [`frontend/src/App.jsx`](https://github.com/allencodess/floralsite/blob/main/frontend/src/App.jsx) (App Routes), [`frontend/src/pages/Shop.jsx`](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Shop.jsx) (Shop Page), [`frontend/src/components/Footer.jsx`](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/Footer.jsx) (Site Footer), [`frontend/src/pages/Homepage.jsx`](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Homepage.jsx) (Homepage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_router["App Routes<br/>[App.jsx]"]
  node_navbar["Navigation Bar<br/>[NavBar.jsx]"]
  node_hamburger["Mobile Menu Toggle<br/>[HamburgerMenu.jsx]"]
end

subgraph group_browse["Storefront Browsing"]
  node_home["Homepage<br/>[Homepage.jsx]"]
  node_carousel["Hero Carousel<br/>[Carousel.jsx]"]
  node_cta["Feature Links<br/>[CallToAction.jsx]"]
  node_gallery["Gallery Page<br/>[Gallery.jsx]"]
  node_masonry["Gallery Grid<br/>[MasonryGrid.jsx]"]
end

subgraph group_catalog["Product Catalog"]
  node_shop["Shop Page<br/>[Shop.jsx]"]
  node_products["Product Data<br/>[data.js]"]
  node_details["Product Details<br/>[ProductDetails.jsx]"]
end

subgraph group_contact["Brand and Inquiries"]
  node_about["About Page<br/>[About.jsx]"]
  node_inquiry["Event Inquiry Page<br/>[Inquiry.jsx]"]
  node_footer["Site Footer<br/>[Footer.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"renders"| node_navbar
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_gallery
node_router -->|"routes to"| node_about
node_router -->|"routes to"| node_shop
node_router -->|"routes to"| node_inquiry
node_router -->|"routes to"| node_details
node_navbar -->|"renders"| node_hamburger
node_home -->|"renders"| node_carousel
node_home -->|"renders"| node_cta
node_home -->|"renders"| node_footer
node_cta -->|"links to"| node_shop
node_cta -->|"links to"| node_inquiry
node_cta -->|"links to"| node_gallery
node_gallery -->|"renders"| node_masonry
node_gallery -->|"renders"| node_footer
node_shop -->|"reads"| node_products
node_shop -->|"links to"| node_details
node_shop -->|"renders"| node_footer
node_details -->|"reads"| node_products
node_details -->|"renders"| node_footer
node_about -->|"links to"| node_shop
node_about -->|"renders"| node_footer
node_inquiry -->|"renders"| node_footer

click node_entry "https://github.com/allencodess/floralsite/blob/main/frontend/src/main.jsx"
click node_router "https://github.com/allencodess/floralsite/blob/main/frontend/src/App.jsx"
click node_navbar "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/NavBar.jsx"
click node_hamburger "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/HamburgerMenu.jsx"
click node_home "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Homepage.jsx"
click node_carousel "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/Carousel.jsx"
click node_cta "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/CallToAction.jsx"
click node_gallery "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Gallery.jsx"
click node_masonry "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/MasonryGrid.jsx"
click node_shop "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Shop.jsx"
click node_products "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/data.js"
click node_details "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/ProductDetails.jsx"
click node_about "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/About.jsx"
click node_inquiry "https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Inquiry.jsx"
click node_footer "https://github.com/allencodess/floralsite/blob/main/frontend/src/components/Footer.jsx"

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_entry,node_router,node_navbar,node_hamburger toneBlue
class node_home,node_carousel,node_cta,node_gallery,node_masonry toneAmber
class node_shop,node_products,node_details toneMint
class node_about,node_inquiry,node_footer toneRose
class node_visitor toneIndigo
```

## Components

### Application Shell

- [React Entry](https://github.com/allencodess/floralsite/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [App Routes](https://github.com/allencodess/floralsite/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Navigation Bar](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/NavBar.jsx): `frontend/src/components/NavBar.jsx`
- [Mobile Menu Toggle](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/HamburgerMenu.jsx): `frontend/src/components/HamburgerMenu.jsx`

### Storefront Browsing

- [Homepage](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Homepage.jsx): `frontend/src/pages/Homepage.jsx`
- [Hero Carousel](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/Carousel.jsx): `frontend/src/components/Carousel.jsx`
- [Feature Links](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/CallToAction.jsx): `frontend/src/components/CallToAction.jsx`
- [Gallery Page](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Gallery.jsx): `frontend/src/pages/Gallery.jsx`
- [Gallery Grid](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/MasonryGrid.jsx): `frontend/src/components/MasonryGrid.jsx`

### Product Catalog

- [Shop Page](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Shop.jsx): `frontend/src/pages/Shop.jsx`
- [Product Data](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/data.js): `frontend/src/components/data.js`
- [Product Details](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/ProductDetails.jsx): `frontend/src/pages/ProductDetails.jsx`

### Brand and Inquiries

- [About Page](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/About.jsx): `frontend/src/pages/About.jsx`
- [Event Inquiry Page](https://github.com/allencodess/floralsite/blob/main/frontend/src/pages/Inquiry.jsx): `frontend/src/pages/Inquiry.jsx`
- [Site Footer](https://github.com/allencodess/floralsite/blob/main/frontend/src/components/Footer.jsx): `frontend/src/components/Footer.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React Entry: opens site
- React Entry → App Routes: renders (evidence: `frontend/src/main.jsx`)
- App Routes → Navigation Bar: renders (evidence: `frontend/src/App.jsx`)
- App Routes → Homepage: routes to (evidence: `frontend/src/App.jsx`)
- App Routes → Gallery Page: routes to (evidence: `frontend/src/App.jsx`)
- App Routes → About Page: routes to (evidence: `frontend/src/App.jsx`)
- App Routes → Shop Page: routes to (evidence: `frontend/src/App.jsx`)
- App Routes → Event Inquiry Page: routes to (evidence: `frontend/src/App.jsx`)
- App Routes → Product Details: routes to (evidence: `frontend/src/App.jsx`)
- Navigation Bar → Mobile Menu Toggle: renders (evidence: `frontend/src/components/NavBar.jsx`)
- Homepage → Hero Carousel: renders (evidence: `frontend/src/pages/Homepage.jsx`)
- Homepage → Feature Links: renders (evidence: `frontend/src/pages/Homepage.jsx`)
- Homepage → Site Footer: renders (evidence: `frontend/src/pages/Homepage.jsx`)
- Feature Links → Shop Page: links to (evidence: `frontend/src/components/CallToAction.jsx`)
- Feature Links → Event Inquiry Page: links to (evidence: `frontend/src/components/CallToAction.jsx`)
- Feature Links → Gallery Page: links to (evidence: `frontend/src/components/CallToAction.jsx`)
- Gallery Page → Gallery Grid: renders (evidence: `frontend/src/pages/Gallery.jsx`)
- Gallery Page → Site Footer: renders (evidence: `frontend/src/pages/Gallery.jsx`)
- Shop Page → Product Data: reads (evidence: `frontend/src/pages/Shop.jsx`)
- Shop Page → Product Details: links to (evidence: `frontend/src/pages/Shop.jsx`)
- Shop Page → Site Footer: renders (evidence: `frontend/src/pages/Shop.jsx`)
- Product Details → Product Data: reads (evidence: `frontend/src/pages/ProductDetails.jsx`)
- Product Details → Site Footer: renders (evidence: `frontend/src/pages/ProductDetails.jsx`)
- About Page → Shop Page: links to (evidence: `frontend/src/pages/About.jsx`)
- About Page → Site Footer: renders (evidence: `frontend/src/pages/About.jsx`)
- Event Inquiry Page → Site Footer: renders (evidence: `frontend/src/pages/Inquiry.jsx`)
