# bonfacek/va-site architecture

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

- Interactive diagram: https://gitdiagram.com/bonfacek/va-site
- Repository: https://github.com/bonfacek/va-site

## Overview

Stillwell Office is a virtual-assistance services website with service discovery, contact and testimonial forms, editorial content, and a Sanity-backed publishing studio. A visitor can browse services, follow a service link to contact, and submit an enquiry; readers can browse the journal and open articles. Testimonials have a separate submission API. The graph follows relationships shown in excerpts, the source index, or explicit documentation; unsampled implementation details and unshown form-to-endpoint wiring are omitted.

Main entry points: [`components/about-page.tsx`](https://github.com/bonfacek/va-site/blob/main/components/about-page.tsx) (About Page), [`lib/sanity/lib/blogli.ts`](https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/blogli.ts) (Article Queries), [`lib/content.ts`](https://github.com/bonfacek/va-site/blob/main/lib/content.ts) (Site Content), [`app/contact/page.tsx`](https://github.com/bonfacek/va-site/blob/main/app/contact/page.tsx) (Contact Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public Website"]
  node_home["Home Page<br/>[home-page.tsx]"]
  node_about["About Page<br/>[about-page.tsx]"]
  node_services["Services Page<br/>[services-page.tsx]"]
  node_servicecard["Service Cards<br/>[service-card.tsx]"]
  node_sitechrome["Site Header &amp; Footer<br/>[layout.tsx]"]
  node_content["Site Content<br/>[content.ts]"]
end

subgraph group_editorial["Journal Content"]
  node_bloglist["Journal Browser<br/>[blog-browser.tsx]"]
  node_blogcard["Article Cards<br/>[blog-card.tsx]"]
  node_articlepage["Article Page<br/>[page.tsx]"]
  node_portabletext["Article Renderer<br/>[portable-text.tsx]"]
  node_sanityblog["Article Queries<br/>[blogli.ts]"]
end

subgraph group_engagement["Contact &amp; Feedback"]
  node_contactpage["Contact Page<br/>[page.tsx]"]
  node_contactform["Contact Form<br/>[contact-form.tsx]"]
  node_emailclient["EmailJS Client<br/>[client.ts]"]
  node_testimonialform["Testimonial Form"]
  node_testimonialapi["Testimonial API<br/>[route.ts]"]
  node_emailserver["EmailJS Server<br/>[server.ts]"]
end

subgraph group_cms["Sanity CMS"]
  node_sanityclient["Sanity Client<br/>[client.ts]"]
  node_sanityqueries["Blog Queries<br/>[blog.ts]"]
  node_abouttestimonials["Testimonial Content<br/>[testimonials.ts]"]
  node_sanityschemas["Content Schemas"]
  node_studio["Sanity Studio<br/>[sanity.config.ts]"]
end

node_visitor(("Visitor"))
node_emailjs{{"EmailJS Service"}}
node_sanityservice[("Sanity")]

node_visitor -->|"visits"| node_home
node_visitor -->|"visits"| node_about
node_visitor -->|"visits"| node_services
node_visitor -->|"opens"| node_contactpage
node_visitor -->|"browses"| node_bloglist
node_visitor -->|"submits"| node_testimonialform
node_home -->|"reads"| node_content
node_home -->|"renders"| node_servicecard
node_services -->|"reads"| node_content
node_services -->|"links to"| node_contactpage
node_about -.->|"loads testimonials"| node_sanityclient
node_about -->|"loads"| node_abouttestimonials
node_about -->|"renders"| node_portabletext
node_about -.->|"uses"| node_content
node_sitechrome -->|"reads"| node_content
node_contactpage -->|"renders"| node_contactform
node_contactpage -->|"reads services"| node_content
node_contactform -->|"sends with"| node_emailclient
node_emailclient -->|"sends email"| node_emailjs
node_testimonialform -.->|"submits to"| node_testimonialapi
node_testimonialapi -->|"sends with"| node_emailserver
node_emailserver -->|"sends email"| node_emailjs
node_bloglist -->|"renders"| node_blogcard
node_bloglist -->|"loads articles"| node_sanityblog
node_articlepage -->|"loads article"| node_sanityblog
node_articlepage -->|"renders body"| node_portabletext
node_articlepage -->|"renders related"| node_blogcard
node_sanityblog -->|"queries"| node_sanityclient
node_sanityblog -->|"uses queries"| node_sanityqueries
node_sanityblog -.->|"fetches content"| node_sanityservice
node_abouttestimonials -->|"queries"| node_sanityclient
node_abouttestimonials -.->|"fetches content"| node_sanityservice
node_studio -->|"configures"| node_sanityschemas
node_studio -.->|"administers"| node_sanityservice

click node_home "https://github.com/bonfacek/va-site/blob/main/components/home-page.tsx"
click node_about "https://github.com/bonfacek/va-site/blob/main/components/about-page.tsx"
click node_services "https://github.com/bonfacek/va-site/blob/main/components/services-page.tsx"
click node_servicecard "https://github.com/bonfacek/va-site/blob/main/components/service-card.tsx"
click node_sitechrome "https://github.com/bonfacek/va-site/blob/main/app/layout.tsx"
click node_content "https://github.com/bonfacek/va-site/blob/main/lib/content.ts"
click node_contactpage "https://github.com/bonfacek/va-site/blob/main/app/contact/page.tsx"
click node_contactform "https://github.com/bonfacek/va-site/blob/main/components/contact-form.tsx"
click node_emailclient "https://github.com/bonfacek/va-site/blob/main/lib/emailjs/client.ts"
click node_testimonialform "https://github.com/bonfacek/va-site/blob/main/components/testimonial-form.tsx"
click node_testimonialapi "https://github.com/bonfacek/va-site/blob/main/app/api/testimonials/route.ts"
click node_emailserver "https://github.com/bonfacek/va-site/blob/main/lib/emailjs/server.ts"
click node_bloglist "https://github.com/bonfacek/va-site/blob/main/components/blog-browser.tsx"
click node_blogcard "https://github.com/bonfacek/va-site/blob/main/components/blog-card.tsx"
click node_articlepage "https://github.com/bonfacek/va-site/blob/main/app/blog/%5Bslug%5D/page.tsx"
click node_portabletext "https://github.com/bonfacek/va-site/blob/main/components/portable-text.tsx"
click node_sanityblog "https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/blogli.ts"
click node_sanityclient "https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/client.ts"
click node_sanityqueries "https://github.com/bonfacek/va-site/blob/main/lib/sanity/queries/blog.ts"
click node_abouttestimonials "https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/testimonials.ts"
click node_sanityschemas "https://github.com/bonfacek/va-site/tree/main/lib/sanity/schemas"
click node_studio "https://github.com/bonfacek/va-site/blob/main/sanity.config.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_about,node_services,node_servicecard,node_sitechrome,node_content toneBlue
class node_bloglist,node_blogcard,node_articlepage,node_portabletext,node_sanityblog,node_sanityservice toneAmber
class node_contactpage,node_contactform,node_emailclient,node_testimonialform,node_testimonialapi,node_emailserver toneMint
class node_sanityclient,node_sanityqueries,node_abouttestimonials,node_sanityschemas,node_studio toneRose
class node_visitor,node_emailjs toneIndigo
```

## Components

### Public Website

- [Home Page](https://github.com/bonfacek/va-site/blob/main/components/home-page.tsx): `components/home-page.tsx`
- [About Page](https://github.com/bonfacek/va-site/blob/main/components/about-page.tsx): `components/about-page.tsx`
- [Services Page](https://github.com/bonfacek/va-site/blob/main/components/services-page.tsx): `components/services-page.tsx`
- [Service Cards](https://github.com/bonfacek/va-site/blob/main/components/service-card.tsx): `components/service-card.tsx`
- [Site Header & Footer](https://github.com/bonfacek/va-site/blob/main/app/layout.tsx): `app/layout.tsx`
- [Site Content](https://github.com/bonfacek/va-site/blob/main/lib/content.ts): `lib/content.ts`

### Journal Content

- [Journal Browser](https://github.com/bonfacek/va-site/blob/main/components/blog-browser.tsx): `components/blog-browser.tsx`
- [Article Cards](https://github.com/bonfacek/va-site/blob/main/components/blog-card.tsx): `components/blog-card.tsx`
- [Article Page](https://github.com/bonfacek/va-site/blob/main/app/blog/%5Bslug%5D/page.tsx): `app/blog/[slug]/page.tsx`
- [Article Renderer](https://github.com/bonfacek/va-site/blob/main/components/portable-text.tsx): `components/portable-text.tsx`
- [Article Queries](https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/blogli.ts): `lib/sanity/lib/blogli.ts`

### Contact & Feedback

- [Contact Page](https://github.com/bonfacek/va-site/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Contact Form](https://github.com/bonfacek/va-site/blob/main/components/contact-form.tsx): `components/contact-form.tsx`
- [EmailJS Client](https://github.com/bonfacek/va-site/blob/main/lib/emailjs/client.ts): `lib/emailjs/client.ts`
- [Testimonial Form](https://github.com/bonfacek/va-site/blob/main/components/testimonial-form.tsx): `components/testimonial-form.tsx`
- [Testimonial API](https://github.com/bonfacek/va-site/blob/main/app/api/testimonials/route.ts): `app/api/testimonials/route.ts`
- [EmailJS Server](https://github.com/bonfacek/va-site/blob/main/lib/emailjs/server.ts): `lib/emailjs/server.ts`

### Sanity CMS

- [Sanity Client](https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/client.ts): `lib/sanity/lib/client.ts`
- [Blog Queries](https://github.com/bonfacek/va-site/blob/main/lib/sanity/queries/blog.ts): `lib/sanity/queries/blog.ts`
- [Testimonial Content](https://github.com/bonfacek/va-site/blob/main/lib/sanity/lib/testimonials.ts): `lib/sanity/lib/testimonials.ts`
- [Content Schemas](https://github.com/bonfacek/va-site/tree/main/lib/sanity/schemas): `lib/sanity/schemas`
- [Sanity Studio](https://github.com/bonfacek/va-site/blob/main/sanity.config.ts): `sanity.config.ts`

### Other components

- **Visitor**
- **EmailJS Service**
- **Sanity**

## Connections

- Visitor → Home Page: visits
- Visitor → About Page: visits
- Visitor → Services Page: visits
- Visitor → Contact Page: opens (evidence: `app/contact/page.tsx`)
- Visitor → Journal Browser: browses
- Visitor → Testimonial Form: submits
- Home Page → Site Content: reads (evidence: `components/home-page.tsx`)
- Home Page → Service Cards: renders (evidence: `components/home-page.tsx`)
- Services Page → Site Content: reads (evidence: `components/services-page.tsx`)
- Services Page → Contact Page: links to (evidence: `components/services-page.tsx`)
- About Page → Sanity Client: loads testimonials
- About Page → Testimonial Content: loads (evidence: `app/about/page.tsx`)
- About Page → Article Renderer: renders (evidence: `components/about-page.tsx`)
- About Page → Site Content: uses
- Site Header & Footer → Site Content: reads
- Contact Page → Contact Form: renders (evidence: `app/contact/page.tsx`)
- Contact Page → Site Content: reads services (evidence: `app/contact/page.tsx`)
- Contact Form → EmailJS Client: sends with (evidence: `components/contact-form.tsx`)
- EmailJS Client → EmailJS Service: sends email (evidence: `lib/emailjs/client.ts`)
- Testimonial Form → Testimonial API: submits to
- Testimonial API → EmailJS Server: sends with (evidence: `app/api/testimonials/route.ts`)
- EmailJS Server → EmailJS Service: sends email (evidence: `lib/emailjs/server.ts`)
- Journal Browser → Article Cards: renders (evidence: `components/blog-browser.tsx`)
- Journal Browser → Article Queries: loads articles (evidence: `app/blog/page.tsx`)
- Article Page → Article Queries: loads article (evidence: `app/blog/[slug]/page.tsx`)
- Article Page → Article Renderer: renders body (evidence: `app/blog/[slug]/page.tsx`)
- Article Page → Article Cards: renders related
- Article Queries → Sanity Client: queries (evidence: `lib/sanity/lib/blogli.ts`)
- Article Queries → Blog Queries: uses queries (evidence: `lib/sanity/lib/blogli.ts`)
- Article Queries → Sanity: fetches content
- Testimonial Content → Sanity Client: queries (evidence: `lib/sanity/lib/testimonials.ts`)
- Testimonial Content → Sanity: fetches content
- Sanity Studio → Content Schemas: configures (evidence: `sanity.config.ts`)
- Sanity Studio → Sanity: administers
