How femzy123/prosopon works
Purpose and Runtime
This is a Next.js App Router marketing site for a services/business presence, with informational pages, case studies, a blog backed by Blogger, and a contact submission endpoint. It runs as a Node.js/Next.js application and is deployable to Vercel. Primary application configuration is in next.config.ts and package.json.
Application Shell and Site Navigation
The root layout establishes global document structure, fonts, shared styling, and persistent site chrome. The navbar and footer frame all routed pages, creating the primary navigation boundary.
• src/app/layout.tsx
• src/app/globals.css
• src/components/site/navbar.tsx
• src/components/site/footer.tsx
Public Content Routes
App Router pages implement the public site hierarchy: home plus static business, legal, and content pages. Unknown routes resolve through the dedicated not-found UI.
• src/app/page.tsx
• src/app/services/page.tsx
• src/app/case-studies/page.tsx
• src/app/about/page.tsx
• src/app/privacy/page.tsx
• src/app/not-found.tsx
Reusable Presentation System
Shared site components provide consistent branding, section framing, calls to action, animated reveal behavior, and blog-card layouts. These components are the UI composition layer used by route pages rather than an independent application domain.
• src/components/site/site-logo.tsx
• src/components/site/section-header.tsx
• src/components/site/cta-section.tsx
• src/components/site/reveal.tsx
Blog Retrieval and Rendering Flow
The blog page is split between route-level rendering, a client-side posts experience, and an API boundary. GET /api/blog/posts isolates Blogger integration from the browser; the Blogger library and explicit types normalize the external feed for UI components. Blog cards/grid render the resulting post collection.
• src/app/blog/page.tsx
• src/app/blog/blog-posts-client.tsx
• src/app/api/blog/posts/route.ts
• src/lib/blogger.ts
• src/lib/blogger-types.ts
• src/components/site/blog-post-grid.tsx
Contact Submission Boundary
The contact page hosts an interactive client form that submits to the server-side contact route. This keeps form handling separate from visual page composition and is the repository’s primary inbound-action boundary.
• src/app/contact/page.tsx
• src/app/contact/contact-form.tsx
• src/app/api/contact/route.ts
External Services and Assets
Blogger is the evident external content service, accessed only through src/lib/blogger.ts and the blog API route. Static public assets, including leader imagery, are served from the Next.js public directory.
• src/lib/blogger.ts
• src/app/api/blog/posts/route.ts
• public/leaders
Main entry points: next.config.ts Next.js runtime · layout.tsx Root layout · page.tsx Public pages · blog-posts-client.tsx Blog posts client
Components 16
Next.js App
App Router pages and server endpoints.
- Next.js runtime · Deployable Next.js marketing site.
next.config.ts - Root layout · Applies global styling and persistent site chrome.
src/app/layout.tsx - Public pages · Home, services, case studies, about, privacy, and not-found routes.
src/app/page.tsx - Blog page
src/app/blog/page.tsx - Contact page
src/app/contact/page.tsx - Contact API · Primary inbound-action boundary.
src/app/api/contact/route.ts - Contact form · Submits contact data to the server endpoint.
src/app/contact/contact-form.tsx
Site UI
Shared presentation and persistent chrome.
- Navbar
src/components/site/navbar.tsx - Footer
src/components/site/footer.tsx - Presentation components · Branding, section, CTA, and reveal composition.
src/components/site/section-header.tsx - Blog post grid · Renders the retrieved post collection.
src/components/site/blog-post-grid.tsx - Leader imagery · Publicly served site imagery.
public/leaders
Blog Integration
Server-mediated Blogger retrieval.
- Blog posts API · Isolates external blog retrieval from the browser.
src/app/api/blog/posts/route.ts - Blog posts client · Fetches and presents the post experience.
src/app/blog/blog-posts-client.tsx - Blogger library · Normalizes the external feed using explicit post types.
src/lib/blogger.ts - Blogger
Connections 17
- Next.js runtime → Root layout: runs
- Next.js runtime → Public pages: serves
- Next.js runtime → Blog page: serves
- Next.js runtime → Contact page: serves
- Next.js runtime → Blog posts API: hosts
- Next.js runtime → Contact API: hosts
- Root layout → Navbar: includes
- Root layout → Footer: includes
- Public pages → Presentation components: composes
- Public pages → Leader imagery: uses
- Blog page → Blog posts client: renders
- Blog posts client → Blog posts API: fetches posts
- Blog posts client → Blog post grid: renders
- Blog posts API → Blogger library: uses
- Blogger library → Blogger: retrieves feed
- Contact page → Contact form: hosts
- Contact form → Contact API: submits