# sushant-nautiyal/dhriti-yogshala architecture

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

- Interactive diagram: https://gitdiagram.com/sushant-nautiyal/dhriti-yogshala
- Repository: https://github.com/sushant-nautiyal/dhriti-yogshala

## Overview

1. **Overall architecture**
   - Dhriti Yogshala is a **static, multi-page website** for a yoga studio.
   - There is **no server-side application, database, or build pipeline**; the browser loads HTML, CSS, JavaScript, images, and a few content JSON files directly from the repo.

2. **Page layer**
   - The main user-facing entry points are the standalone HTML pages: `index.html`, `about.html`, `classes.html`, `schedule.html`, `gallery.html`, `blog.html`, `testimonials.html`, `contact.html`, and `privacy.html`.
   - Each page is a self-contained route, likely sharing a common navigation/footer pattern for consistent site-wide movement.

3. **Content and information architecture**
   - The site is organized around a studio-funnel structure: **home → about/classes/schedule → gallery/testimonials → contact**.
   - `blog.html` appears to be a lightweight placeholder for updates rather than a fully featured content system.
   - `privacy.html` supports trust/compliance rather than a user workflow.

4. **Presentation layer**
   - Styling is centralized in `assets/css/styles.css`.
   - This file defines the visual identity: calm editorial layout, spacing, typography, responsive sections, and overall brand feel.
   - Because the site is static, design consistency depends heavily on this shared stylesheet rather than component-based rendering.

5. **Client-side behavior**
   - `assets/js/main.js` provides minimal browser-side interactivity.
   - Based on the README, its responsibilities include **mobile navigation**, **dynamic year rendering**, and **booking/contact link handling**.
   - This keeps the site lightweight while still supporting a responsive user experience.

6. **Data/content files**
   - `public/data/classes.json`, `public/data/schedule.json`, and `public/data/testimonials.json` act as structured content sources or sample data.
   - These are the only explicit data artifacts in the repo and represent a **content layer separate from the page markup**.
   - Since there is no backend, any dynamic usage of these files would happen entirely in the browser or during future static generation.

7. **Media and asset layer**
   - `assets/images/` contains branding and photography used across pages.
   - The visual experience depends on these assets for atmosphere and credibility, especially on the homepage, gallery, and testimonial sections.
   - The `assets/images/README.md` suggests image usage guidance or organization support.

8. **Contact and conversion flows**
   - The primary conversion path is **contact/booking**, with WhatsApp and a registration form called out in the README.
   - The form destination and WhatsApp number are expected to be configured in `assets/js/main.js`.
   - This is an important boundary: user submissions likely leave the site through external services rather than being processed locally.

9. **SEO and web app metadata**
   - `sitemap.xml` and `robots.txt` support crawlability and indexing.
   - `manifest.json` adds PWA-style metadata, likely for installability/home-screen branding.
   - These files are part of the delivery/runtime layer, not the interactive application layer.

10. **Hosting and runtime model**
    - The project is designed for **static hosting** such as GitHub Pages.
    - Local preview uses a simple HTTP server, reinforcing that all functionality runs in the browser.
    - The architectural boundary is therefore: **static assets served by a web host, browser executes HTML/CSS/JS, external links/forms handle lead capture**.

Main entry points: [`sitemap.xml`](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/sitemap.xml) (Sitemap), [`assets/css/styles.css`](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/css/styles.css) (Site CSS), [`assets/js/main.js`](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/js/main.js) (Main JS), [`index.html`](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/index.html) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Pages"]
  node_index["Home<br/>html entry<br/>[index.html]"]
  node_about["About<br/>html page<br/>[about.html]"]
  node_classes["Classes<br/>html page<br/>[classes.html]"]
  node_schedule["Schedule<br/>html page<br/>[schedule.html]"]
  node_gallery["Gallery<br/>html page<br/>[gallery.html]"]
  node_blog["Blog<br/>html page<br/>[blog.html]"]
  node_testimonials["Testimonials<br/>html page<br/>[testimonials.html]"]
  node_contact["Contact<br/>html page<br/>[contact.html]"]
  node_privacy["Privacy<br/>html page<br/>[privacy.html]"]
end

subgraph group_assets["Assets"]
  node_styles["Site CSS<br/>stylesheet<br/>[styles.css]"]
  node_mainjs["Main JS<br/>browser script<br/>[main.js]"]
  node_images[("Images<br/>media library")]
