# lina77b/jewelry-website architecture

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

- Interactive diagram: https://gitdiagram.com/lina77b/jewelry-website
- Repository: https://github.com/lina77b/jewelry-website

## Overview

Luna Jewelry is a static, multi-page jewelry storefront. The main customer journey runs from browsing collections to managing a persistent cart, entering delivery details, choosing payment, and seeing order confirmation; there is no backend. The README documents additional home-page carousel, authentication, repair, and contact features. The sampled JavaScript supports the cart, checkout, carousel, and form behavior, but the HTML pages were not sampled, so page-to-page links and page script wiring are shown only where documented.

Main entry points: [`content/categories.html`](https://github.com/lina77b/jewelry-website/blob/main/content/categories.html) (Category overview), [`javascript/script.js`](https://github.com/lina77b/jewelry-website/blob/main/javascript/script.js) (Cart and checkout logic), [`index.html`](https://github.com/lina77b/jewelry-website/blob/main/index.html) (Home page), [`style/styles.css`](https://github.com/lina77b/jewelry-website/blob/main/style/styles.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Home page<br/>[index.html]"]
  node_category_index["Category overview<br/>[categories.html]"]
  node_rings["Rings catalog<br/>[bague.html]"]
  node_earrings["Earrings catalog<br/>[boucles.html]"]
  node_bracelets["Bracelets catalog<br/>[bracelet.html]"]
  node_necklaces["Necklaces catalog<br/>[collier.html]"]
end

subgraph group_checkout["Cart and checkout"]
  node_cart_page["Shopping cart<br/>[panier.html]"]
  node_delivery["Delivery details<br/>[panier.html]"]
  node_payment["Payment choice<br/>[panier.html]"]
  node_confirmation["Order confirmation<br/>[panier.html]"]
  node_cart_runtime["Cart and checkout logic<br/>[script.js]"]
  node_cart_storage[("Browser cart storage")]
end

subgraph group_engagement["Customer services"]
  node_signup["Registration<br/>[inscription.html]"]
  node_login["Sign in"]
  node_repairs["Repair services<br/>[reparation.html]"]
  node_contact["Contact form<br/>[contact.html]"]
end

subgraph group_shared["Shared front end"]
  node_site_runtime["Site interactions<br/>[script.js]"]
  node_styles["Responsive styling<br/>[styles.css]"]
end

node_customer(("Customer"))

node_customer -->|"browses"| node_home
node_home -->|"links to"| node_category_index
node_category_index -->|"links to"| node_rings
node_category_index -->|"links to"| node_earrings
node_category_index -->|"links to"| node_bracelets
node_category_index -->|"links to"| node_necklaces
node_customer -->|"manages items"| node_cart_page
node_cart_runtime -->|"reads and writes"| node_cart_storage
node_cart_runtime -->|"renders cart"| node_cart_page
node_cart_runtime -->|"advances to"| node_delivery
node_cart_runtime -->|"advances to"| node_payment
node_cart_runtime -->|"confirms order"| node_confirmation
node_customer -->|"registers"| node_signup
node_customer -->|"signs in"| node_login
node_customer -->|"views services"| node_repairs
node_customer -->|"sends message"| node_contact
node_site_runtime -->|"controls carousel"| node_home
node_site_runtime -->|"validates form"| node_signup
node_site_runtime -->|"controls navigation"| node_home
node_styles -->|"styles page"| node_home
node_styles -->|"styles page"| node_category_index

click node_home "https://github.com/lina77b/jewelry-website/blob/main/index.html"
click node_category_index "https://github.com/lina77b/jewelry-website/blob/main/content/categories.html"
click node_rings "https://github.com/lina77b/jewelry-website/blob/main/content/bague.html"
click node_earrings "https://github.com/lina77b/jewelry-website/blob/main/content/boucles.html"
click node_bracelets "https://github.com/lina77b/jewelry-website/blob/main/content/bracelet.html"
click node_necklaces "https://github.com/lina77b/jewelry-website/blob/main/content/collier.html"
click node_cart_page "https://github.com/lina77b/jewelry-website/blob/main/content/panier.html"
click node_delivery "https://github.com/lina77b/jewelry-website/blob/main/content/panier.html"
click node_payment "https://github.com/lina77b/jewelry-website/blob/main/content/panier.html"
click node_confirmation "https://github.com/lina77b/jewelry-website/blob/main/content/panier.html"
click node_cart_runtime "https://github.com/lina77b/jewelry-website/blob/main/javascript/script.js"
click node_signup "https://github.com/lina77b/jewelry-website/blob/main/content/inscription.html"
click node_login "https://github.com/lina77b/jewelry-website/blob/main/content/autentification.html"
click node_repairs "https://github.com/lina77b/jewelry-website/blob/main/content/reparation.html"
click node_contact "https://github.com/lina77b/jewelry-website/blob/main/content/contact.html"
click node_site_runtime "https://github.com/lina77b/jewelry-website/blob/main/javascript/script.js"
click node_styles "https://github.com/lina77b/jewelry-website/blob/main/style/styles.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_home,node_category_index,node_rings,node_earrings,node_bracelets,node_necklaces toneBlue
class node_cart_page,node_delivery,node_payment,node_confirmation,node_cart_runtime,node_cart_storage toneAmber
class node_signup,node_login,node_repairs,node_contact toneMint
class node_site_runtime,node_styles toneRose
class node_customer toneIndigo
```

## Components

### Storefront

- [Home page](https://github.com/lina77b/jewelry-website/blob/main/index.html): `index.html`
- [Category overview](https://github.com/lina77b/jewelry-website/blob/main/content/categories.html): `content/categories.html`
- [Rings catalog](https://github.com/lina77b/jewelry-website/blob/main/content/bague.html): `content/bague.html`
- [Earrings catalog](https://github.com/lina77b/jewelry-website/blob/main/content/boucles.html): `content/boucles.html`
- [Bracelets catalog](https://github.com/lina77b/jewelry-website/blob/main/content/bracelet.html): `content/bracelet.html`
- [Necklaces catalog](https://github.com/lina77b/jewelry-website/blob/main/content/collier.html): `content/collier.html`

### Cart and checkout

- [Shopping cart](https://github.com/lina77b/jewelry-website/blob/main/content/panier.html): `content/panier.html`
- [Delivery details](https://github.com/lina77b/jewelry-website/blob/main/content/panier.html): `content/panier.html`
- [Payment choice](https://github.com/lina77b/jewelry-website/blob/main/content/panier.html): `content/panier.html`
- [Order confirmation](https://github.com/lina77b/jewelry-website/blob/main/content/panier.html): `content/panier.html`
- [Cart and checkout logic](https://github.com/lina77b/jewelry-website/blob/main/javascript/script.js): `javascript/script.js`
- **Browser cart storage**

### Customer services

- [Registration](https://github.com/lina77b/jewelry-website/blob/main/content/inscription.html): `content/inscription.html`
- [Sign in](https://github.com/lina77b/jewelry-website/blob/main/content/autentification.html): `content/autentification.html`
- [Repair services](https://github.com/lina77b/jewelry-website/blob/main/content/reparation.html): `content/reparation.html`
- [Contact form](https://github.com/lina77b/jewelry-website/blob/main/content/contact.html): `content/contact.html`

### Shared front end

- [Site interactions](https://github.com/lina77b/jewelry-website/blob/main/javascript/script.js): `javascript/script.js`
- [Responsive styling](https://github.com/lina77b/jewelry-website/blob/main/style/styles.css): `style/styles.css`

### Other components

- **Customer**

## Connections

- Customer → Home page: browses (evidence: `README.md`)
- Home page → Category overview: links to (evidence: `README.md`)
- Category overview → Rings catalog: links to (evidence: `README.md`)
- Category overview → Earrings catalog: links to (evidence: `README.md`)
- Category overview → Bracelets catalog: links to (evidence: `README.md`)
- Category overview → Necklaces catalog: links to (evidence: `README.md`)
- Customer → Shopping cart: manages items (evidence: `README.md`)
- Cart and checkout logic → Browser cart storage: reads and writes (evidence: `javascript/script.js`)
- Cart and checkout logic → Shopping cart: renders cart (evidence: `javascript/script.js`)
- Cart and checkout logic → Delivery details: advances to (evidence: `javascript/script.js`)
- Cart and checkout logic → Payment choice: advances to (evidence: `javascript/script.js`)
- Cart and checkout logic → Order confirmation: confirms order (evidence: `javascript/script.js`)
- Customer → Registration: registers (evidence: `README.md`)
- Customer → Sign in: signs in (evidence: `README.md`)
- Customer → Repair services: views services (evidence: `README.md`)
- Customer → Contact form: sends message (evidence: `README.md`)
- Site interactions → Home page: controls carousel (evidence: `javascript/script.js`)
- Site interactions → Registration: validates form (evidence: `javascript/script.js`)
- Site interactions → Home page: controls navigation (evidence: `javascript/script.js`)
- Responsive styling → Home page: styles page (evidence: `README.md`)
- Responsive styling → Category overview: styles page (evidence: `README.md`)
