# jhon287/art-et-coiffure-2-website architecture

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

- Interactive diagram: https://gitdiagram.com/jhon287/art-et-coiffure-2-website
- Repository: https://github.com/jhon287/art-et-coiffure-2-website

## Overview

Art & Coiffure 2 is a lightweight, multilingual salon-information website. Its browser workflow loads salon content from JSON, selects a language from the URL or saved preference, and renders translated sections, contact links, hours, and prices. The README also documents responsive presentation and a language switcher. The source excerpt supports the data-loading and rendering relationships; HTML structure and styling details are not sampled, so those links are omitted.

Main entry points: [`index.html`](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/index.html) (Website page), [`script.js`](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js) (Content rendering), [`styles.css`](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/styles.css) (Responsive presentation), [`data/site.json`](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/data/site.json) (Salon details and translations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Salon website"]
  node_page["Website page<br/>[index.html]"]
  node_presentation["Responsive presentation<br/>[styles.css]"]
end

subgraph group_content["Salon content"]
  node_salon_data["Salon details and translations<br/>[site.json]"]
end

subgraph group_runtime["Browser runtime"]
  node_language["Language selection<br/>[script.js]"]
  node_content_render["Content rendering<br/>[script.js]"]
  node_navigation["Navigation toggle<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"views"| node_page
node_page -.->|"runs script"| node_content_render
node_content_render -->|"loads JSON"| node_salon_data
node_content_render -->|"selects language"| node_language
node_language -->|"applies selection"| node_content_render
node_presentation -.->|"styles"| node_page
node_page -.->|"provides controls"| node_navigation

click node_page "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/index.html"
click node_presentation "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/styles.css"
click node_language "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js"
click node_content_render "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js"
click node_navigation "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js"
click node_salon_data "https://github.com/jhon287/art-et-coiffure-2-website/blob/main/data/site.json"

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_page,node_presentation toneBlue
class node_salon_data toneAmber
class node_language,node_content_render,node_navigation toneMint
class node_visitor toneIndigo
```

## Components

### Salon website

- [Website page](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/index.html): `index.html`
- [Responsive presentation](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/styles.css): `styles.css`

### Salon content

- [Salon details and translations](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/data/site.json): `data/site.json`

### Browser runtime

- [Language selection](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js): `script.js`
- [Content rendering](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js): `script.js`
- [Navigation toggle](https://github.com/jhon287/art-et-coiffure-2-website/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Website page: views (evidence: `README.md`)
- Website page → Content rendering: runs script
- Content rendering → Salon details and translations: loads JSON (evidence: `script.js`)
- Content rendering → Language selection: selects language (evidence: `script.js`)
- Language selection → Content rendering: applies selection (evidence: `script.js`)
- Responsive presentation → Website page: styles
- Website page → Navigation toggle: provides controls
