How shakib-mia/adztronaut works
Purpose and Runtime
This is a Next.js App Router portfolio/agency site. It renders marketing pages, work case studies, and blog content, with static assets and JSON-backed content. The primary runtime is Node.js/Next.js; it can be deployed to Vercel but no external backend or database is evident.
Application Shell and Entry Points
The root layout establishes global document/UI concerns, while the home page composes the main landing experience. Route-level loading and not-found boundaries provide App Router fallbacks.
• src/app/layout.js
• src/app/page.js
• src/app/globals.css
• src/app/loading.jsx
• src/app/not-found.js
Public Page Routing
Top-level routes expose agency information, services, pricing, testimonials, contact, blogs, and work listings. Dynamic segments resolve individual blog and work detail pages.
• src/app/about/page.jsx
• src/app/services/page.jsx
• src/app/blogs/[id]/page.js
• src/app/works/[slug]/page.jsx
Content and Asset Boundary
Work and blog metadata are stored as public JSON, with associated images/content served directly from public/. This implies pages/components read local static content rather than querying a CMS. Bundled image assets supplement public content for site sections.
• public/blogs.json
• public/works.json
• public/blogs
• src/assets/images
Works API Surface
The application also exposes HTTP API routes for works collection and per-ID lookup. These are the repository’s server-side integration boundary and likely read/shape the same local work data for consumers distinct from rendered pages.
• src/app/api/works/route.js
• src/app/api/works/[id]/route.js
• src/app/works/page.jsx
Composition Components
Pages are assembled from section-level components rather than a single monolith. The component layer covers navigation/layout, homepage marketing modules, content cards/details, and footer/contact calls to action.
• src/app/components/Layout/Layout.jsx
• src/app/components/Header/Header.jsx
• src/app/components/SelectedWorks/SelectedWorks.jsx
• src/app/components/BlogContainer/BlogContainer.jsx
• src/app/components/WorkDetails/WorkDetails.jsx
Client Interaction and Motion
Client-side visual behavior is centralized around AOS animations, Lenis smooth scrolling, and scroll-position/direction utilities. A wrapper and hooks isolate browser-dependent motion setup from route/page composition.
• src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx
• src/app/hooks/useAos.js
• src/app/hooks/useLenis.js
• src/utils/initAos.js
• src/utils/initLenis.js
Styling and Framework Configuration
Styling combines global CSS with Tailwind/PostCSS configuration. Next configuration governs framework behavior; next/font is noted as the font optimization mechanism.
• tailwind.config.js
• postcss.config.mjs
• next.config.mjs
• src/app/globals.css
Main entry points: page.js Home page · works.json Works content · Layout.jsx Site layout · layout.js Root layout
Components 21
App Router
Next.js routes and document boundaries.
- Root layout · Establishes global document and UI concerns.
src/app/layout.js - Home page · Composes the agency landing experience.
src/app/page.js - Route fallbacks · Loading and not-found states.
src/app/loading.jsx - Agency pages · About and services marketing routes.
src/app/about/page.jsx - Works listing · Lists work case studies.
src/app/works/page.jsx - Work detail · Renders a case study by slug.
src/app/works/[slug]/page.jsx - Blog detail · Renders a blog post by ID.
src/app/blogs/[id]/page.js - Works collection API · HTTP collection endpoint for work data.
src/app/api/works/route.js - Work item API · HTTP lookup endpoint by ID.
src/app/api/works/[id]/route.js - Global styles · Global styling foundation.
src/app/globals.css
UI Composition
Reusable page sections and client behavior.
- Site layout · Shared navigation and page framing.
src/app/components/Layout/Layout.jsx - Header
src/app/components/Header/Header.jsx - Selected works · Homepage work showcase.
src/app/components/SelectedWorks/SelectedWorks.jsx - Blog container · Blog content and card composition.
src/app/components/BlogContainer/BlogContainer.jsx - Work details · Case-study presentation layer.
src/app/components/WorkDetails/WorkDetails.jsx - Motion wrapper · Isolates browser-only animation and scrolling setup.
src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx - Motion hooks · AOS and Lenis lifecycle hooks.
src/app/hooks/useAos.js
Local Content
Static JSON and image-backed site content.
- Blog content · Locally served blog metadata and content.
public/blogs.json - Works content · Locally served work metadata.
public/works.json - Blog assets · Blog images and content served directly.
public/blogs - Bundled images · Build-bundled section imagery.
src/assets/images
Connections 21
- Root layout → Site layout: frames
- Root layout → Global styles: loads
- Root layout → Motion wrapper: initializes
- Site layout → Header: contains
- Home page → Site layout: uses
- Home page → Selected works: composes
- Home page → Blog container: composes
- Agency pages → Site layout: uses
- Works listing → Works content: reads
- Works listing → Work details: presents
- Work detail → Works content: resolves from
- Work detail → Work details: renders
- Blog detail → Blog content: resolves from
- Blog detail → Blog assets: serves
- Selected works → Works content: reads
- Blog container → Blog content: reads
- Works collection API → Works content: reads
- Work item API → Works content: looks up
- Motion wrapper → Motion hooks: uses
- Home page → Bundled images: uses
- Route fallbacks → Home page: bounds routes including