How zaygal/zay-studio works
Purpose and Runtime
Zay Studio is a static-oriented marketing site for a software studio. It runs on Next.js App Router with React/TypeScript, Tailwind CSS, and PostCSS. Production deployment is Vercel, which automatically deploys pushes to main; the live site is zays.vercel.app.
Key application entry points:
• app/layout.tsx defines the shared document shell, fonts, and global layout.
• app/page.tsx serves the homepage.
• app/globals.css supplies site-wide styling.
Route Layer
The App Router exposes four primary user-facing flows:
• Homepage composition: app/page.tsx
• Case-study index: app/case-studies/page.tsx
• Dynamic case-study detail: app/case-studies/[slug]/page.tsx
• Contact page: app/contact/page.tsx
The dynamic [slug] route is the principal content-driven route: its rendered result is selected from a slug rather than requiring a new page implementation per project.
Homepage Composition
The homepage is assembled from independently maintained marketing sections under components/. This creates a clear boundary between route ownership and section-level content/presentation.
Core sections include:
• components/Hero.tsx
• components/WhatWeBuild.tsx
• components/ProblemsWeSolve.tsx
• components/FeaturedProject.tsx
• components/CTA.tsx
• components/Nav.tsx
• components/Footer.tsx
Additional trust, capability, and status content is represented by sibling components such as components/Trust.tsx, components/TechStack.tsx, and components/StatusPanel.tsx.
Case-Study Content Pipeline
lib/case-studies.ts is the single source of truth for case-study records, including identity, slug, descriptive content, and optional visual assets. Both case-study routes consume this data:
1. app/case-studies/page.tsx presents the collection.
2. A visitor selects a project URL.
3. app/case-studies/[slug]/page.tsx resolves and renders the matching record.
Adding a record with a unique slug to lib/case-studies.ts automatically makes it available through the dynamic detail route. This is a local, code-managed content model rather than a CMS or database integration.
Asset Boundary
Case-study visuals are static files served from public/. CopaLog-specific screens reside in public/copalog/ and are referenced from lib/case-studies.ts through heroScreen and screens fields. This separates authored case-study metadata from deployed image assets while keeping both versioned in the repository.
Contact Submission Integration
The contact interaction is implemented in components/ContactForm.tsx, used by the contact route and potentially reusable from calls to action. Submission leaves the application boundary via the configured Formspree endpoint (FORMSPREE_ENDPOINT), which delivers messages to the email associated with that Formspree form. No internal API route, persistence layer, or authentication service is indicated.
Build and Deployment Boundary
Next.js compiles server and client route bundles into .next/; these are generated artifacts and not source architecture. Framework behavior is configured through:
• next.config.mjs
• tailwind.config.ts
• tsconfig.json
Vercel hosts the Next.js runtime and static assets. There are no indicated databases, queues, CMS platforms, custom backend services, or custom build/deployment overrides.
Main entry points: app/page.tsx Homepage · layout.tsx Shared document shell · case-studies.ts Case-study records · case-studies/page.tsx Case-study index
Components 18
App Router routes
User-facing page entry points.
- Shared document shell · Defines fonts and global page layout.
app/layout.tsx - Homepage
app/page.tsx - Case-study index
app/case-studies/page.tsx - Case-study detail · Resolves a project from its slug.
app/case-studies/[slug]/page.tsx - Contact page
app/contact/page.tsx
Homepage sections
Composable marketing content.
- Navigation
components/Nav.tsx - Hero
components/Hero.tsx - What We Build
components/WhatWeBuild.tsx - Problems We Solve
components/ProblemsWeSolve.tsx - Featured project
components/FeaturedProject.tsx - Calls to action
components/CTA.tsx - Footer
components/Footer.tsx
Case-study content
Local code-managed content and assets.
- Case-study records · Single source of truth for project records and slugs.
lib/case-studies.ts - CopaLog visuals · Images referenced by case-study heroScreen and screens fields.
public/copalog
Other components
- Global styles
app/globals.css - Contact form · Posts submissions to the configured Formspree endpoint.
components/ContactForm.tsx - Formspree · Delivers contact messages to the form email.
- Vercel deployment · Deploys pushes to main and serves the site.
Connections 18
- Shared document shell → Global styles: loads
- Shared document shell → Homepage: wraps
- Shared document shell → Case-study index: wraps
- Shared document shell → Case-study detail: wraps
- Shared document shell → Contact page: wraps
- Homepage → Navigation: composes
- Homepage → Hero: composes
- Homepage → What We Build: composes
- Homepage → Problems We Solve: composes
- Homepage → Featured project: composes
- Homepage → Calls to action: composes
- Homepage → Footer: composes
- Case-study index → Case-study records: lists records
- Case-study detail → Case-study records: resolves slug
- Case-study records → CopaLog visuals: references visuals
- Contact page → Contact form: renders
- Contact form → Formspree: submits to
- Homepage → Vercel deployment: deployed on