# sandobaitt/ccr-landing architecture

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

- Interactive diagram: https://gitdiagram.com/sandobaitt/ccr-landing
- Repository: https://github.com/sandobaitt/ccr-landing

## Overview

CCR is a youth-community landing page backed by Sanity CMS, with static fallback content and a daily-gospel feed. The main visitor workflow is the site route fetching content, selecting CMS results or fallbacks, then rendering the retreat, community, saints, news, gospel, and donation sections; the shared layout supplies navigation and schedule/social content. The graph follows documented imports and calls. Some capabilities are README-described but their runtime wiring is unsampled, so those links are omitted rather than inferred.

Main entry points: [`app/(site)/page.tsx`](https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/page.tsx) (Home route), [`app/(site)/layout.tsx`](https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/layout.tsx) (Shared site layout), [`lib/gospel.ts`](https://github.com/sandobaitt/ccr-landing/blob/main/lib/gospel.ts) (Gospel fetcher), [`sanity/lib/client.ts`](https://github.com/sandobaitt/ccr-landing/blob/main/sanity/lib/client.ts) (Sanity client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site experience"]
  node_home["Home route<br/>[page.tsx]"]
  node_retreat["Retreat section<br/>[NextRetreat.tsx]"]
  node_hero["Landing hero<br/>[Hero.tsx]"]
  node_pillars["Pillars<br/>[Pillars.tsx]"]
  node_communities["Communities<br/>[Communities.tsx]"]
  node_saints["Saints<br/>[SaintsGrid.tsx]"]
  node_news["News<br/>[NewsGrid.tsx]"]
  node_donations["Donations<br/>[Donations.tsx]"]
  node_gospel_view["Daily gospel<br/>[DailyGospel.tsx]"]
end

subgraph group_content["Content delivery"]
  node_gospel["Gospel fetcher<br/>[gospel.ts]"]
  node_fallback["Fallback content<br/>[content.ts]"]
  node_sanity_queries["Content queries<br/>[queries.ts]"]
  node_sanity_client["Sanity client<br/>[client.ts]"]
end

subgraph group_cms["CMS management"]
  node_admin["Studio admin route<br/>[page.tsx]"]
  node_studio_config["Studio configuration<br/>[sanity.config.ts]"]
  node_schemas["Content schemas<br/>[index.ts]"]
end

subgraph group_shared["Shared UI"]
  node_site_layout["Shared site layout<br/>[layout.tsx]"]
  node_ticker["Schedule ticker<br/>[ScheduleTicker.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

node_visitor(("Site visitor"))
node_evangelizo["Evangelizo feed"]
node_sanity_service[("Sanity CMS")]

node_visitor -->|"opens"| node_home
node_home -->|"fetches content"| node_sanity_client
node_home -->|"uses queries"| node_sanity_queries
node_home -->|"uses fallbacks"| node_fallback
node_home -->|"loads gospel"| node_gospel
node_sanity_client -.->|"queries"| node_sanity_service
node_sanity_client -->|"configures client"| node_sanity_service
node_gospel -->|"fetches readings"| node_evangelizo
node_gospel -->|"uses verses"| node_fallback
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_retreat
node_home -->|"renders"| node_pillars
node_home -->|"renders"| node_communities
node_home -->|"renders"| node_saints
node_home -->|"renders"| node_news
node_home -->|"renders"| node_gospel_view
node_home -->|"renders"| node_donations
node_gospel_view -->|"displays"| node_gospel
node_site_layout -->|"fetches layout data"| node_sanity_client
node_site_layout -->|"uses queries"| node_sanity_queries
node_site_layout -->|"renders"| node_ticker
node_site_layout -->|"renders"| node_navbar
node_site_layout -->|"renders"| node_footer
node_admin -->|"loads studio"| node_studio_config
node_studio_config -->|"registers schemas"| node_schemas

click node_home "https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/page.tsx"
click node_retreat "https://github.com/sandobaitt/ccr-landing/blob/main/components/NextRetreat.tsx"
click node_hero "https://github.com/sandobaitt/ccr-landing/blob/main/components/Hero.tsx"
click node_pillars "https://github.com/sandobaitt/ccr-landing/blob/main/components/Pillars.tsx"
click node_communities "https://github.com/sandobaitt/ccr-landing/blob/main/components/Communities.tsx"
click node_saints "https://github.com/sandobaitt/ccr-landing/blob/main/components/SaintsGrid.tsx"
click node_news "https://github.com/sandobaitt/ccr-landing/blob/main/components/NewsGrid.tsx"
click node_donations "https://github.com/sandobaitt/ccr-landing/blob/main/components/Donations.tsx"
click node_gospel_view "https://github.com/sandobaitt/ccr-landing/blob/main/components/DailyGospel.tsx"
click node_gospel "https://github.com/sandobaitt/ccr-landing/blob/main/lib/gospel.ts"
click node_fallback "https://github.com/sandobaitt/ccr-landing/blob/main/data/content.ts"
click node_sanity_queries "https://github.com/sandobaitt/ccr-landing/blob/main/sanity/lib/queries.ts"
click node_sanity_client "https://github.com/sandobaitt/ccr-landing/blob/main/sanity/lib/client.ts"
click node_site_layout "https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/layout.tsx"
click node_ticker "https://github.com/sandobaitt/ccr-landing/blob/main/components/ScheduleTicker.tsx"
click node_navbar "https://github.com/sandobaitt/ccr-landing/blob/main/components/Navbar.tsx"
click node_footer "https://github.com/sandobaitt/ccr-landing/blob/main/components/Footer.tsx"
click node_admin "https://github.com/sandobaitt/ccr-landing/blob/main/app/(studio)/admin/%5B%5B...tool%5D%5D/page.tsx"
click node_studio_config "https://github.com/sandobaitt/ccr-landing/blob/main/sanity.config.ts"
click node_schemas "https://github.com/sandobaitt/ccr-landing/blob/main/sanity/schemaTypes/index.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_home,node_retreat,node_hero,node_pillars,node_communities,node_saints,node_news,node_donations,node_gospel_view toneBlue
class node_gospel,node_fallback,node_sanity_queries,node_sanity_client,node_sanity_service toneAmber
class node_admin,node_studio_config,node_schemas toneMint
class node_site_layout,node_ticker,node_navbar,node_footer toneRose
class node_visitor,node_evangelizo toneIndigo
```

## Components

### Site experience

- [Home route](https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/page.tsx): `app/(site)/page.tsx`
- [Retreat section](https://github.com/sandobaitt/ccr-landing/blob/main/components/NextRetreat.tsx): `components/NextRetreat.tsx`
- [Landing hero](https://github.com/sandobaitt/ccr-landing/blob/main/components/Hero.tsx): `components/Hero.tsx`
- [Pillars](https://github.com/sandobaitt/ccr-landing/blob/main/components/Pillars.tsx): `components/Pillars.tsx`
- [Communities](https://github.com/sandobaitt/ccr-landing/blob/main/components/Communities.tsx): `components/Communities.tsx`
- [Saints](https://github.com/sandobaitt/ccr-landing/blob/main/components/SaintsGrid.tsx): `components/SaintsGrid.tsx`
- [News](https://github.com/sandobaitt/ccr-landing/blob/main/components/NewsGrid.tsx): `components/NewsGrid.tsx`
- [Donations](https://github.com/sandobaitt/ccr-landing/blob/main/components/Donations.tsx): `components/Donations.tsx`
- [Daily gospel](https://github.com/sandobaitt/ccr-landing/blob/main/components/DailyGospel.tsx): `components/DailyGospel.tsx`

### Content delivery

- [Gospel fetcher](https://github.com/sandobaitt/ccr-landing/blob/main/lib/gospel.ts): `lib/gospel.ts`
- [Fallback content](https://github.com/sandobaitt/ccr-landing/blob/main/data/content.ts): `data/content.ts`
- [Content queries](https://github.com/sandobaitt/ccr-landing/blob/main/sanity/lib/queries.ts): `sanity/lib/queries.ts`
- [Sanity client](https://github.com/sandobaitt/ccr-landing/blob/main/sanity/lib/client.ts): `sanity/lib/client.ts`

### CMS management

- [Studio admin route](https://github.com/sandobaitt/ccr-landing/blob/main/app/(studio)/admin/%5B%5B...tool%5D%5D/page.tsx): `app/(studio)/admin/[[...tool]]/page.tsx`
- [Studio configuration](https://github.com/sandobaitt/ccr-landing/blob/main/sanity.config.ts): `sanity.config.ts`
- [Content schemas](https://github.com/sandobaitt/ccr-landing/blob/main/sanity/schemaTypes/index.ts): `sanity/schemaTypes/index.ts`

### Shared UI

- [Shared site layout](https://github.com/sandobaitt/ccr-landing/blob/main/app/(site)/layout.tsx): `app/(site)/layout.tsx`
- [Schedule ticker](https://github.com/sandobaitt/ccr-landing/blob/main/components/ScheduleTicker.tsx): `components/ScheduleTicker.tsx`
- [Navigation](https://github.com/sandobaitt/ccr-landing/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Footer](https://github.com/sandobaitt/ccr-landing/blob/main/components/Footer.tsx): `components/Footer.tsx`

### Other components

- **Site visitor**
- **Evangelizo feed**
- **Sanity CMS**

## Connections

- Site visitor → Home route: opens (evidence: `README.md`)
- Home route → Sanity client: fetches content (evidence: `app/(site)/page.tsx`)
- Home route → Content queries: uses queries (evidence: `app/(site)/page.tsx`)
- Home route → Fallback content: uses fallbacks (evidence: `app/(site)/page.tsx`)
- Home route → Gospel fetcher: loads gospel (evidence: `app/(site)/page.tsx`)
- Sanity client → Sanity CMS: queries
- Sanity client → Sanity CMS: configures client (evidence: `sanity/lib/client.ts`)
- Gospel fetcher → Evangelizo feed: fetches readings (evidence: `lib/gospel.ts`)
- Gospel fetcher → Fallback content: uses verses (evidence: `lib/gospel.ts`)
- Home route → Landing hero: renders (evidence: `app/(site)/page.tsx`)
- Home route → Retreat section: renders (evidence: `app/(site)/page.tsx`)
- Home route → Pillars: renders (evidence: `app/(site)/page.tsx`)
- Home route → Communities: renders (evidence: `app/(site)/page.tsx`)
- Home route → Saints: renders (evidence: `app/(site)/page.tsx`)
- Home route → News: renders (evidence: `app/(site)/page.tsx`)
- Home route → Daily gospel: renders (evidence: `app/(site)/page.tsx`)
- Home route → Donations: renders (evidence: `app/(site)/page.tsx`)
- Daily gospel → Gospel fetcher: displays (evidence: `components/DailyGospel.tsx`)
- Shared site layout → Sanity client: fetches layout data (evidence: `app/(site)/layout.tsx`)
- Shared site layout → Content queries: uses queries (evidence: `app/(site)/layout.tsx`)
- Shared site layout → Schedule ticker: renders (evidence: `app/(site)/layout.tsx`)
- Shared site layout → Navigation: renders (evidence: `app/(site)/layout.tsx`)
- Shared site layout → Footer: renders (evidence: `app/(site)/layout.tsx`)
- Studio admin route → Studio configuration: loads studio (evidence: `app/(studio)/admin/[[...tool]]/page.tsx`)
- Studio configuration → Content schemas: registers schemas (evidence: `sanity.config.ts`)
