# mrzarei/shaga architecture

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

- Interactive diagram: https://gitdiagram.com/mrzarei/shaga
- Repository: https://github.com/mrzarei/shaga

## Overview

This is a static salon campaign/marketing site, with browser-side enhancements for its page content and an asynchronously loaded customer-review section. The visible workflow is a visitor exploring campaign information, gallery and FAQ, with reviews fetched when their section approaches view. The excerpts support those interactive behaviors, but do not show the HTML wiring or the review endpoint implementation; the graph therefore avoids asserting how the page loads the script or what service serves reviews.

Main entry points: [`script.js`](https://github.com/mrzarei/shaga/blob/master/script.js) (Browser behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Campaign page"]
  node_site["Salon landing page<br/>[index.html]"]
  node_styles["Page styling<br/>[styles.css]"]
  node_assets["Site imagery"]
end

subgraph group_interaction["Page interactions"]
  node_script["Browser behavior<br/>[script.js]"]
  node_reveal["Scroll reveals<br/>[script.js]"]
  node_faq["FAQ accordion<br/>[script.js]"]
  node_gallery["Gallery lightbox<br/>[script.js]"]
  node_motion["Motion effects<br/>[script.js]"]
end

subgraph group_content["Campaign content"]
  node_countdown["Campaign countdown<br/>[script.js]"]
  node_counters["Animated counters<br/>[script.js]"]
end

subgraph group_reviews["Customer reviews"]
  node_reviews["Reviews display<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_review_service["Reviews endpoint"]

node_script -->|"observes sections"| node_reveal
node_script -->|"updates timer"| node_countdown
node_script -->|"animates values"| node_counters
node_script -->|"closes other items"| node_faq
node_script -->|"opens and navigates"| node_gallery
node_script -->|"applies effects"| node_motion
node_script -->|"loads and renders"| node_reviews
node_reviews -->|"fetches reviews"| node_review_service
node_visitor -->|"toggles"| node_faq
node_visitor -->|"opens gallery"| node_gallery

click node_site "https://github.com/mrzarei/shaga/blob/master/index.html"
click node_styles "https://github.com/mrzarei/shaga/blob/master/styles.css"
click node_assets "https://github.com/mrzarei/shaga/tree/master/Images"
click node_script "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_reveal "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_faq "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_gallery "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_motion "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_countdown "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_counters "https://github.com/mrzarei/shaga/blob/master/script.js"
click node_reviews "https://github.com/mrzarei/shaga/blob/master/script.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_site,node_styles,node_assets,node_review_service toneBlue
class node_script,node_reveal,node_faq,node_gallery,node_motion toneAmber
class node_countdown,node_counters toneMint
class node_reviews toneRose
class node_visitor toneIndigo
```

## Components

### Campaign page

- [Salon landing page](https://github.com/mrzarei/shaga/blob/master/index.html): `index.html`
- [Page styling](https://github.com/mrzarei/shaga/blob/master/styles.css): `styles.css`
- [Site imagery](https://github.com/mrzarei/shaga/tree/master/Images): `Images`

### Page interactions

- [Browser behavior](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`
- [Scroll reveals](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`
- [FAQ accordion](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`
- [Gallery lightbox](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`
- [Motion effects](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`

### Campaign content

- [Campaign countdown](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`
- [Animated counters](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`

### Customer reviews

- [Reviews display](https://github.com/mrzarei/shaga/blob/master/script.js): `script.js`

### Other components

- **Visitor**
- **Reviews endpoint**

## Connections

- Browser behavior → Scroll reveals: observes sections (evidence: `script.js`)
- Browser behavior → Campaign countdown: updates timer (evidence: `script.js`)
- Browser behavior → Animated counters: animates values (evidence: `script.js`)
- Browser behavior → FAQ accordion: closes other items (evidence: `script.js`)
- Browser behavior → Gallery lightbox: opens and navigates (evidence: `script.js`)
- Browser behavior → Motion effects: applies effects (evidence: `script.js`)
- Browser behavior → Reviews display: loads and renders (evidence: `script.js`)
- Reviews display → Reviews endpoint: fetches reviews (evidence: `script.js`)
- Visitor → FAQ accordion: toggles (evidence: `script.js`)
- Visitor → Gallery lightbox: opens gallery (evidence: `script.js`)