end

subgraph group_content["Content Data"]
  node_classes_data["Classes Data<br/>json content<br/>[classes.json]"]
  node_schedule_data["Schedule Data<br/>json content<br/>[schedule.json]"]
  node_testimonials_data["Testimonials Data<br/>json content<br/>[testimonials.json]"]
end

subgraph group_delivery["Delivery"]
  node_sitemap["Sitemap<br/>crawler metadata<br/>[sitemap.xml]"]
  node_robots["Robots<br/>crawler policy<br/>[robots.txt]"]
  node_manifest["Manifest<br/>[manifest.json]"]
end

node_index -->|"shared UI"| node_styles
node_index -->|"behavior"| node_mainjs
node_index -->|"media"| node_images
node_about -->|"shared UI"| node_styles
node_about -->|"behavior"| node_mainjs
node_about -->|"media"| node_images
node_classes -->|"shared UI"| node_styles
node_classes -->|"behavior"| node_mainjs
node_classes -->|"content"| node_classes_data
node_schedule -->|"shared UI"| node_styles
node_schedule -->|"behavior"| node_mainjs
node_schedule -->|"content"| node_schedule_data
node_gallery -->|"shared UI"| node_styles
node_gallery -->|"behavior"| node_mainjs
node_gallery -->|"media"| node_images
node_blog -->|"shared UI"| node_styles
node_blog -->|"behavior"| node_mainjs
node_testimonials -->|"shared UI"| node_styles
node_testimonials -->|"behavior"| node_mainjs
node_testimonials -->|"content"| node_testimonials_data
node_contact -->|"shared UI"| node_styles
node_contact -->|"behavior"| node_mainjs
node_privacy -->|"shared UI"| node_styles
node_privacy -->|"behavior"| node_mainjs
node_index -.->|"crawlability"| node_sitemap
node_about -.->|"crawlability"| node_sitemap
node_classes -.->|"crawlability"| node_sitemap
node_schedule -.->|"crawlability"| node_sitemap
node_gallery -.->|"crawlability"| node_sitemap
node_blog -.->|"crawlability"| node_sitemap
node_testimonials -.->|"crawlability"| node_sitemap
node_contact -.->|"crawlability"| node_sitemap
node_privacy -.->|"crawlability"| node_sitemap
node_robots -.->|"guides"| node_sitemap
node_manifest -.->|"entry"| node_index

