# joexseven7/ay_print architecture

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

- Interactive diagram: https://gitdiagram.com/joexseven7/ay_print
- Repository: https://github.com/joexseven7/ay_print

## Overview

AY PRINT is a static printing-business website for browsing print products and requesting quotes. The main customer journey is catalogue browsing, opening a product detail, then following its quote link to the contact form; the form validates the request and submits it to Formspree. Other site capabilities include a project gallery, service and testimonial content, and shared site configuration. The sampled JavaScript shows the data-loading and form behavior, but the HTML wiring and several data-path values were not inspected, so those connections are not asserted.

Main entry points: [`js/main.js`](https://github.com/joexseven7/ay_print/blob/main/js/main.js) (Shared interactions), [`js/products.js`](https://github.com/joexseven7/ay_print/blob/main/js/products.js) (Catalogue filtering), [`product-detail.html`](https://github.com/joexseven7/ay_print/blob/main/product-detail.html) (Product detail page), [`contact.html`](https://github.com/joexseven7/ay_print/blob/main/contact.html) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website experience"]
  node_pages["Site pages<br/>[index.html]"]
  node_shared_config["Shared configuration<br/>[config.js]"]
  node_main_runtime["Shared interactions<br/>[main.js]"]
end

subgraph group_catalog["Product catalogue"]
  node_catalogue_page["Product catalogue page<br/>[products.html]"]
  node_catalogue["Catalogue filtering<br/>[products.js]"]
  node_product_data["Product records<br/>[products.json]"]
  node_detail_page["Product detail page"]
  node_product_detail["Variant details<br/>[product-detail.js]"]
end

subgraph group_content["Site content"]
  node_gallery_page["Project gallery page<br/>[gallery.html]"]
  node_gallery["Gallery filtering<br/>[gallery.js]"]
  node_gallery_data["Gallery records<br/>[gallery.json]"]
  node_services["Service content<br/>[services.json]"]
  node_testimonials["Testimonials<br/>[testimonials.json]"]
  node_site_config["Site settings<br/>[config.json]"]
end

subgraph group_quote["Quote handling"]
  node_contact_page["Contact page<br/>[contact.html]"]
  node_quote_form["Quote form handling<br/>[contact.js]"]
end

node_visitor(("Visitor"))
node_formspree["Formspree"]

node_visitor -->|"browses"| node_catalogue_page
node_catalogue -->|"fetches records"| node_product_data
node_catalogue_page -.->|"runs catalogue"| node_catalogue
node_catalogue -->|"opens details"| node_detail_page
node_product_detail -->|"fetches records"| node_product_data
node_detail_page -->|"links to quote"| node_contact_page
node_detail_page -.->|"runs details"| node_product_detail
node_visitor -->|"views projects"| node_gallery_page
node_gallery -->|"fetches records"| node_gallery_data
node_gallery_page -.->|"runs gallery"| node_gallery
node_main_runtime -->|"fetches content"| node_services
node_main_runtime -->|"fetches content"| node_testimonials
node_main_runtime -.->|"loads settings"| node_site_config
node_main_runtime -.->|"uses utilities"| node_shared_config
node_quote_form -->|"submits request"| node_formspree
node_visitor -->|"requests quote"| node_contact_page
node_contact_page -.->|"runs form"| node_quote_form

click node_pages "https://github.com/joexseven7/ay_print/blob/main/index.html"
click node_shared_config "https://github.com/joexseven7/ay_print/blob/main/js/config.js"
click node_catalogue_page "https://github.com/joexseven7/ay_print/blob/main/products.html"
click node_catalogue "https://github.com/joexseven7/ay_print/blob/main/js/products.js"
click node_product_data "https://github.com/joexseven7/ay_print/blob/main/data/products.json"
click node_detail_page "https://github.com/joexseven7/ay_print/blob/main/product-detail.html"
click node_product_detail "https://github.com/joexseven7/ay_print/blob/main/js/product-detail.js"
click node_gallery_page "https://github.com/joexseven7/ay_print/blob/main/gallery.html"
click node_gallery "https://github.com/joexseven7/ay_print/blob/main/js/gallery.js"
click node_gallery_data "https://github.com/joexseven7/ay_print/blob/main/data/gallery.json"
click node_services "https://github.com/joexseven7/ay_print/blob/main/data/services.json"
click node_testimonials "https://github.com/joexseven7/ay_print/blob/main/data/testimonials.json"
click node_site_config "https://github.com/joexseven7/ay_print/blob/main/data/config.json"
click node_main_runtime "https://github.com/joexseven7/ay_print/blob/main/js/main.js"
click node_contact_page "https://github.com/joexseven7/ay_print/blob/main/contact.html"
click node_quote_form "https://github.com/joexseven7/ay_print/blob/main/js/contact.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_pages,node_shared_config,node_main_runtime toneBlue
class node_catalogue_page,node_catalogue,node_product_data,node_detail_page,node_product_detail toneAmber
class node_gallery_page,node_gallery,node_gallery_data,node_services,node_testimonials,node_site_config toneMint
class node_contact_page,node_quote_form toneRose
class node_visitor,node_formspree toneIndigo
```

## Components

### Website experience

- [Site pages](https://github.com/joexseven7/ay_print/blob/main/index.html): `index.html`
- [Shared configuration](https://github.com/joexseven7/ay_print/blob/main/js/config.js): `js/config.js`
- [Shared interactions](https://github.com/joexseven7/ay_print/blob/main/js/main.js): `js/main.js`

### Product catalogue

- [Product catalogue page](https://github.com/joexseven7/ay_print/blob/main/products.html): `products.html`
- [Catalogue filtering](https://github.com/joexseven7/ay_print/blob/main/js/products.js): `js/products.js`
- [Product records](https://github.com/joexseven7/ay_print/blob/main/data/products.json): `data/products.json`
- [Product detail page](https://github.com/joexseven7/ay_print/blob/main/product-detail.html): `product-detail.html`
- [Variant details](https://github.com/joexseven7/ay_print/blob/main/js/product-detail.js): `js/product-detail.js`

### Site content

- [Project gallery page](https://github.com/joexseven7/ay_print/blob/main/gallery.html): `gallery.html`
- [Gallery filtering](https://github.com/joexseven7/ay_print/blob/main/js/gallery.js): `js/gallery.js`
- [Gallery records](https://github.com/joexseven7/ay_print/blob/main/data/gallery.json): `data/gallery.json`
- [Service content](https://github.com/joexseven7/ay_print/blob/main/data/services.json): `data/services.json`
- [Testimonials](https://github.com/joexseven7/ay_print/blob/main/data/testimonials.json): `data/testimonials.json`
- [Site settings](https://github.com/joexseven7/ay_print/blob/main/data/config.json): `data/config.json`

### Quote handling

- [Contact page](https://github.com/joexseven7/ay_print/blob/main/contact.html): `contact.html`
- [Quote form handling](https://github.com/joexseven7/ay_print/blob/main/js/contact.js): `js/contact.js`

### Other components

- **Visitor**
- **Formspree**

## Connections

- Visitor → Product catalogue page: browses
- Catalogue filtering → Product records: fetches records (evidence: `js/products.js`)
- Product catalogue page → Catalogue filtering: runs catalogue
- Catalogue filtering → Product detail page: opens details (evidence: `js/products.js`)
- Variant details → Product records: fetches records (evidence: `js/product-detail.js`)
- Product detail page → Contact page: links to quote
- Product detail page → Variant details: runs details
- Visitor → Project gallery page: views projects
- Gallery filtering → Gallery records: fetches records (evidence: `js/gallery.js`)
- Project gallery page → Gallery filtering: runs gallery
- Shared interactions → Service content: fetches content (evidence: `js/main.js`)
- Shared interactions → Testimonials: fetches content (evidence: `js/main.js`)
- Shared interactions → Site settings: loads settings
- Shared interactions → Shared configuration: uses utilities
- Quote form handling → Formspree: submits request (evidence: `js/contact.js`)
- Visitor → Contact page: requests quote
- Contact page → Quote form handling: runs form
