# stevensblueprint/inreach-website architecture

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

- Interactive diagram: https://gitdiagram.com/stevensblueprint/inreach-website
- Repository: https://github.com/stevensblueprint/inreach-website

## Overview

InReach’s Next.js website presents public, content-managed pages, with TinaCMS defining editable page sections and React components rendering them. The main workflow is an editor-authored page document becoming a routed page, then a sequence of typed blocks. The README and source index establish this wiring; several routes, Tina backend details, and block implementations were not excerpted, so those internals and their relationships are not expanded beyond supported evidence.

Main entry points: [`src/components/RenderBlocks.tsx`](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/RenderBlocks.tsx) (Block dispatcher), [`src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx`](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx) (Markdown components), [`tina/config.ts`](https://github.com/stevensblueprint/inreach-website/blob/main/tina/config.ts) (Tina schema), [`src/app/[filename]/components.client.tsx`](https://github.com/stevensblueprint/inreach-website/blob/main/src/app/%5Bfilename%5D/components.client.tsx) (Live page data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content and CMS"]
  node_tina["Tina schema<br/>[config.ts]"]
  node_page_docs["Page documents"]
  node_post_docs["Blog posts"]
  node_tina_api["Tina API route<br/>[&#91;...routes&#93;.ts]"]
end

subgraph group_routing["Page Routing"]
  node_page_route["Page route<br/>[page.tsx]"]
  node_page_client["Live page data"]
  node_blog_route["Blog route<br/>[page.tsx]"]
  node_blog_client["Blog renderer"]
end

subgraph group_blocks["Page Blocks"]
  node_block_dispatch["Block dispatcher<br/>[RenderBlocks.tsx]"]
  node_site_layout["Header and footer<br/>[Header.tsx]"]
  node_hero_carousel["Hero and carousel<br/>[Carousel.tsx]"]
  node_action_blocks["Action content<br/>[TakeAction.tsx]"]
  node_supporters_news["News and supporters<br/>[NewsSupporters.tsx]"]
  node_people_gallery["Team gallery<br/>[TeamGallery.tsx]"]
  node_photo_gallery["Photo gallery<br/>[PhotoGallery.tsx]"]
  node_accordion["Accordion<br/>[AccordionBlock.tsx]"]
  node_image_text["Image text button"]
  node_looking_for["Looking for<br/>[LookingFor.tsx]"]
  node_text_button["Text button<br/>[TextButton.tsx]"]
  node_title_grid["Title image grid<br/>[TitleImageGrid.tsx]"]
  node_two_column["Two column<br/>[TwoColumn.tsx]"]
  node_rich_text["Rich text<br/>[RichText.tsx]"]
end

subgraph group_rendering["Rendering Support"]
  node_markdown["Markdown components"]
  node_color_selector["Color selector<br/>[ColorSelector.tsx]"]
  node_color_styles["Color styles<br/>[colors.tsx]"]
  node_lightbox["Gallery lightbox"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_editor(("Content editor"))

node_editor -.->|"edits content"| node_tina
node_tina -->|"models pages"| node_page_docs
node_tina -->|"models posts"| node_post_docs
node_tina -->|"configures endpoint"| node_tina_api
node_page_route -->|"renders client"| node_page_client
node_page_client -->|"passes page data"| node_block_dispatch
node_blog_route -->|"renders client"| node_blog_client
node_block_dispatch -->|"dispatches blocks"| node_site_layout
node_block_dispatch -->|"dispatches blocks"| node_hero_carousel
node_block_dispatch -->|"dispatches blocks"| node_action_blocks
node_block_dispatch -->|"dispatches blocks"| node_supporters_news
node_block_dispatch -->|"dispatches blocks"| node_people_gallery
node_block_dispatch -->|"dispatches blocks"| node_photo_gallery
node_block_dispatch -->|"dispatches blocks"| node_accordion
node_block_dispatch -->|"dispatches blocks"| node_image_text
node_block_dispatch -->|"dispatches blocks"| node_looking_for
node_block_dispatch -->|"dispatches blocks"| node_text_button
node_block_dispatch -->|"dispatches blocks"| node_title_grid
node_block_dispatch -->|"dispatches blocks"| node_two_column
node_block_dispatch -->|"dispatches blocks"| node_rich_text
node_photo_gallery -->|"uses lightbox"| node_lightbox
node_rich_text -.->|"renders rich text"| node_markdown
node_accordion -->|"renders rich text"| node_markdown
node_image_text -->|"uses components"| node_markdown
node_markdown -->|"uses color styles"| node_color_styles
node_markdown -->|"uses selector"| node_color_selector
node_title_grid -->|"uses color styles"| node_color_styles
node_color_selector -->|"merges classes"| node_utils

click node_tina "https://github.com/stevensblueprint/inreach-website/blob/main/tina/config.ts"
click node_page_docs "https://github.com/stevensblueprint/inreach-website/tree/main/content/pages"
click node_post_docs "https://github.com/stevensblueprint/inreach-website/tree/main/content/posts"
click node_tina_api "https://github.com/stevensblueprint/inreach-website/blob/main/src/pages/api/tina/%5B...routes%5D.ts"
click node_page_route "https://github.com/stevensblueprint/inreach-website/blob/main/src/app/%5Bfilename%5D/page.tsx"
click node_page_client "https://github.com/stevensblueprint/inreach-website/blob/main/src/app/%5Bfilename%5D/components.client.tsx"
click node_blog_route "https://github.com/stevensblueprint/inreach-website/blob/main/src/app/tinademo/blog/%5Bfilename%5D/page.tsx"
click node_blog_client "https://github.com/stevensblueprint/inreach-website/blob/main/src/app/tinademo/blog/%5Bfilename%5D/components.client.tsx"
click node_block_dispatch "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/RenderBlocks.tsx"
click node_site_layout "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/Header.tsx"
click node_hero_carousel "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/Carousel.tsx"
click node_action_blocks "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TakeAction.tsx"
click node_supporters_news "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/NewsSupporters.tsx"
click node_people_gallery "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TeamGallery.tsx"
click node_photo_gallery "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/PhotoGallery.tsx"
click node_accordion "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/AccordionBlock.tsx"
click node_image_text "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/ImageTextButton.tsx"
click node_looking_for "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/LookingFor.tsx"
click node_text_button "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TextButton.tsx"
click node_title_grid "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/TitleImageGrid.tsx"
click node_two_column "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/TwoColumn.tsx"
click node_rich_text "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/RichText.tsx"
click node_markdown "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx"
click node_color_selector "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/ColorSelector/ColorSelector.tsx"
click node_color_styles "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/ColorSelector/colors.tsx"
click node_lightbox "https://github.com/stevensblueprint/inreach-website/blob/main/src/components/photoGallery/LightBoxWrapper.tsx"
click node_utils "https://github.com/stevensblueprint/inreach-website/blob/main/src/lib/utils.ts"

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_tina,node_page_docs,node_post_docs,node_tina_api toneBlue
class node_page_route,node_page_client,node_blog_route,node_blog_client toneAmber
class node_block_dispatch,node_site_layout,node_hero_carousel,node_action_blocks,node_supporters_news,node_people_gallery,node_photo_gallery,node_accordion,node_image_text,node_looking_for,node_text_button,node_title_grid,node_two_column,node_rich_text toneMint
class node_markdown,node_color_selector,node_color_styles,node_lightbox,node_utils toneRose
class node_editor toneIndigo
```

## Components

### Content and CMS

- [Tina schema](https://github.com/stevensblueprint/inreach-website/blob/main/tina/config.ts): `tina/config.ts`
- [Page documents](https://github.com/stevensblueprint/inreach-website/tree/main/content/pages): `content/pages`
- [Blog posts](https://github.com/stevensblueprint/inreach-website/tree/main/content/posts): `content/posts`
- [Tina API route](https://github.com/stevensblueprint/inreach-website/blob/main/src/pages/api/tina/%5B...routes%5D.ts): `src/pages/api/tina/[...routes].ts`

### Page Routing

- [Page route](https://github.com/stevensblueprint/inreach-website/blob/main/src/app/%5Bfilename%5D/page.tsx): `src/app/[filename]/page.tsx`
- [Live page data](https://github.com/stevensblueprint/inreach-website/blob/main/src/app/%5Bfilename%5D/components.client.tsx): `src/app/[filename]/components.client.tsx`
- [Blog route](https://github.com/stevensblueprint/inreach-website/blob/main/src/app/tinademo/blog/%5Bfilename%5D/page.tsx): `src/app/tinademo/blog/[filename]/page.tsx`
- [Blog renderer](https://github.com/stevensblueprint/inreach-website/blob/main/src/app/tinademo/blog/%5Bfilename%5D/components.client.tsx): `src/app/tinademo/blog/[filename]/components.client.tsx`

### Page Blocks

- [Block dispatcher](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/RenderBlocks.tsx): `src/components/RenderBlocks.tsx`
- [Header and footer](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/Header.tsx): `src/components/blocks/layout/Header.tsx`
- [Hero and carousel](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/Carousel.tsx): `src/components/blocks/Carousel.tsx`
- [Action content](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TakeAction.tsx): `src/components/blocks/TakeAction.tsx`
- [News and supporters](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/NewsSupporters.tsx): `src/components/blocks/NewsSupporters.tsx`
- [Team gallery](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TeamGallery.tsx): `src/components/blocks/TeamGallery.tsx`
- [Photo gallery](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/PhotoGallery.tsx): `src/components/blocks/PhotoGallery.tsx`
- [Accordion](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/AccordionBlock.tsx): `src/components/blocks/AccordionBlock.tsx`
- [Image text button](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/ImageTextButton.tsx): `src/components/blocks/ImageTextButton.tsx`
- [Looking for](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/LookingFor.tsx): `src/components/blocks/LookingFor.tsx`
- [Text button](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/TextButton.tsx): `src/components/blocks/TextButton.tsx`
- [Title image grid](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/TitleImageGrid.tsx): `src/components/blocks/layout/TitleImageGrid.tsx`
- [Two column](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/TwoColumn.tsx): `src/components/blocks/layout/TwoColumn.tsx`
- [Rich text](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/blocks/layout/RichText.tsx): `src/components/blocks/layout/RichText.tsx`

### Rendering Support

- [Markdown components](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx): `src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx`
- [Color selector](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/ColorSelector/ColorSelector.tsx): `src/components/fields/ColorSelector/ColorSelector.tsx`
- [Color styles](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/fields/ColorSelector/colors.tsx): `src/components/fields/ColorSelector/colors.tsx`
- [Gallery lightbox](https://github.com/stevensblueprint/inreach-website/blob/main/src/components/photoGallery/LightBoxWrapper.tsx): `src/components/photoGallery/LightBoxWrapper.tsx`
- [Class utilities](https://github.com/stevensblueprint/inreach-website/blob/main/src/lib/utils.ts): `src/lib/utils.ts`

### Other components

- **Content editor**

## Connections

- Content editor → Tina schema: edits content (evidence: `README.md`)
- Tina schema → Page documents: models pages (evidence: `tina/config.ts`)
- Tina schema → Blog posts: models posts (evidence: `tina/config.ts`)
- Tina schema → Tina API route: configures endpoint (evidence: `tina/config.ts`)
- Page route → Live page data: renders client (evidence: `src/app/[filename]/page.tsx`)
- Live page data → Block dispatcher: passes page data (evidence: `src/app/[filename]/components.client.tsx`)
- Blog route → Blog renderer: renders client (evidence: `src/app/tinademo/blog/[filename]/page.tsx`)
- Block dispatcher → Header and footer: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Hero and carousel: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Action content: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → News and supporters: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Team gallery: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Photo gallery: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Accordion: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Image text button: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Looking for: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Text button: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Title image grid: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Two column: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Block dispatcher → Rich text: dispatches blocks (evidence: `src/components/RenderBlocks.tsx`)
- Photo gallery → Gallery lightbox: uses lightbox (evidence: `src/components/blocks/PhotoGallery.tsx`)
- Rich text → Markdown components: renders rich text (evidence: `src/components/blocks/layout/RichText.tsx`)
- Accordion → Markdown components: renders rich text (evidence: `src/components/blocks/AccordionBlock.tsx`)
- Image text button → Markdown components: uses components (evidence: `src/components/blocks/ImageTextButton.tsx`)
- Markdown components → Color styles: uses color styles (evidence: `src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx`)
- Markdown components → Color selector: uses selector (evidence: `src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx`)
- Title image grid → Color styles: uses color styles (evidence: `src/components/blocks/layout/TitleImageGrid.tsx`)
- Color selector → Class utilities: merges classes (evidence: `src/components/fields/ColorSelector/ColorSelector.tsx`)