click node_index "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/index.html"
click node_about "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/about.html"
click node_classes "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/classes.html"
click node_schedule "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/schedule.html"
click node_gallery "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/gallery.html"
click node_blog "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/blog.html"
click node_testimonials "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/testimonials.html"
click node_contact "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/contact.html"
click node_privacy "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/privacy.html"
click node_styles "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/css/styles.css"
click node_mainjs "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/js/main.js"
click node_images "https://github.com/sushant-nautiyal/dhriti-yogshala/tree/main/assets/images"
click node_classes_data "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/classes.json"
click node_schedule_data "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/schedule.json"
click node_testimonials_data "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/testimonials.json"
click node_sitemap "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/sitemap.xml"
click node_robots "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/robots.txt"
click node_manifest "https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/manifest.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_index,node_about,node_classes,node_schedule,node_gallery,node_blog,node_testimonials,node_contact,node_privacy toneBlue
class node_styles,node_mainjs,node_images toneAmber
class node_classes_data,node_schedule_data,node_testimonials_data toneMint
class node_sitemap,node_robots,node_manifest toneRose
```

## Components

### Pages

Standalone HTML entry points for the studio site.

- [Home](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/index.html): html entry · Primary landing page. · `index.html`
- [About](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/about.html): html page · Studio background and positioning. · `about.html`
- [Classes](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/classes.html): html page · Class offerings and descriptions. · `classes.html`
- [Schedule](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/schedule.html): html page · Timetable and session availability. · `schedule.html`
- [Gallery](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/gallery.html): html page · Visual showcase page. · `gallery.html`
- [Blog](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/blog.html): html page · Lightweight updates or placeholder content. · `blog.html`
- [Testimonials](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/testimonials.html): html page · Student feedback and social proof. · `testimonials.html`
- [Contact](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/contact.html): html page · Booking and inquiry entry point. · `contact.html`
- [Privacy](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/privacy.html): html page · Trust and policy information. · `privacy.html`

### Assets

Shared presentation, behavior, and media resources.

- [Site CSS](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/css/styles.css): stylesheet · Shared visual system for layout, typography, and responsiveness. · `assets/css/styles.css`
- [Main JS](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/assets/js/main.js): browser script · Minimal interactivity: mobile nav, year, and contact/booking links. · `assets/js/main.js`
- [Images](https://github.com/sushant-nautiyal/dhriti-yogshala/tree/main/assets/images): media library · Branding and photography used across pages. · `assets/images`

### Content Data

Structured browser-consumed content files.

- [Classes Data](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/classes.json): json content · Structured class content for browser-side use. · `public/data/classes.json`
- [Schedule Data](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/schedule.json): json content · Structured schedule content for browser-side use. · `public/data/schedule.json`
- [Testimonials Data](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/public/data/testimonials.json): json content · Structured testimonial content for browser-side use. · `public/data/testimonials.json`

### Delivery

Metadata and crawler-facing files for static hosting.

- [Sitemap](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/sitemap.xml): crawler metadata · Index of site URLs for search engines. · `sitemap.xml`
- [Robots](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/robots.txt): crawler policy · Crawler access rules. · `robots.txt`
- [Manifest](https://github.com/sushant-nautiyal/dhriti-yogshala/blob/main/manifest.json): web manifest · PWA-style metadata and branding. · `manifest.json`

## Connections

- Home → Site CSS: shared UI · All pages use the centralized stylesheet.
- Home → Main JS: behavior · Homepage loads shared browser interactivity.
- Home → Images: media · Homepage uses shared photography and branding assets.
- About → Site CSS: shared UI · About page uses the centralized stylesheet.
- About → Main JS: behavior · About page loads shared browser interactivity.
- About → Images: media · About page uses shared photography and branding assets.
- Classes → Site CSS: shared UI · Classes page uses the centralized stylesheet.
- Classes → Main JS: behavior · Classes page loads shared browser interactivity.
- Classes → Classes Data: content · Classes page can draw from structured class data.
- Schedule → Site CSS: shared UI · Schedule page uses the centralized stylesheet.
- Schedule → Main JS: behavior · Schedule page loads shared browser interactivity.
- Schedule → Schedule Data: content · Schedule page can draw from structured schedule data.
- Gallery → Site CSS: shared UI · Gallery page uses the centralized stylesheet.
- Gallery → Main JS: behavior · Gallery page loads shared browser interactivity.
- Gallery → Images: media · Gallery page depends heavily on image assets.
- Blog → Site CSS: shared UI · Blog page uses the centralized stylesheet.
- Blog → Main JS: behavior · Blog page loads shared browser interactivity.
- Testimonials → Site CSS: shared UI · Testimonials page uses the centralized stylesheet.
- Testimonials → Main JS: behavior · Testimonials page loads shared browser interactivity.
- Testimonials → Testimonials Data: content · Testimonials page can draw from structured testimonial data.
- Contact → Site CSS: shared UI · Contact page uses the centralized stylesheet.
- Contact → Main JS: behavior · Contact page loads shared browser interactivity.
- Privacy → Site CSS: shared UI · Privacy page uses the centralized stylesheet.
- Privacy → Main JS: behavior · Privacy page loads shared browser interactivity.
- Home → Sitemap: crawlability · Homepage is part of the crawlable site map.
- About → Sitemap: crawlability · About page is part of the crawlable site map.
- Classes → Sitemap: crawlability · Classes page is part of the crawlable site map.
- Schedule → Sitemap: crawlability · Schedule page is part of the crawlable site map.
- Gallery → Sitemap: crawlability · Gallery page is part of the crawlable site map.
- Blog → Sitemap: crawlability · Blog page is part of the crawlable site map.
- Testimonials → Sitemap: crawlability · Testimonials page is part of the crawlable site map.
- Contact → Sitemap: crawlability · Contact page is part of the crawlable site map.
- Privacy → Sitemap: crawlability · Privacy page is part of the crawlable site map.
- Robots → Sitemap: guides · Crawler policy complements the site map.
- Manifest → Home: entry · Manifest supports the main site entry and branding.
