How stevensblueprint/inreach-website works
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: RenderBlocks.tsx Block dispatcher · TinaMarkdownComponents.tsx Markdown components · config.ts Tina schema · components.client.tsx Live page data
Components 28
Content and CMS
- Tina schema
tina/config.ts - Page documents
content/pages - Blog posts
content/posts - Tina API route
src/pages/api/tina/[...routes].ts
Page Routing
- Page route
src/app/[filename]/page.tsx - Live page data
src/app/[filename]/components.client.tsx - Blog route
src/app/tinademo/blog/[filename]/page.tsx - Blog renderer
src/app/tinademo/blog/[filename]/components.client.tsx
Page Blocks
- Block dispatcher
src/components/RenderBlocks.tsx - Header and footer
src/components/blocks/layout/Header.tsx - Hero and carousel
src/components/blocks/Carousel.tsx - Action content
src/components/blocks/TakeAction.tsx - News and supporters
src/components/blocks/NewsSupporters.tsx - Team gallery
src/components/blocks/TeamGallery.tsx - Photo gallery
src/components/blocks/PhotoGallery.tsx - Accordion
src/components/blocks/AccordionBlock.tsx - Image text button
src/components/blocks/ImageTextButton.tsx - Looking for
src/components/blocks/LookingFor.tsx - Text button
src/components/blocks/TextButton.tsx - Title image grid
src/components/blocks/layout/TitleImageGrid.tsx - Two column
src/components/blocks/layout/TwoColumn.tsx - Rich text
src/components/blocks/layout/RichText.tsx
Rendering Support
- Markdown components
src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx - Color selector
src/components/fields/ColorSelector/ColorSelector.tsx - Color styles
src/components/fields/ColorSelector/colors.tsx - Gallery lightbox
src/components/photoGallery/LightBoxWrapper.tsx - Class utilities
src/lib/utils.ts
Other components
- Content editor
Connections 28
- Content editor → Tina schema: edits content
README.md - Tina schema → Page documents: models pages
tina/config.ts - Tina schema → Blog posts: models posts
tina/config.ts - Tina schema → Tina API route: configures endpoint
tina/config.ts - Page route → Live page data: renders client
src/app/[filename]/page.tsx - Live page data → Block dispatcher: passes page data
src/app/[filename]/components.client.tsx - Blog route → Blog renderer: renders client
src/app/tinademo/blog/[filename]/page.tsx - Block dispatcher → Header and footer: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Hero and carousel: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Action content: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → News and supporters: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Team gallery: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Photo gallery: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Accordion: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Image text button: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Looking for: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Text button: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Title image grid: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Two column: dispatches blocks
src/components/RenderBlocks.tsx - Block dispatcher → Rich text: dispatches blocks
src/components/RenderBlocks.tsx - Photo gallery → Gallery lightbox: uses lightbox
src/components/blocks/PhotoGallery.tsx - Rich text → Markdown components: renders rich text
src/components/blocks/layout/RichText.tsx - Accordion → Markdown components: renders rich text
src/components/blocks/AccordionBlock.tsx - Image text button → Markdown components: uses components
src/components/blocks/ImageTextButton.tsx - Markdown components → Color styles: uses color styles
src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx - Markdown components → Color selector: uses selector
src/components/fields/TinaMarkdownComponents/TinaMarkdownComponents.tsx - Title image grid → Color styles: uses color styles
src/components/blocks/layout/TitleImageGrid.tsx - Color selector → Class utilities: merges classes
src/components/fields/ColorSelector/ColorSelector.tsx