How kcapturedvisuals/kcaptured works
KCAPTURED is a photography portfolio and booking site with public discovery pages, session booking and client booking management, plus a substantial admin/content-management area in the repository. The main visitor path runs from the homepage’s service offers to booking, with booking operations handled server-side and persisted in the database; portfolio, testimonials, FAQ and contact are parallel public capabilities. Several admin screens and APIs are present, but their UI-to-API wiring is not established by the excerpts, so those links are omitted. The README documents Formspree contact delivery and Cloudinary media, while sampled source shows booking email and database behavior.
Main entry points: page.tsx Homepage · route.ts Booking operations · api Content APIs · contact-form.tsx Contact form
Components 24
Public experience
- Homepage
app/page.tsx - Hero section
components/hero-section.tsx - Service offers
components/services-section.tsx - Portfolio gallery
app/portfolio/page.tsx - Masonry gallery
components/masonry-gallery.tsx - Testimonials
components/testimonials-section.tsx - FAQ
app/faq/page.tsx - Contact form
components/contact-form.tsx
Booking lifecycle
- Booking page
app/book/page.tsx - Booking request form
components/booking/booking-request-form.tsx - Booking operations
app/api/bookings/route.ts - Booking records
db/schema.ts - Booking email
lib/email.ts - Client booking access
app/dashboard/page.tsx - Dashboard token access
app/dashboard/access/[token]/route.ts
Admin management
- Admin screens
app/admin - Admin login form
components/admin/admin-login-form.tsx - Content APIs
app/api
Shared services
- Admin authentication
lib/auth-utils.ts - Input validation
lib/input-validation.ts - Database access
lib/db.ts
Other components
- Site visitor
- Cloudinary media
- Formspree email
Connections 24
- Site visitor → Homepage: visits
app/page.tsx - Homepage → Hero section: renders
app/page.tsx - Homepage → Service offers: renders
app/page.tsx - Homepage → Testimonials: renders
app/page.tsx - Homepage → Contact form: renders
app/page.tsx - Service offers → Booking page: links to
components/services-section.tsx - Site visitor → Portfolio gallery: browses
README.md - Portfolio gallery → Masonry gallery: renders
app/portfolio/page.tsx - Site visitor → FAQ: browses
README.md - Site visitor → Contact form: submits
README.md - Contact form → Formspree email: delivers email
README.md - Site visitor → Booking page: books session
app/book/page.tsx - Booking page → Booking request form: renders
app/book/page.tsx - Booking operations → Database access: queries
app/api/bookings/route.ts - Booking operations → Booking records: updates records
- Booking operations → Booking email: sends notices
app/api/bookings/route.ts - Client booking access → Database access: reads bookings
app/dashboard/page.tsx - Dashboard token access → Admin authentication: validates token
app/dashboard/access/[token]/route.ts - Admin login form → Admin authentication: uses sessions
- Content APIs → Admin authentication: checks access
app/api/package/route.ts - Content APIs → Input validation: validates input
app/api/package/route.ts - Content APIs → Database access: persists content
app/api/package/route.ts - Content APIs → Cloudinary media: uploads media
- Booking operations → Input validation: validates input
app/api/bookings/route.ts