# nhewvys/john architecture

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

- Interactive diagram: https://gitdiagram.com/nhewvys/john
- Repository: https://github.com/nhewvys/john

## Overview

This is a browser-based clinic website, with visitor-facing information, location imagery, and a contact form. The main visitor workflow is to browse the location carousel and gallery, then submit a message; the site also provides navigation and scroll-triggered animations. The sampled JavaScript shows carousel data loading from slides.json and contact submission to Formspree. The README is empty, and the HTML and styles were not sampled, so page structure and styling relationships are not mapped; image use beyond the gallery’s slide data is uncertain.

Main entry points: [`src/js/index.js`](https://github.com/nhewvys/john/blob/main/src/js/index.js) (Location carousel), [`src/js/main.js`](https://github.com/nhewvys/john/blob/main/src/js/main.js) (Contact submission), [`slides.json`](https://github.com/nhewvys/john/blob/main/slides.json) (Slide data), [`assets/images`](https://github.com/nhewvys/john/tree/main/assets/images) (Location images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_visitor_site["Visitor experience"]
  node_site_page["Clinic website<br/>[index.html]"]
  node_site_styles["Page styles<br/>[style.css]"]
  node_utility_styles["Utility styles<br/>[ultilitaria.css]"]
end

subgraph group_locations["Location gallery"]
  node_carousel["Location carousel<br/>[index.js]"]
  node_gallery["Image gallery<br/>[index.js]"]
  node_slide_data["Slide data<br/>[slides.json]"]
  node_location_images["Location images"]
end

subgraph group_interaction["Site interactions"]
  node_contact_form["Contact submission<br/>[main.js]"]
  node_menu["Menu toggle<br/>[main.js]"]
  node_animations["Scroll animations<br/>[main.js]"]
end

node_visitor(("Site visitor"))
node_formspree{{"Formspree"}}

node_visitor -->|"browses"| node_carousel
node_visitor -->|"submits message"| node_contact_form
node_carousel -->|"loads data"| node_slide_data
node_carousel -->|"opens gallery"| node_gallery
node_gallery -.->|"displays images"| node_location_images
node_contact_form -->|"posts message"| node_formspree

click node_site_page "https://github.com/nhewvys/john/blob/main/index.html"
click node_site_styles "https://github.com/nhewvys/john/blob/main/src/css/style.css"
click node_utility_styles "https://github.com/nhewvys/john/blob/main/src/css/ultilitaria.css"
click node_carousel "https://github.com/nhewvys/john/blob/main/src/js/index.js"
click node_gallery "https://github.com/nhewvys/john/blob/main/src/js/index.js"
click node_slide_data "https://github.com/nhewvys/john/blob/main/slides.json"
click node_location_images "https://github.com/nhewvys/john/tree/main/assets/images"
click node_contact_form "https://github.com/nhewvys/john/blob/main/src/js/main.js"
click node_menu "https://github.com/nhewvys/john/blob/main/src/js/main.js"
click node_animations "https://github.com/nhewvys/john/blob/main/src/js/main.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_page,node_site_styles,node_utility_styles toneBlue
class node_carousel,node_gallery,node_slide_data,node_location_images toneAmber
class node_contact_form,node_menu,node_animations toneMint
class node_visitor,node_formspree toneIndigo
```

## Components

### Visitor experience

- [Clinic website](https://github.com/nhewvys/john/blob/main/index.html): `index.html`
- [Page styles](https://github.com/nhewvys/john/blob/main/src/css/style.css): `src/css/style.css`
- [Utility styles](https://github.com/nhewvys/john/blob/main/src/css/ultilitaria.css): `src/css/ultilitaria.css`

### Location gallery

- [Location carousel](https://github.com/nhewvys/john/blob/main/src/js/index.js): `src/js/index.js`
- [Image gallery](https://github.com/nhewvys/john/blob/main/src/js/index.js): `src/js/index.js`
- [Slide data](https://github.com/nhewvys/john/blob/main/slides.json): `slides.json`
- [Location images](https://github.com/nhewvys/john/tree/main/assets/images): `assets/images`

### Site interactions

- [Contact submission](https://github.com/nhewvys/john/blob/main/src/js/main.js): `src/js/main.js`
- [Menu toggle](https://github.com/nhewvys/john/blob/main/src/js/main.js): `src/js/main.js`
- [Scroll animations](https://github.com/nhewvys/john/blob/main/src/js/main.js): `src/js/main.js`

### Other components

- **Site visitor**
- **Formspree**

## Connections

- Site visitor → Location carousel: browses (evidence: `src/js/index.js`)
- Site visitor → Contact submission: submits message (evidence: `src/js/main.js`)
- Location carousel → Slide data: loads data (evidence: `src/js/index.js`)
- Location carousel → Image gallery: opens gallery (evidence: `src/js/index.js`)
- Image gallery → Location images: displays images
- Contact submission → Formspree: posts message (evidence: `src/js/main.js`)
