How ux-finesse/noah-legal-website works
NOAH LEGAL is a public law-firm website with an embedded Sanity editorial CMS. Visitors browse firm expertise, lawyers, insights and open roles, and can submit contact or newsletter forms. Content is fetched through a shared Sanity-or-fallback layer; editors manage the content models in Studio. The graph includes documented content types and careers, firm and legal pages from the README, but sampled excerpts do not show every page implementation or the full Studio wiring.
Main entry points: content.ts Content queries · insights Insights pages · validation.ts Form validation · page.tsx Homepage
Components 23
Public website
- Homepage
app/(site)/page.tsx - Expertise pages
app/(site)/expertise - People pages
app/(site)/people - Insights pages
app/(site)/insights - Firm and legal
app/(site)/firm/page.tsx - Careers
app/(site)/careers/page.tsx - Site navigation
components/Header.tsx - Insights browser
components/InsightsBrowser.tsx - Job listings
components/JobsList.tsx
Content platform
- Sanity Studio
app/studio/[[...tool]]/page.tsx - CMS schemas
sanity/schemaTypes - Sanity CMS
Visitor engagement
- Contact form
components/forms.tsx - Subscribe form
components/forms.tsx - Contact endpoint
app/api/contact/route.ts - Subscribe endpoint
app/api/subscribe/route.ts - Resend
Shared runtime
- Content queries
lib/content.ts - Placeholder content
lib/fallback.ts - Form validation
lib/validation.ts - Email delivery
lib/mail.ts - Rich text renderer
components/PortableBody.tsx
Other components
- Site visitor
Connections 31
- Site visitor → Homepage: opens site
README.md - Site visitor → Expertise pages: browses
README.md - Site visitor → People pages: browses
README.md - Site visitor → Insights pages: browses
README.md - Site visitor → Firm and legal: browses
README.md - Site visitor → Careers: browses
README.md - Homepage → Content queries: fetches content
app/(site)/page.tsx - Expertise pages → Content queries: fetches content
app/(site)/expertise/page.tsx - People pages → Content queries: fetches content
README.md - Insights pages → Content queries: fetches content
app/(site)/insights/[slug]/page.tsx - Firm and legal → Content queries: fetches content
app/(site)/firm/page.tsx - Careers → Content queries: fetches roles
app/(site)/careers/page.tsx - Homepage → Site navigation: renders
app/(site)/page.tsx - Insights pages → Insights browser: renders
app/(site)/insights/page.tsx - Careers → Job listings: renders
app/(site)/careers/page.tsx - Insights pages → Rich text renderer: renders body
app/(site)/insights/[slug]/page.tsx - Sanity Studio → CMS schemas: configures
- CMS schemas → Sanity CMS: defines content models
README.md - Content queries → Sanity CMS: queries
lib/content.ts - Content queries → Placeholder content: falls back to
lib/content.ts - Site visitor → Contact form: submits inquiry
README.md - Site visitor → Subscribe form: subscribes
README.md - Contact form → Form validation: validates fields
components/forms.tsx - Subscribe form → Form validation: validates email
components/forms.tsx - Contact form → Contact endpoint: posts inquiry
components/forms.tsx - Subscribe form → Subscribe endpoint: posts signup
components/forms.tsx - Contact endpoint → Form validation: checks input
app/api/contact/route.ts - Subscribe endpoint → Form validation: checks input
app/api/subscribe/route.ts - Contact endpoint → Email delivery: sends message
app/api/contact/route.ts - Subscribe endpoint → Email delivery: sends signup
app/api/subscribe/route.ts - Email delivery → Resend: delivers email
README.md