How sandobaitt/ccr-landing works
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: page.tsx Home route · layout.tsx Shared site layout · gospel.ts Gospel fetcher · client.ts Sanity client
Components 23
Site experience
- Home route
app/(site)/page.tsx - Retreat section
components/NextRetreat.tsx - Landing hero
components/Hero.tsx - Pillars
components/Pillars.tsx - Communities
components/Communities.tsx - Saints
components/SaintsGrid.tsx - News
components/NewsGrid.tsx - Donations
components/Donations.tsx - Daily gospel
components/DailyGospel.tsx
Content delivery
- Gospel fetcher
lib/gospel.ts - Fallback content
data/content.ts - Content queries
sanity/lib/queries.ts - Sanity client
sanity/lib/client.ts
CMS management
- Studio admin route
app/(studio)/admin/[[...tool]]/page.tsx - Studio configuration
sanity.config.ts - Content schemas
sanity/schemaTypes/index.ts
Shared UI
- Shared site layout
app/(site)/layout.tsx - Schedule ticker
components/ScheduleTicker.tsx - Navigation
components/Navbar.tsx - Footer
components/Footer.tsx
Other components
- Site visitor
- Evangelizo feed
- Sanity CMS
Connections 25
- Site visitor → Home route: opens
README.md - Home route → Sanity client: fetches content
app/(site)/page.tsx - Home route → Content queries: uses queries
app/(site)/page.tsx - Home route → Fallback content: uses fallbacks
app/(site)/page.tsx - Home route → Gospel fetcher: loads gospel
app/(site)/page.tsx - Sanity client → Sanity CMS: queries
- Sanity client → Sanity CMS: configures client
sanity/lib/client.ts - Gospel fetcher → Evangelizo feed: fetches readings
lib/gospel.ts - Gospel fetcher → Fallback content: uses verses
lib/gospel.ts - Home route → Landing hero: renders
app/(site)/page.tsx - Home route → Retreat section: renders
app/(site)/page.tsx - Home route → Pillars: renders
app/(site)/page.tsx - Home route → Communities: renders
app/(site)/page.tsx - Home route → Saints: renders
app/(site)/page.tsx - Home route → News: renders
app/(site)/page.tsx - Home route → Daily gospel: renders
app/(site)/page.tsx - Home route → Donations: renders
app/(site)/page.tsx - Daily gospel → Gospel fetcher: displays
components/DailyGospel.tsx - Shared site layout → Sanity client: fetches layout data
app/(site)/layout.tsx - Shared site layout → Content queries: uses queries
app/(site)/layout.tsx - Shared site layout → Schedule ticker: renders
app/(site)/layout.tsx - Shared site layout → Navigation: renders
app/(site)/layout.tsx - Shared site layout → Footer: renders
app/(site)/layout.tsx - Studio admin route → Studio configuration: loads studio
app/(studio)/admin/[[...tool]]/page.tsx - Studio configuration → Content schemas: registers schemas
sanity.config.ts