# meghanasingareddy/c-c architecture

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

- Interactive diagram: https://gitdiagram.com/meghanasingareddy/c-c
- Repository: https://github.com/meghanasingareddy/c-c

## Overview

Chai and Chapter is a single-page book-cafe website. Visitors browse cafe offerings and community content, then interact with menu filters, an in-store cart, nook reservations, account prompts, event RSVPs, and a newsletter form. The graph separates page content from the JavaScript behaviors that make key interactions work. The README documents the page’s broader sections; the partial script excerpt confirms menu filtering, cart handling, and form/event handlers, but does not expose every implementation detail.

Main entry points: [`index.html`](https://github.com/meghanasingareddy/c-c/blob/main/index.html) (Single-page site), [`script.js`](https://github.com/meghanasingareddy/c-c/blob/main/script.js) (Category filters), [`style.css`](https://github.com/meghanasingareddy/c-c/blob/main/style.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Cafe website"]
  node_page["Single-page site<br/>[index.html]"]
  node_welcome["Welcome and story<br/>[index.html]"]
  node_nooks["Reading nooks<br/>[index.html]"]
  node_chef["Chef spotlight<br/>[index.html]"]
  node_reviews["Customer reviews<br/>[index.html]"]
  node_styles["Responsive styling<br/>[style.css]"]
end

subgraph group_commerce["Menu and ordering"]
  node_menu["Categorized menu<br/>[index.html]"]
  node_filter["Category filters<br/>[script.js]"]
  node_cart["In-store cart<br/>[script.js]"]
end

subgraph group_community["Cafe community"]
  node_events["Community events<br/>[index.html]"]
  node_event_behavior["Event RSVP prompts<br/>[script.js]"]
  node_newsletter["Chapter Club signup<br/>[index.html]"]
  node_newsletter_behavior["Newsletter handling<br/>[script.js]"]
end

subgraph group_interaction["Interactive behaviors"]
  node_reservation["Nook reservation<br/>[index.html]"]
  node_reservation_behavior["Reservation handling<br/>[script.js]"]
  node_account["Login and signup<br/>[index.html]"]
  node_account_behavior["Account prompts<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_page
node_visitor -->|"filters menu"| node_filter
node_filter -->|"filters items"| node_menu
node_visitor -->|"adds items"| node_cart
node_cart -->|"shows order total"| node_visitor
node_visitor -->|"submits reservation"| node_reservation_behavior
node_reservation_behavior -->|"confirms nook"| node_reservation
node_visitor -->|"opens account"| node_account_behavior
node_account_behavior -->|"shows modal"| node_account
node_visitor -->|"requests RSVP"| node_event_behavior
node_event_behavior -->|"prompts RSVP"| node_events
node_visitor -->|"submits email"| node_newsletter_behavior
node_newsletter_behavior -->|"handles signup"| node_newsletter
node_page -.->|"uses styling"| node_styles

click node_page "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_welcome "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_nooks "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_chef "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_reviews "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_menu "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_filter "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_cart "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_reservation "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_reservation_behavior "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_account "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_account_behavior "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_events "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_event_behavior "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_newsletter "https://github.com/meghanasingareddy/c-c/blob/main/index.html"
click node_newsletter_behavior "https://github.com/meghanasingareddy/c-c/blob/main/script.js"
click node_styles "https://github.com/meghanasingareddy/c-c/blob/main/style.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_page,node_welcome,node_nooks,node_chef,node_reviews,node_styles toneBlue
class node_menu,node_filter,node_cart toneAmber
class node_events,node_event_behavior,node_newsletter,node_newsletter_behavior toneMint
class node_reservation,node_reservation_behavior,node_account,node_account_behavior toneRose
class node_visitor toneIndigo
```

## Components

### Cafe website

- [Single-page site](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Welcome and story](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Reading nooks](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Chef spotlight](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Customer reviews](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Responsive styling](https://github.com/meghanasingareddy/c-c/blob/main/style.css): `style.css`

### Menu and ordering

- [Categorized menu](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Category filters](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`
- [In-store cart](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`

### Cafe community

- [Community events](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Event RSVP prompts](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`
- [Chapter Club signup](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Newsletter handling](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`

### Interactive behaviors

- [Nook reservation](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Reservation handling](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`
- [Login and signup](https://github.com/meghanasingareddy/c-c/blob/main/index.html): `index.html`
- [Account prompts](https://github.com/meghanasingareddy/c-c/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Single-page site: browses (evidence: `README.md`)
- Visitor → Category filters: filters menu (evidence: `script.js`)
- Category filters → Categorized menu: filters items (evidence: `script.js`)
- Visitor → In-store cart: adds items (evidence: `script.js`)
- In-store cart → Visitor: shows order total (evidence: `script.js`)
- Visitor → Reservation handling: submits reservation (evidence: `script.js`)
- Reservation handling → Nook reservation: confirms nook (evidence: `script.js`)
- Visitor → Account prompts: opens account (evidence: `script.js`)
- Account prompts → Login and signup: shows modal (evidence: `script.js`)
- Visitor → Event RSVP prompts: requests RSVP (evidence: `README.md`)
- Event RSVP prompts → Community events: prompts RSVP (evidence: `script.js`)
- Visitor → Newsletter handling: submits email (evidence: `README.md`)
- Newsletter handling → Chapter Club signup: handles signup (evidence: `script.js`)
- Single-page site → Responsive styling: uses styling
